Browse Source

SITL: Replace find_object with SITL singleton

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
mission-4.1.18
Patrick José Pereira 7 years ago committed by Tom Pittenger
parent
commit
b66b4775bc
  1. 2
      libraries/SITL/SIM_Aircraft.cpp

2
libraries/SITL/SIM_Aircraft.cpp

@ -61,7 +61,7 @@ Aircraft::Aircraft(const char *home_str, const char *frame_str) : @@ -61,7 +61,7 @@ Aircraft::Aircraft(const char *home_str, const char *frame_str) :
#endif
{
// make the SIM_* variables available to simulator backends
sitl = (SITL *)AP_Param::find_object("SIM_");
sitl = AP::sitl();
if (!parse_home(home_str, home, home_yaw)) {
::printf("Failed to parse home string (%s). Should be LAT,LON,ALT,HDG e.g. 37.4003371,-122.0800351,0,353\n", home_str);

Loading…
Cancel
Save