AP_Arming: Primary Compass is always at serial# 0

This commit is contained in:
Siddharth Purohit 2019-11-19 15:11:37 +08:00 committed by Randy Mackay
parent b5cf1ecfe1
commit 653fad44d4
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,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;
} }