Skip to content

Commit

Permalink
RC_Channel: process only transitions for sprayer-enable switch or par…
Browse files Browse the repository at this point in the history
…achute/parachute-3pos

parachutes pringing out on first time an RC signal is received is bad.
  • Loading branch information
peterbarker committed Apr 10, 2024
1 parent f83cde7 commit d980157
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 @@ -865,6 +865,9 @@ bool RC_Channel::init_position_on_first_radio_read(AUX_FUNC func) const
switch (func) {
case AUX_FUNC::ARMDISARM_AIRMODE:
case AUX_FUNC::ARMDISARM:
case AUX_FUNC::PARACHUTE_RELEASE:
case AUX_FUNC::PARACHUTE_3POS:
case AUX_FUNC::SPRAYER:
// we do not want to process
return true;
default:
Expand Down

0 comments on commit d980157

Please sign in to comment.