mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
RC_Channel: add define AP_AIRSPEED_ENABLED
This commit is contained in:
parent
319fec2b1f
commit
382d4639a0
@ -1041,6 +1041,7 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos
|
||||
break;
|
||||
|
||||
case AUX_FUNC::DISABLE_AIRSPEED_USE: {
|
||||
#if AP_AIRSPEED_ENABLED
|
||||
AP_Airspeed *airspeed = AP::airspeed();
|
||||
if (airspeed == nullptr) {
|
||||
break;
|
||||
@ -1055,6 +1056,7 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos
|
||||
airspeed->force_disable_use(false);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user