Home Free tools ArduPilot failsafe simulator

Free tool · ArduPilot

ArduPilot failsafe simulator

What does your drone or VTOL do if you lose the radio in LOITER, the battery runs low in a mission or it crosses the geofence? Pick the event and the setup and watch every autopilot decision on the map, per the official wiki.

Failsafe lab

ARDUPILOT · COPTER · PLANE · QUADPLANE

What the autopilot decides, step by step

    1 · Flight mode when it happens

    2 · Event

    3 · Configuration

    Simulation

    Decisions per the official ArduPilot wiki and current source code. The animation is indicative: typical speeds and heights, 3 m/s wind. Always check your setup in SITL before flying.

    What it is for

    Understand before flying

    Each step shows the parameter that decides and the exact timing: RC_FS_TIMEOUT, FS_LONG_TIMEOUT, BATT_LOW_TIMER, FS_EKF_THRESH.

    Copter, Plane and QuadPlane

    The rules differ a lot between vehicles: a plane in FBWA does not react like a QuadPlane in QLOITER.

    Avoid dangerous setups

    See what happens with THR_FAILSAFE at 0, a battery action of “warn only” or Terminate in the air.

    The four failsafes that matter most

    Radio loss

    The failsafe triggers when the receiver stops sending valid data (or throttle drops below FS_THR_VALUE/THR_FS_VALUE) for RC_FS_TIMEOUT, 1 s by default. On Copter, FS_THR_ENABLE chooses the action: RTL (default), LAND, SmartRTL or jump to DO_LAND_START; with FS_OPTIONS bit 0 it continues the mission in AUTO. If it is armed on the ground, it disarms. When the signal returns it stays in the failsafe mode.

    On Plane there are two stages: the short failsafe (FS_SHORT_ACTN) switches manual modes to CIRCLE and, with value 0, changes nothing in AUTO or LOITER; the long failsafe comes FS_LONG_TIMEOUT (5 s) later and does RTL in manual modes. On a QuadPlane in a VTOL mode (QHOVER, QLOITER…) both do QLAND by default, QRTL with Q_OPTIONS bit 5 or RTL with bit 20.

    Low battery

    It triggers if voltage stays below BATT_LOW_VOLT for more than 10 s (BATT_LOW_TIMER) or if consumed capacity passes BATT_LOW_MAH. There are two levels, low and critical, with BATT_FS_LOW_ACT and BATT_FS_CRT_ACT. The default action is “warn only”: set it. On Plane, BATT_LOW_VOLT defaults to 0, so the voltage trigger is disabled. Once triggered it cannot be reset until reboot.

    GPS loss

    On Copter the EKF failsafe acts: if two variances exceed FS_EKF_THRESH (0.8) for 1 s, in a position mode (LOITER, AUTO, RTL) it runs FS_EKF_ACTION (LAND by default). In STABILIZE or ALT_HOLD nothing else happens, but autonomous modes are blocked. On Plane, in fixed-wing flight no failsafe action is taken: it keeps navigating by dead reckoning. A QuadPlane in a VTOL position mode switches to QHOVER (or QLAND in a VTOL mission).

    Geofence

    With FENCE_ENABLE = 1, crossing the cylinder (FENCE_RADIUS, FENCE_ALT_MAX) or a polygon runs FENCE_ACTION. On Copter: RTL or LAND (default), LAND, SmartRTL, BRAKE… On Plane: RTL (default), GUIDED to the return point or AUTOLAND. If it keeps going out it creates another fence 20 m further; on Copter, 100 m past the limit it switches to LAND.

    Sources: ArduPilot wiki (Plane failsafe, Copter radio failsafe, battery failsafe, EKF failsafe, geofencing) and the ArduPilot source code.

    Other free tools

    Questions

    What does ArduPilot do if I lose the radio?

    It depends on the vehicle and mode. On Copter, RTL after 1 s by default. On Plane, a short failsafe (CIRCLE in manual modes) and after 5 s a long failsafe (RTL). On a QuadPlane in a VTOL mode, QLAND.

    Why does my QuadPlane QLAND when I switch off the transmitter?

    Because in VTOL modes (QHOVER, QLOITER, QSTABILIZE) the radio failsafe does QLAND by default. Q_OPTIONS bit 5 makes it QRTL and bit 20 makes it RTL.

    What should BATT_FS_LOW_ACT be?

    On Copter the wiki recommends RTL (2). On Plane or QuadPlane, RTL (1) or, on a QuadPlane, QLAND (4) if you prefer to land where it is. The default is “warn only”, which does nothing.

    What happens if I lose GPS?

    On Copter, if the mode needs position, the EKF failsafe triggers and it lands (LAND) by default. A plane in flight takes no action: it navigates by dead reckoning. A QuadPlane in QLOITER switches to QHOVER.

    Does the simulation run ArduPilot code?

    The decisions replicate the wiki and the source code (events.cpp, parameters). The flight on the map is an approximate animation. To test your real setup, use SITL or the AIRLAB simulator.

    More tools: ArduPilot, fixed wing and VTOL

    See all 19 free tools → Fly the real ArduPilot with your .param in the simulator. Try 30 minutes free

    Arm, transition, land. And let Captain Pitot tell you how to improve.