mirror of https://github.com/ArduPilot/ardupilot
Plane: Don't disable compass checks for HIL mode unless actually in hil mode
This commit is contained in:
parent
7236b48518
commit
4b40a884e9
|
@ -168,7 +168,9 @@ void Plane::init_ardupilot()
|
|||
if (g.compass_enabled==true) {
|
||||
bool compass_ok = compass.init() && compass.read();
|
||||
#if HIL_SUPPORT
|
||||
if (!is_zero(g.hil_mode)) {
|
||||
compass_ok = true;
|
||||
}
|
||||
#endif
|
||||
if (!compass_ok) {
|
||||
cliSerial->println("Compass initialisation failed!");
|
||||
|
|
Loading…
Reference in New Issue