mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
RC_Channel: disable GPS on external AHRS with GPS_DISABLE
This commit is contained in:
parent
9931e77a65
commit
421f3f20dd
@ -1375,6 +1375,9 @@ bool RC_Channel::do_aux_function(const aux_func_t ch_option, const AuxSwitchPos
|
||||
|
||||
case AUX_FUNC::GPS_DISABLE:
|
||||
AP::gps().force_disable(ch_flag == AuxSwitchPos::HIGH);
|
||||
#if HAL_EXTERNAL_AHRS_ENABLED
|
||||
AP::externalAHRS().set_gnss_disable(ch_flag == AuxSwitchPos::HIGH);
|
||||
#endif
|
||||
break;
|
||||
|
||||
case AUX_FUNC::GPS_DISABLE_YAW:
|
||||
|
Loading…
Reference in New Issue
Block a user