RTL: use NAV_CMD_LOITER_TO_ALT for Climb state

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer 2020-12-11 16:00:44 +01:00 committed by Lorenz Meier
parent 68f27ba7b7
commit 55a1d090a1
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ void RTL::set_rtl_item()
switch (_rtl_state) {
case RTL_STATE_CLIMB: {
_mission_item.nav_cmd = NAV_CMD_WAYPOINT;
_mission_item.nav_cmd = NAV_CMD_LOITER_TO_ALT;
_mission_item.lat = gpos.lat;
_mission_item.lon = gpos.lon;
_mission_item.altitude = _rtl_alt;