Commit b34dd86e authored by treymarc's avatar treymarc

change to qt type

parent ec799d44
......@@ -2583,7 +2583,7 @@ void UAS::processParamValueMsg(mavlink_message_t& msg, const QString& paramName,
param = QVariant(QChar((unsigned char)paramValue.param_float));
}
else {
param = QVariant(QChar((uint8_t)paramValue.param_float));
param = QVariant(QChar((quint8)paramValue.param_float));
}
parameters.value(compId)->insert(paramName, param);
// Emit change
......@@ -2598,7 +2598,7 @@ void UAS::processParamValueMsg(mavlink_message_t& msg, const QString& paramName,
param = QVariant(QChar((char)paramValue.param_float));
}
else {
param = QVariant(QChar((int8_t)paramValue.param_float));
param = QVariant(QChar((qint8)paramValue.param_float));
}
parameters.value(compId)->insert(paramName, param);
// Emit change
......@@ -2613,7 +2613,7 @@ void UAS::processParamValueMsg(mavlink_message_t& msg, const QString& paramName,
param = QVariant((short)paramValue.param_float);
}
else {
param = QVariant((int16_t)paramValue.param_float);
param = QVariant((qint16)paramValue.param_float);
}
parameters.value(compId)->insert(paramName, param);
// Emit change
......@@ -2628,7 +2628,7 @@ void UAS::processParamValueMsg(mavlink_message_t& msg, const QString& paramName,
param = QVariant((unsigned short)paramValue.param_float);
}
else {
param = QVariant((uint16_t)paramValue.param_float);
param = QVariant((quint16)paramValue.param_float);
}
parameters.value(compId)->insert(paramName, param);
// Emit change
......@@ -2643,7 +2643,7 @@ void UAS::processParamValueMsg(mavlink_message_t& msg, const QString& paramName,
param = QVariant((unsigned int)paramValue.param_float);
}
else {
param = QVariant((uint32_t)paramValue.param_float);
param = QVariant((quint32)paramValue.param_float);
}
parameters.value(compId)->insert(paramName, param);
// Emit change
......@@ -2657,7 +2657,7 @@ void UAS::processParamValueMsg(mavlink_message_t& msg, const QString& paramName,
param = QVariant((int)paramValue.param_float);
}
else {
param = QVariant((int32_t)paramValue.param_float);
param = QVariant((qint32)paramValue.param_float);
}
parameters.value(compId)->insert(paramName, param);
// Emit change
......
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