diff --git a/src/MissionManager/PlanManager.cc b/src/MissionManager/PlanManager.cc index 33a609f5dc444389b89f5f5198bb9cc3207c87db..284d213d70d348b6605cc5919da88dd277956d11 100644 --- a/src/MissionManager/PlanManager.cc +++ b/src/MissionManager/PlanManager.cc @@ -30,6 +30,7 @@ PlanManager::PlanManager(Vehicle* vehicle, MAV_MISSION_TYPE planType) , _transactionInProgress(TransactionNone) , _resumeMission(false) , _lastMissionRequest(-1) + , _missionItemCountToRead(-1) , _currentMissionIndex(-1) , _lastCurrentIndex(-1) { @@ -317,6 +318,7 @@ void PlanManager::_handleMissionCount(const mavlink_message_t& message) for (int i=0; i _itemIndicesToWrite; ///< List of mission items which still need to be written to vehicle QList _itemIndicesToRead; ///< List of mission items which still need to be requested from vehicle int _lastMissionRequest; ///< Index of item last requested by MISSION_REQUEST + int _missionItemCountToRead;///< Count of all mission items to read QList _missionItems; ///< Set of mission items on vehicle QList _writeMissionItems; ///< Set of mission items currently being written to vehicle