Skip to content

Commit

Permalink
RC_Channel: disable GPS on external AHRS with GPS_DISABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Feb 15, 2024
1 parent 9283d03 commit aed5ded
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/RC_Channel/RC_Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,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:
Expand Down

0 comments on commit aed5ded

Please sign in to comment.