diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-09-03 17:52:24 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-09-03 17:52:24 +0200 |
commit | 7dfc67d032220c8c679848c684703e13e8d13080 (patch) | |
tree | 30df0bc2c57028422dffb40a9061c78c702c9858 /src/modules/mavlink/mavlink_mission.cpp | |
parent | 2761f98ab639c6e3737829adef179b372d9facce (diff) | |
download | px4-firmware-7dfc67d032220c8c679848c684703e13e8d13080.tar.gz px4-firmware-7dfc67d032220c8c679848c684703e13e8d13080.tar.bz2 px4-firmware-7dfc67d032220c8c679848c684703e13e8d13080.zip |
fix mission item to mavink waypoint conversion
Diffstat (limited to 'src/modules/mavlink/mavlink_mission.cpp')
-rw-r--r-- | src/modules/mavlink/mavlink_mission.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/mavlink/mavlink_mission.cpp b/src/modules/mavlink/mavlink_mission.cpp index d436c95e9..a3c127cdc 100644 --- a/src/modules/mavlink/mavlink_mission.cpp +++ b/src/modules/mavlink/mavlink_mission.cpp @@ -798,10 +798,10 @@ int MavlinkMissionManager::format_mavlink_mission_item(const struct mission_item_s *mission_item, mavlink_mission_item_t *mavlink_mission_item) { if (mission_item->altitude_is_relative) { - mavlink_mission_item->frame = MAV_FRAME_GLOBAL; + mavlink_mission_item->frame = MAV_FRAME_GLOBAL_RELATIVE_ALT; } else { - mavlink_mission_item->frame = MAV_FRAME_GLOBAL_RELATIVE_ALT; + mavlink_mission_item->frame = MAV_FRAME_GLOBAL; } switch (mission_item->nav_cmd) { |