mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
RC Input: Reset lock state when switching to a new protocol
This commit is contained in:
parent
3502ba53ba
commit
435ef38eda
@ -245,6 +245,7 @@ void RCInput::set_rc_scan_state(RC_SCAN newState)
|
||||
PX4_DEBUG("RCscan: %s failed, trying %s", RCInput::RC_SCAN_STRING[_rc_scan_state], RCInput::RC_SCAN_STRING[newState]);
|
||||
_rc_scan_begin = 0;
|
||||
_rc_scan_state = newState;
|
||||
_rc_scan_locked = false;
|
||||
}
|
||||
|
||||
void RCInput::rc_io_invert(bool invert)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user