Do not go into failsafe when the correct roll/pitch/yaw/throttle are sent via MSP_OVE...
commita0c0e191e1d50168a445f4cd200bc79e22abe97d
authorYura Kriachko <iurii.kriachko@gmail.com>
Tue, 5 Mar 2024 08:59:34 +0000 (5 09:59 +0100)
committerGitHub <noreply@github.com>
Tue, 5 Mar 2024 08:59:34 +0000 (5 09:59 +0100)
tree6d10cd2192910d5a52c561ed44f7fc5cf3e7dfe7
parentddc81cb4faf4f2eb4de19e342f438beda53224a3
Do not go into failsafe when the correct roll/pitch/yaw/throttle are sent via MSP_OVERRIDE (#13380)

* Override failsafe when MSP_OVERRIDE active

Fixes #13374

Set `rxSignalReceived = true` If MSP_OVERRIDE is active, so that it can be checked later. Otherwise, MSP controls are not considered in failsafe checks.

* Do override only if BOXMOODEOVERRIDE box is active as well

* Update msp.h

* Update msp.c

* Make sure that failsafe works when there is no signal from MSP

* Introduce rxMspOverrideFrameStatus to make a clear separation from rxMspFrameStatus

* Update src/main/rx/msp.c

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
* add msp_override_failsafe

* Update src/main/pg/rx.h

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
* Update src/main/rx/rx.c

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
src/main/cli/settings.c
src/main/pg/rx.h
src/main/rx/msp.c
src/main/rx/msp.h
src/main/rx/rx.c