From 051ebb60c043cee8c62038c2d8da1bdf571f623a Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Tue, 10 Sep 2024 14:35:48 -0700 Subject: [PATCH] fix params --- libraries/SITL/SIM_SA_GD2000.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/SITL/SIM_SA_GD2000.cpp b/libraries/SITL/SIM_SA_GD2000.cpp index 24d1abb58234a..f65f3f3b24b6e 100644 --- a/libraries/SITL/SIM_SA_GD2000.cpp +++ b/libraries/SITL/SIM_SA_GD2000.cpp @@ -48,9 +48,10 @@ const AP_Param::GroupInfo SA_GD2000::var_info[] = { SA_GD2000::SA_GD2000(const char *frame_str) : Plane(frame_str) { + AP_Param::load_defaults_file("@ROMFS/models/sa_gd2000.parm", false); + AP::sitl()->models.sa_gd2000_ptr = this; AP_Param::setup_object_defaults(this, var_info); - AP_Param::load_defaults_file("@ROMFS/models/sa_gd2000.parm", false); mass = params.mass.get(); thrust_scale = 0;