GPS Rescue Configuration
GPS Rescue is Betaflight's return-to-home failsafe. When triggered (link loss, low battery, or manual activation), the quad climbs to a configured altitude and flies back to where it armed.
Prerequisites
- GPS module connected and assigned to a UART (enable GPS in the Ports tab for that UART)
- 6+ satellite lock before arming (configurable minimum)
- GPS Rescue mode added in the Modes tab (on a switch or tied to failsafe)
Basic Configuration (CLI)
1set gps_provider = UBLOX # or NMEA for generic modules
2set gps_baudrate = 115200 # match GPS module baud rate
3
4set gps_rescue_max_angle = 30 # max tilt angle during rescue (degrees)
5set gps_rescue_initial_climb = 15 # climb above arm point before heading home (m)
6set gps_rescue_return_alt = 30 # cruise altitude for the return flight (m)
7set gps_rescue_ground_speed = 750 # return speed (cm/s ≈ 27 km/h)
8set gps_rescue_descent_dist = 20 # meters from home where descent begins
9set gps_rescue_descend_rate = 150 # descent speed approaching home (cm/s)
10set gps_rescue_disarm_threshold = 15 # impact detection for auto-disarm on landing
11
12save
Failsafe Integration
GPS Rescue integrates with Betaflight's failsafe system. In the Failsafe tab:
- Set Failsafe Stage 2 to
GPS RESCUE - Set a reasonable Stage 1 guard time (2–3 seconds of link loss before Stage 2 triggers)
- Enable
GPS_RESCUEmode on an AUX switch for manual activation
1set failsafe_procedure = GPS-RESCUE
2set failsafe_delay = 20 # 20 × 0.1s = 2 seconds
3set failsafe_recovery_delay = 20
Arming Checks
With GPS Rescue set as failsafe, Betaflight requires a GPS fix before arming (configurable):
1set gps_rescue_min_sats = 6 # minimum satellites required
2set gps_rescue_allow_arming_without_fix = OFF # don't arm without fix
For test flights in known safe areas you can temporarily allow arming without fix — but never fly with GPS Rescue as failsafe without an actual GPS fix.
Tuning Tips
- Initial climb should clear local obstacles. In open fields, 15 m is fine. Near trees or structures, increase to 30–50 m.
- Return altitude sets the altitude used during the homeward flight. Should be above the highest obstacle on the return path.
- Return speed (default 300 cm/s = 3 m/s) is conservative. For long-range builds, increase to 500–700 cm/s.
- Descent distance is how far from home the quad starts its final descent. Increase for windy conditions.
Testing
Always test GPS Rescue on a calm day over open ground before relying on it:
- Arm and take off; get a GPS home point locked
- Fly 100 m away
- Activate GPS Rescue via switch (not by killing link)
- Verify the quad climbs, turns toward home, and descends
Be ready to take back control if behavior is wrong.
Notes
- GPS Rescue requires a magnetometer (compass) for reliable heading. Some builds use the GPS module's built-in compass (enable in Betaflight's GPS tab).
- Without a compass, the quad uses accelerometer + GPS velocity for heading estimate — less accurate but functional.
- GPS accuracy varies with satellite count and atmospheric conditions. HDOP < 2.0 is acceptable for rescue; < 1.5 is ideal.
Related Snippets
- Betaflight Flight Modes and Switch Setup
Betaflight modes are conditions assigned to AUX channel ranges. When a switch … - Betaflight Stick Commands
Stick commands let you trigger Betaflight functions from your transmitter sticks … - CLI Backup and Restore — diff all Workflow
The Betaflight CLI is the only source of truth for a complete build … - Common FPV Build Pitfalls
A collection of "first 10 minutes of a new build" failures and how to … - Failsafe Configuration
Failsafe is what happens when the RC link dies mid-flight. Without correct … - Pre-Flight Checklist
A methodical pre-flight check prevents the most common crash causes: wrong motor …