AP_InertialSensor: Use SITL singleton

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2018-06-15 16:05:56 -03:00 committed by Francisco Ferreira
parent e456655932
commit 0c06bf89e5
1 changed files with 2 additions and 2 deletions

View File

@ -28,9 +28,9 @@ AP_InertialSensor_Backend *AP_InertialSensor_SITL::detect(AP_InertialSensor &_im
return sensor;
}
bool AP_InertialSensor_SITL::init_sensor(void)
bool AP_InertialSensor_SITL::init_sensor(void)
{
sitl = (SITL::SITL *)AP_Param::find_object("SIM_");
sitl = AP::sitl();
if (sitl == nullptr) {
return false;
}