mirror of https://github.com/ArduPilot/ardupilot
Blimp: remove override compass check
This commit is contained in:
parent
1301372bfd
commit
506c21ce48
|
@ -78,23 +78,6 @@ bool AP_Arming_Blimp::barometer_checks(bool display_failure)
|
|||
return ret;
|
||||
}
|
||||
|
||||
bool AP_Arming_Blimp::compass_checks(bool display_failure)
|
||||
{
|
||||
bool ret = AP_Arming::compass_checks(display_failure);
|
||||
|
||||
if ((checks_to_perform == ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_COMPASS)) {
|
||||
// check compass offsets have been set. AP_Arming only checks
|
||||
// this if learning is off; Blimp *always* checks.
|
||||
char failure_msg[50] = {};
|
||||
if (!AP::compass().configured(failure_msg, ARRAY_SIZE(failure_msg))) {
|
||||
check_failed(ARMING_CHECK_COMPASS, display_failure, "%s", failure_msg);
|
||||
ret = false;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool AP_Arming_Blimp::ins_checks(bool display_failure)
|
||||
{
|
||||
bool ret = AP_Arming::ins_checks(display_failure);
|
||||
|
|
|
@ -37,7 +37,6 @@ protected:
|
|||
|
||||
// NOTE! the following check functions *DO* call into AP_Arming:
|
||||
bool ins_checks(bool display_failure) override;
|
||||
bool compass_checks(bool display_failure) override;
|
||||
bool gps_checks(bool display_failure) override;
|
||||
bool barometer_checks(bool display_failure) override;
|
||||
bool board_voltage_checks(bool display_failure) override;
|
||||
|
|
Loading…
Reference in New Issue