set_failsafe
Set the core failsafe behaviour (RC-loss action, throttle, delays) on iNAV flight controllers. Dry-run by default; confirm to apply atomically with backup and reboot.
Instructions
Set the core failsafe behaviour (atomic CLI write: backup → apply → save+reboot).
Only the arguments you pass are changed; dry-run by default. For other failsafe_* knobs (distances, angles) use cli('set failsafe_... = N', confirm_for_writes=True).
Args: procedure: RC-loss action — one of DROP | LAND | SET-THR | RTH | NONE. The exact accepted tokens depend on firmware; an invalid value is rejected by the FC and the whole write is rolled back. throttle_us: failsafe_throttle in µs (used by SET-THR / LAND). Clamped 1000–2000. delay_s: Guard time after RC loss before failsafe triggers (failsafe_delay). iNAV stores this in 0.1 s units, so this is converted ×10. off_delay_s: Time the failsafe stage runs before the motor is killed (failsafe_off_delay), also 0.1 s units (×10). confirm: True to apply (saves + reboots). Dry-run otherwise.
Gates: connected, not armed, auto-backup. RTH without GPS will not work — use DROP/LAND.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| delay_s | No | ||
| procedure | No | ||
| off_delay_s | No | ||
| throttle_us | No |