mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
SITL: changes for new AP_Baro API
This commit is contained in:
parent
f1891cea1f
commit
8a3d3bed72
@ -64,7 +64,7 @@ uint16_t SITL_State::voltage_pin_value;
|
||||
uint16_t SITL_State::current_pin_value;
|
||||
float SITL_State::_current;
|
||||
|
||||
AP_Baro_HIL *SITL_State::_barometer;
|
||||
AP_Baro *SITL_State::_barometer;
|
||||
AP_InertialSensor *SITL_State::_ins;
|
||||
SITLScheduler *SITL_State::_scheduler;
|
||||
AP_Compass_HIL *SITL_State::_compass;
|
||||
@ -213,7 +213,7 @@ void SITL_State::_sitl_setup(void)
|
||||
|
||||
// find the barometer object if it exists
|
||||
_sitl = (SITL *)AP_Param::find_object("SIM_");
|
||||
_barometer = (AP_Baro_HIL *)AP_Param::find_object("GND_");
|
||||
_barometer = (AP_Baro *)AP_Param::find_object("GND_");
|
||||
_ins = (AP_InertialSensor *)AP_Param::find_object("INS_");
|
||||
_compass = (AP_Compass_HIL *)AP_Param::find_object("COMPASS_");
|
||||
_terrain = (AP_Terrain *)AP_Param::find_object("TERRAIN_");
|
||||
|
@ -125,7 +125,7 @@ private:
|
||||
static uint32_t _update_count;
|
||||
static bool _motors_on;
|
||||
|
||||
static AP_Baro_HIL *_barometer;
|
||||
static AP_Baro *_barometer;
|
||||
static AP_InertialSensor *_ins;
|
||||
static SITLScheduler *_scheduler;
|
||||
static AP_Compass_HIL *_compass;
|
||||
|
Loading…
Reference in New Issue
Block a user