From 689a5c7b52a9e64d5ddfed7e51a4b0ed0e514111 Mon Sep 17 00:00:00 2001 From: Jacob Olson Date: Thu, 4 Jan 2024 12:15:23 -0700 Subject: [PATCH] SITL: SIM_Frame: fixed per_motor_vars config loading --- libraries/SITL/SIM_Frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SITL/SIM_Frame.cpp b/libraries/SITL/SIM_Frame.cpp index e16ceabb8f..a9b4904042 100644 --- a/libraries/SITL/SIM_Frame.cpp +++ b/libraries/SITL/SIM_Frame.cpp @@ -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) {