SITL: SIM_Frame: fixed per_motor_vars config loading

This commit is contained in:
Jacob Olson 2024-01-04 12:15:23 -07:00 committed by Peter Barker
parent 3691fdadc8
commit 689a5c7b52
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ void Frame::load_frame_params(const char *model_json)
// use default value
continue;
}
if (vars[i].t == VarType::FLOAT) {
if (per_motor_vars[i].t == VarType::FLOAT) {
parse_float(v, label_name, *(((float *)per_motor_vars[i].ptr) + j));
} else if (per_motor_vars[i].t == VarType::VECTOR3F) {