mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
RC_Channel: disable GPS on external AHRS with GPS_DISABLE
This commit is contained in:
parent
cb53e64293
commit
9809393851
@ -1378,6 +1378,9 @@ bool RC_Channel::do_aux_function(const AUX_FUNC ch_option, const AuxSwitchPos ch
|
||||
|
||||
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