|
|
|
@ -168,7 +168,9 @@ void Plane::init_ardupilot()
@@ -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!"); |
|
|
|
|