This changes the RC failsafe behavior when using the SIL simulation. In the old behavior, RC is never considered lost, once at least one message has been sent to the RC input. If there are no active publishers, the RC values default to centered sticks, zero throttle, and switches off. If using an arm switch, this disarms the aircraft, which also disables the failsafe behavior.
This PR changes the behavior. Now, if no RC messages are received for 1 second, the board starts acknowledging that RC is lost. Additionally, calls to rc_read return the most recent RC value instead of centering. This allows for better testing of failsafe behavior in simulation.
This changes the RC failsafe behavior when using the SIL simulation. In the old behavior, RC is never considered lost, once at least one message has been sent to the RC input. If there are no active publishers, the RC values default to centered sticks, zero throttle, and switches off. If using an arm switch, this disarms the aircraft, which also disables the failsafe behavior.
This PR changes the behavior. Now, if no RC messages are received for 1 second, the board starts acknowledging that RC is lost. Additionally, calls to
rc_read
return the most recent RC value instead of centering. This allows for better testing of failsafe behavior in simulation.