forked from Archive/PX4-Autopilot
mavlink: properly set mission_type
This was defaulted to 0 before which messed with transmitting geofence and rally items. Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
parent
40c9789e7d
commit
e9a142ac7d
|
@ -1587,6 +1587,7 @@ MavlinkMissionManager::format_mavlink_mission_item(const struct mission_item_s *
|
||||||
mavlink_mission_item->frame = mission_item->frame;
|
mavlink_mission_item->frame = mission_item->frame;
|
||||||
mavlink_mission_item->command = mission_item->nav_cmd;
|
mavlink_mission_item->command = mission_item->nav_cmd;
|
||||||
mavlink_mission_item->autocontinue = mission_item->autocontinue;
|
mavlink_mission_item->autocontinue = mission_item->autocontinue;
|
||||||
|
mavlink_mission_item->mission_type = _mission_type;
|
||||||
|
|
||||||
/* default mappings for generic commands */
|
/* default mappings for generic commands */
|
||||||
if (mission_item->frame == MAV_FRAME_MISSION) {
|
if (mission_item->frame == MAV_FRAME_MISSION) {
|
||||||
|
|
Loading…
Reference in New Issue