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;