mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-13 10:03:57 -03:00
Plane: prevent delayed compass HIL data from disabling compass at system startup only
This commit is contained in:
parent
1cd5b9da9b
commit
e24b6c6342
@ -178,7 +178,7 @@ void Plane::init_ardupilot()
|
||||
airspeed.init();
|
||||
|
||||
if (g.compass_enabled==true) {
|
||||
if (!compass.init() || !compass.read()) {
|
||||
if (!compass.init() || (!g.hil_mode && !compass.read())) {
|
||||
cliSerial->println_P(PSTR("Compass initialisation failed!"));
|
||||
g.compass_enabled = false;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user