mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 09:43:57 -04:00
AP_HAL_SITL: Use reinterpret_cast with AP_Param::find_object
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
ae378f0fb3
commit
a4d8ed4b75
@ -78,7 +78,7 @@ void SITL_State::_sitl_setup(const char *home_str)
|
||||
_ins = (AP_InertialSensor *)AP_Param::find_object("INS_");
|
||||
_compass = (Compass *)AP_Param::find_object("COMPASS_");
|
||||
#if AP_TERRAIN_AVAILABLE
|
||||
_terrain = (AP_Terrain *)AP_Param::find_object("TERRAIN_");
|
||||
_terrain = reinterpret_cast<AP_Terrain *>(AP_Param::find_object("TERRAIN_"));
|
||||
#endif
|
||||
|
||||
if (_sitl != nullptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user