添加kb3

This commit is contained in:
hm
2020-10-07 12:24:23 +08:00
parent 6da5821dcb
commit 8e1807c8f2
14 changed files with 341 additions and 104 deletions
@@ -372,7 +372,7 @@ QVariant ParameterInspector::param_value(mavlink_param_value_t param)
}break;
default:
{
value = ((int32_t *)&param.param_value)[0];
value = ((float *)&param.param_value)[0];
//qDebug() << "Unsupported type " << param.param_type;
}break;
@@ -452,8 +452,8 @@ float ParameterInspector::param_getvalue(QVariant param,uint8_t type)
}break;
default:
{
src.i32[0] = param.toUInt();
((int32_t *)&value)[0] = (int32_t)src.i32[0];
src.f[0] = param.toFloat();
((float *)&value)[0] = (float)src.i32[0];
}break;
}