RC_Channel: disable GPS on external AHRS with GPS_DISABLE

This commit is contained in:
Andrew Tridgell 2024-02-16 10:36:51 +11:00 committed by Peter Barker
parent cb53e64293
commit 9809393851
1 changed files with 3 additions and 0 deletions

View File

@ -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: