mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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
3ad2c641da
commit
f120ebcdc0
@ -1561,6 +1561,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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user