From 4669ffd6f4dba83e2afc6c9dda473d51178410a9 Mon Sep 17 00:00:00 2001 From: petergerten Date: Mon, 7 Sep 2020 16:00:11 +0800 Subject: [PATCH] Fixed loiter time (hold time) being ignored on QGC mission import. (#1184) Fix loiter time (hold time) being ignored on QGC mission import. --- src/plugins/mission/mission_impl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/mission/mission_impl.cpp b/src/plugins/mission/mission_impl.cpp index 1310c4c12a..487bf5c037 100644 --- a/src/plugins/mission/mission_impl.cpp +++ b/src/plugins/mission/mission_impl.cpp @@ -964,6 +964,7 @@ Mission::Result MissionImpl::build_mission_items( auto is_fly_through = !(int(params[0]) > 0); new_mission_item.is_fly_through = is_fly_through; } + new_mission_item.loiter_time_s = params[0]; auto lat = params[4], lon = params[5]; new_mission_item.latitude_deg = lat; new_mission_item.longitude_deg = lon;