Commit 6821ff47 authored by Bryant Mairs's avatar Bryant Mairs

Added support for reading uint8 values from an autopilot via QGC. Still need...

Added support for reading uint8 values from an autopilot via QGC. Still need to add support for writing them.
parent 5a0a9297
......@@ -667,6 +667,17 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
qDebug() << "RECEIVED PARAM:" << param;
}
break;
case MAVLINK_TYPE_UINT8_T:
{
// Variant
QVariant param(val.param_uint8);
parameters.value(component)->insert(parameterName, param);
// Emit change
emit parameterChanged(uasId, message.compid, parameterName, param);
emit parameterChanged(uasId, message.compid, value.param_count, value.param_index, parameterName, param);
qDebug() << "RECEIVED PARAM:" << param;
}
break;
default:
qCritical() << "INVALID DATA TYPE USED AS PARAMETER VALUE: " << value.param_type;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment