Skip to content

Commit ff753d9

Browse files
committed
RC_Channel: process only transitions for sprayer-enable switch or parachute/parachute-3pos
parachutes pringing out on first time an RC signal is received is bad.
1 parent 9af14c2 commit ff753d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/RC_Channel/RC_Channel.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,9 @@ bool RC_Channel::init_position_on_first_radio_read(AUX_FUNC func) const
865865
switch (func) {
866866
case AUX_FUNC::ARMDISARM_AIRMODE:
867867
case AUX_FUNC::ARMDISARM:
868+
case AUX_FUNC::PARACHUTE_RELEASE:
869+
case AUX_FUNC::PARACHUTE_3POS:
870+
case AUX_FUNC::SPRAYER:
868871
// we do not want to process
869872
return true;
870873
default:

0 commit comments

Comments
 (0)