failsafe: Prevent Offboard to Position without RC#26289
Conversation
MaEtUgR
left a comment
There was a problem hiding this comment.
Thanks for looking into this and finding a fix. I'm sure this works for the described issue case. That said I'm wondering why there's no fallback for e.g. FallbackPosCtrl and alike. Because what I imagine is that you run into the same issue for all cases that have Fallback... as action and no RC is present. So the only reason there might be no issue with those is that the user intention already needs to require stick input and we likely don't switch to them with the mode requirement is not met. 👀
So in summary I'm wondering if there's a way to run Fallback... through the typical ladder of mode requirement checks instead of handling the case specifically. If that's a big hassle I'm fine with this change.
|
@MaEtUgR
|
|
I checked with @bkueng, and adding the check for the Rc in |
sfuhrer
left a comment
There was a problem hiding this comment.
It fixes the imminent issue, and as no generic solution has been found let's go ahead.
Solved Problem
It was possible to failsafe from Offboard mode into Position mode by setting COM_OBL_RC_ACT to Position. If the offboard signal was lost and no RC was available (allowed by COM_RCL_EXCEPT during Offboard mode), the vehicle would still switch to Position mode, creating a dangerous situation.
Solution
Include a check in the offboard failsafe logic to prevent a switch to manual modes without RC.
Changelog Entry
Test coverage
Failsafe State Machine Simulation
Before: