mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
AP_Arming: add define AP_AIRSPEED_ENABLED
This commit is contained in:
parent
8a6942a9df
commit
f38c5d9c31
@ -226,6 +226,7 @@ bool AP_Arming::barometer_checks(bool report)
|
||||
|
||||
bool AP_Arming::airspeed_checks(bool report)
|
||||
{
|
||||
#if AP_AIRSPEED_ENABLED
|
||||
if ((checks_to_perform & ARMING_CHECK_ALL) ||
|
||||
(checks_to_perform & ARMING_CHECK_AIRSPEED)) {
|
||||
const AP_Airspeed *airspeed = AP_Airspeed::get_singleton();
|
||||
@ -240,6 +241,7 @@ bool AP_Arming::airspeed_checks(bool report)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user