mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
Checking the absolute tilt from level conflicts with the vehicle's own tilt limits: the threshold can be set below the maximum tilt, and external modes that tilt further than the autopilot's limits trip the check, so they can't benefit from its crash detection. Compare the tilt with the attitude setpoint's tilt instead, falling back to level without a recent setpoint, e.g. on rovers. Before arming the setpoint is level, so a vehicle lying on its side still can't arm. The tailsitter transition exception is no longer needed because the transition setpoint is in the multicopter frame. The default trigger time goes from 0.3 s to 1 s so that fixed-wing stick reversals, which pass through a large error at a limited roll rate, don't trigger it. Also reset the tilt hysteresis while attitude control is off, so a pending trigger from before e.g. Acro can't skip the trigger time when attitude control comes back on.
PX4 User Guide
This repo contains the source code for the PX4 User Guide.
Note
Contributions and Translations to this guide are very welcome!