mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
An Offboard vehicle without manual control, the companion computer setup that NAV_RCL_ACT 7 "Hold mode (no failsafe)" was added for, stayed in Offboard when its companion stopped. #26289 made the Offboard loss fallback into Position mode use the NAV_RCL_ACT action instead when manual control is lost, since Position mode needs it. Value 7 maps that action to None, because Commander switches to Hold on its own, but that switch only fires while a manual mode is flown. So the vehicle kept flying its last setpoint, with a velocity setpoint that means flying off, and nothing was reported. The replacement now maps None to Hold, which is what value 7 promises, and the action cascade escalates to Return and Land from there when Hold cannot run. The manual control loss trigger itself is untouched and still takes no failsafe action for value 7. In SITL with the sih quadcopter, no manual control and a velocity setpoint stream that stops, main kept flying at 0.9 m/s for the whole 12 s watched. With this change the vehicle is in Hold 1.4 s after the stream stopped. Both changes are in v1.18.0-rc1. Assisted-by: Claude:claude-fable-5-1 Signed-off-by: Saibernard Yogendran <bernie97@seas.upenn.edu>