Browse Source

SITL: Use reinterpret_cast with AP_Param::find_object

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

2
libraries/SITL/SIM_Aircraft.cpp

@ -85,7 +85,7 @@ Aircraft::Aircraft(const char *home_str, const char *frame_str) : @@ -85,7 +85,7 @@ Aircraft::Aircraft(const char *home_str, const char *frame_str) :
enum ap_var_type ptype;
ahrs_orientation = (AP_Int8 *)AP_Param::find("AHRS_ORIENTATION", &ptype);
terrain = (AP_Terrain *)AP_Param::find_object("TERRAIN_");
terrain = reinterpret_cast<AP_Terrain *>(AP_Param::find_object("TERRAIN_"));
}

Loading…
Cancel
Save