Skip to content

Commit

Permalink
fix params
Browse files Browse the repository at this point in the history
  • Loading branch information
magicrub committed Sep 10, 2024
1 parent 1a0b589 commit 051ebb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/SITL/SIM_SA_GD2000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 051ebb6

Please sign in to comment.