mavlink_mission: publish mission topic at startup

This commit is contained in:
Konrad 2023-12-13 14:09:04 +01:00 committed by Daniel Agar
parent 9fd137e88e
commit 97ce599b1f
1 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,9 @@ MavlinkMissionManager::MavlinkMissionManager(Mavlink *mavlink) :
} else { } else {
PX4_WARN("offboard mission init failed"); PX4_WARN("offboard mission init failed");
} }
update_active_mission(_mission_dataman_id, _count[MAV_MISSION_TYPE_MISSION], _current_seq,
_crc32[MAV_MISSION_TYPE_MISSION], false);
} }
_my_mission_dataman_id = _mission_dataman_id; _my_mission_dataman_id = _mission_dataman_id;