Browse Source

AP_Arming: Primary Compass is always at serial# 0

copter407
Siddharth Purohit 5 years ago committed by Andrew Tridgell
parent
commit
1b63cb6d5c
  1. 2
      libraries/AP_Arming/AP_Arming.cpp

2
libraries/AP_Arming/AP_Arming.cpp

@ -386,7 +386,7 @@ bool AP_Arming::compass_checks(bool report)
// avoid Compass::use_for_yaw(void) as it implicitly calls healthy() which can // avoid Compass::use_for_yaw(void) as it implicitly calls healthy() which can
// incorrectly skip the remaining checks, pass the primary instance directly // incorrectly skip the remaining checks, pass the primary instance directly
if (!_compass.use_for_yaw(_compass.get_primary())) { if (!_compass.use_for_yaw(0)) {
// compass use is disabled // compass use is disabled
return true; return true;
} }

Loading…
Cancel
Save