In ArduPilot RTL, the drone climbs before returning home
If the drone climbs before returning home in ArduPilot RTL, the cause is the 15-meter return altitude. RTL_ALT_M, the cone that kicks in near home, and the fence ceiling are covered here.
You switched to RTL on the transmitter, or the transmitter link dropped. The drone was flying at 5 meters, and instead of heading home it started climbing straight up where it was.
For a team test-flying below treetop height, those few seconds feel long. What you're seeing is the first step of RTL. A few settings decide how high the drone climbs, and you can change all of them from Mission Planner.
Why the drone climbs first in RTL
The moment it enters RTL, the autopilot picks an altitude for the return home. In Copter 4.7 this setting is called RTL_ALT_M, and its default is 15 meters.
If the drone is lower than that, it climbs straight up to 15 meters where it is, then flies home horizontally. If it's already higher, it doesn't climb and returns at that altitude.
Once it reaches home, it waits for RTL_LOIT_TIME (default 5000 ms, i.e. 5 seconds) and lands. Altitude is calculated relative to the Home point, and Home is where you armed the drone.
RTL return path: below 15 m it climbs first, above that it holds altitude
Look at the red line in the figure: the drone entering RTL at 25 meters comes home at the altitude it entered, without climbing at all.
An example from the field
A Fighting UAV team is testing a camera at 5 meters, 50 meters from the takeoff area. The transmitter signal cuts out, and the transmitter failsafe switches the drone to RTL. FS_THR_ENABLE defaults to 1, meaning always RTL.
The drone climbs to 15 meters in place, covers the 50 meters at that altitude, waits 5 seconds above the takeoff point and lands. If there's a 20-meter pole on the way, the 15-meter return heads straight into it. You need to raise the return altitude above the obstacle.
Why it doesn't climb to 15 meters near home
If you enter RTL a few meters from home, the drone may not climb all the way to 15 meters. The autopilot computes an inverted cone above home: the allowed altitude is the horizontal distance to home times RTL_CONE_SLOPE (default 3).
A drone entering RTL 3 meters from home at 3 meters altitude climbs to 9 meters. This avoids a needless climb and descent when it's already close to home. If you set RTL_CONE_SLOPE to 0, the cone is turned off and the drone climbs to 15 meters again.
The most common mistake: mixing up units
In Copter 4.6 and earlier, the same setting is called RTL_ALT, its unit is centimeters and its default is 1500. In 4.7 the name became RTL_ALT_M and the value is entered in meters.
If you write 15 into RTL_ALT on an autopilot running Copter 4.6, the value is read as 15 centimeters, and the drone returns home at its current altitude without climbing. If you write 1500 into RTL_ALT_M on Copter 4.7 out of habit, that means 1500 meters, and if the altitude fence is off, the drone tries to climb there.
Before entering the value, check which name appears in Mission Planner's parameter list. If the list shows RTL_ALT, enter centimeters; if it shows RTL_ALT_M, enter meters.
Set the return altitude for your field
In Mission Planner, open the Full Parameter List screen under the CONFIG tab. Search for the lines below, enter the values, then press Write Params.
RTL_ALT_M,30
RTL_CLIMB_MIN_M,0
RTL_CONE_SLOPE,3
RTL_LOIT_TIME,5000- Enter: RTL_ALT_M = 30. You'll see: a drone switched to RTL at 5 meters climbs to 30 meters in place and comes home at 30 meters. If not: the parameter list shows RTL_ALT instead of RTL_ALT_M. The firmware is 4.6; enter the value in centimeters, as 3000.
- Enter: RTL_ALT_M = 0. You'll see: the drone doesn't climb and returns at the altitude it entered RTL. A drone entering at 8 meters comes home at 8 meters. If not: RTL_CLIMB_MIN_M is greater than zero, and the drone climbs by that much first.
- Enter: turn on the altitude fence (FENCE_ENABLE = 1). You'll see: the return altitude doesn't exceed FENCE_ALT_MAX minus FENCE_MARGIN. With the fence at 20 meters and a 2-meter margin, the drone returns at 18 meters even if RTL_ALT_M is 30. If not: the altitude fence isn't selected in FENCE_TYPE.
Error Messages and Their Meanings
Mode change to RTL failed: requires position
The autopilot has no reliable position, and RTL doesn't work without position. Check the GPS fix and the EKF status in Mission Planner, and land the drone with the transmitter or with LAND for now.
Mode change to RTL failed: init failed
The Home point hasn't been set yet. Arm the drone after it gets a GPS fix so that Home is recorded at the takeoff point.
RTL: no terrain data, using alt-above-home
Terrain following is selected with RTL_ALT_TYPE = 1, but there's no terrain data. The autopilot doesn't give up; it calculates altitude relative to Home and returns. Load terrain data or set RTL_ALT_TYPE to 0.
RTL: rangefinder unhealthy, using alt-above-home
Terrain following is done with a rangefinder, and the sensor is unhealthy. The drone still returns relative to Home. Check the sensor's connection and the distance it reads.
More in the Drone Basics course
The four-step return altitude calculation in the source code, the timing of RTL's sub-stages in the log, and the differences between Copter 4.6 and 4.7 are explained in a separate lesson in the Drone Basics: From Sensors to Flight course.
Was this article helpful?
Learn this topic from start to finish
Season plan: all six courses for 9 months, ₺790 a month. ₺390 a month for high school and university students, ₺351 the first month with your member code. You can stop in any month you like. Start the Season plan · I'm a student