# RTL behavior

**URL:** <https://discuss.px4.io/t/rtl-behavior/48413>\
**Category:** MAVSDK\
**Created:** [February 2, 2026, 4:04pm UTC](https://discuss.px4.io/t/rtl-behavior/48413 "2026-02-02T16:04:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuvalz](https://discuss.px4.io/letter_avatar_proxy/v4/letter/y/b19c9b/32.png) [@Yuvalz](https://discuss.px4.io/u/Yuvalz)\
**Post date:** [February 2, 2026, 4:04pm UTC](https://discuss.px4.io/t/rtl-behavior/48413/1 "2026-02-02T16:04:08Z")

</div>

Hello,

PX4

I use SITL and Gazebo for simulation.

I write a C++ controller that sends MAVLink messages to the Pixhawk.

I load rally points near the home point. In Pixhawk parameters, rtl\_type = 1, and rtl\_return\_alt = 25.0.

The rally points I load have latitude and longitude, and the alt is 100m. For some reason, when I do RTL, the drone climbs to 125m and only then returns to the rally point. Why does it climb to 125m instead of returning to its current altitude (for example, if it flew at 90m)?

---

<div class="post-metadata">

**Author:** ![nitru](https://discuss.px4.io/user_avatar/discuss.px4.io/nitru/32/18827_2.png) [@nitru](https://discuss.px4.io/u/nitru)\
**Post date:** [February 4, 2026, 8:35am UTC](https://discuss.px4.io/t/rtl-behavior/48413/2 "2026-02-04T08:35:59Z")

</div>

Do you have a Log file of that happening? Would help to debug this issue.

---

<div class="post-metadata">

**Author:** ![system](https://discuss.px4.io/uploads/default/original/3X/7/3/73ce918bdcd64854de904f0c8d9ab70ca9723f2a.png) [@system](https://discuss.px4.io/u/system)\
**Post date:** [May 5, 2026, 8:36am UTC](https://discuss.px4.io/t/rtl-behavior/48413/3 "2026-05-05T08:36:06Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
