Skip to content

Commit

Permalink
mavlink: properly set mission_type
Browse files Browse the repository at this point in the history
This was defaulted to 0 before which messed with transmitting geofence
and rally items.

Signed-off-by: Julian Oes <julian@oes.ch>
  • Loading branch information
julianoes committed Nov 9, 2023
1 parent 40c9789 commit e9a142a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/mavlink/mavlink_mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1587,6 +1587,7 @@ MavlinkMissionManager::format_mavlink_mission_item(const struct mission_item_s *
mavlink_mission_item->frame = mission_item->frame;
mavlink_mission_item->command = mission_item->nav_cmd;
mavlink_mission_item->autocontinue = mission_item->autocontinue;
mavlink_mission_item->mission_type = _mission_type;

/* default mappings for generic commands */
if (mission_item->frame == MAV_FRAME_MISSION) {
Expand Down

0 comments on commit e9a142a

Please sign in to comment.