mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-08 08:53:56 -04:00
Replay: convert to new AP_InertialSensor API
This commit is contained in:
parent
35b558cfc2
commit
d809ce51a7
@ -65,7 +65,7 @@ const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
|
|||||||
|
|
||||||
static Parameters g;
|
static Parameters g;
|
||||||
|
|
||||||
static AP_InertialSensor_HIL ins;
|
static AP_InertialSensor ins;
|
||||||
static AP_Baro_HIL barometer;
|
static AP_Baro_HIL barometer;
|
||||||
static AP_GPS gps;
|
static AP_GPS gps;
|
||||||
static AP_Compass_HIL compass;
|
static AP_Compass_HIL compass;
|
||||||
@ -207,6 +207,8 @@ void setup()
|
|||||||
barometer.read();
|
barometer.read();
|
||||||
compass.init();
|
compass.init();
|
||||||
inertial_nav.init();
|
inertial_nav.init();
|
||||||
|
ins.set_hil_mode();
|
||||||
|
|
||||||
switch (update_rate) {
|
switch (update_rate) {
|
||||||
case 0:
|
case 0:
|
||||||
case 50:
|
case 50:
|
||||||
|
Loading…
Reference in New Issue
Block a user