mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -04:00
HAL_AVR_SITL: updates for InertialSensor
This commit is contained in:
parent
cf726c6642
commit
350af4d92f
@ -61,7 +61,7 @@ bool SITL_State::_motors_on;
|
|||||||
uint16_t SITL_State::airspeed_pin_value;
|
uint16_t SITL_State::airspeed_pin_value;
|
||||||
|
|
||||||
AP_Baro_HIL *SITL_State::_barometer;
|
AP_Baro_HIL *SITL_State::_barometer;
|
||||||
AP_InertialSensor_Stub *SITL_State::_ins;
|
AP_InertialSensor_HIL *SITL_State::_ins;
|
||||||
SITLScheduler *SITL_State::_scheduler;
|
SITLScheduler *SITL_State::_scheduler;
|
||||||
AP_Compass_HIL *SITL_State::_compass;
|
AP_Compass_HIL *SITL_State::_compass;
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ void SITL_State::_sitl_setup(void)
|
|||||||
// find the barometer object if it exists
|
// find the barometer object if it exists
|
||||||
_sitl = (SITL *)AP_Param::find_object("SIM_");
|
_sitl = (SITL *)AP_Param::find_object("SIM_");
|
||||||
_barometer = (AP_Baro_HIL *)AP_Param::find_object("GND_");
|
_barometer = (AP_Baro_HIL *)AP_Param::find_object("GND_");
|
||||||
_ins = (AP_InertialSensor_Stub *)AP_Param::find_object("INS_");
|
_ins = (AP_InertialSensor_HIL *)AP_Param::find_object("INS_");
|
||||||
_compass = (AP_Compass_HIL *)AP_Param::find_object("COMPASS_");
|
_compass = (AP_Compass_HIL *)AP_Param::find_object("COMPASS_");
|
||||||
|
|
||||||
if (_sitl != NULL) {
|
if (_sitl != NULL) {
|
||||||
|
@ -111,7 +111,7 @@ private:
|
|||||||
static bool _motors_on;
|
static bool _motors_on;
|
||||||
|
|
||||||
static AP_Baro_HIL *_barometer;
|
static AP_Baro_HIL *_barometer;
|
||||||
static AP_InertialSensor_Stub *_ins;
|
static AP_InertialSensor_HIL *_ins;
|
||||||
static SITLScheduler *_scheduler;
|
static SITLScheduler *_scheduler;
|
||||||
static AP_Compass_HIL *_compass;
|
static AP_Compass_HIL *_compass;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user