GPS Rescue mode in Betaflight is similar to “Return to Home”. When you lose video or radio signal, the quad is supposed to return to you using GPS.
Don’t expect it to work like your DJI drone, because it doesn’t, yet. The quad doesn’t go back to exactly where it was launched, but close enough so you can get your signals back and regain control. It’s a useful feature to have in Betaflight if you fly long range, and it might save your drone one day 🙂
Check out my other Betaflight Tutorials.
- Flash your FC to Betaflight 3.5 or newer
- Setup a GPS module on your FC
This is the GPS module i use: http://bit.ly/2KZcdR7
Barometer is not required, but recommended. Compass is not required and not used in Rescue Mode. The Kakute F7 FC has barometer built-in.
Once you have setup GPS module, all that left is just software configuration.
You have to tweak the settings to make it work for your particular setup and environment. Make sure to check out the Betaflight wiki to fully understand what the parameters do: https://github.com/betaflight/betaflight/wiki/GPS-rescue-mode
In CLI, type in “get gps”, and you will get the list of GPS related parameters. Here I will show you the settings I changed in my quad.
set gps_rescue_min_sats = 6
Your quad won’t arm if the GPS has fewer locked on satellites than this parameter, so you might want to set it lower or even zero if you don’t want to wait before every flight. Note that if you take off before the GPS sees enough satellites, it won’t know where home is. Recommend: 6 to 8.
set gps_rescue_angle = 45
It’s in degree. You might want to use a higher angle than the default 30, in case the quad isn’t strong enough to fight head wind. However if the angle is too steep it might struggle to stay in the air so it really depends on the power of your quad.
set gps_rescue_descent_dist = 100
It’s in meters, at what distance from home our drone starts to descent. Enter a distance which you think you should get your signals back reliably.
set gps_rescue_initial_alt = 50
It’s in meters, at what height the drone returns home. It should be high enough to avoid trees, buildings and power lines. But not too high so you can still see and hear it line of sight.
set gps_rescue_ground_speed = 1000
It’s in cm/s, at what speed the quad travels back. I find the default 2000cm/s a bit too fast so I set it to half that speed, 1000cm/s is about 36Km/hr.
There are two ways to activate GPS Rescue mode, either by Failsafe, or a switch on your transmitter. I recommend setting it up on a switch first for testing before using it for failsafe.
Go to the Betaflight Modes tab and add a switch/AUX channel for GPS Rescue Mode.
Remove all props, verify that the GPS Rescue mode can actually get activated by the switch, and you can switch back to acro mode.
Keep in mind that the settings depend on your model and the environment so make sure to test it fully. Do this in an open field without any obstacles and people.
These GPS related elements in your OSD will help you understand what your quad is doing.
Fly in a straight line, past your descent distance and a bit more. For example, if your descent distance setting is 100 meters, fly 130-150 meters.
Pay attention to the home arrow in Betaflight OSD, make sure it’s pointing towards home. If it’s pointing other direction then there is probably something wrong, and do not activate GPS Rescue mode. Otherwise your quad would return someone else’s home!
Once you know it’s working reliably, you can set it up for failsafe. In CLI type
set failsafe_procedure = GPS-RESCUE
Note that your quad will enter rescue mode if RC signal is lost, and it will go back to acro mode when RC signal is restored. At this point it’s possible that your video signal is still lost and you are flying blind!
So it’s important to assign rescue mode to a switch. When failsafe happens, put your switch to rescue mode as well. Only put your switch back to acro mode when you are ready to take over control.
The quad climbs or drops to a certain altitude, then it yaws around and starts going toward the direction of launch point. When it gets close enough, it will start to descent.