Commit 8b4d25bd authored by Pierre-Louis TILAK's avatar Pierre-Louis TILAK

Add Takeoff SimpleItem if first item is complex

parent cb294031
......@@ -410,6 +410,12 @@ int MissionController::insertComplexMissionItem(QString itemName, QGeoCoordinate
{
ComplexMissionItem* newItem;
// If the ComplexMissionItem is inserted first, add a TakeOff SimpleMissionItem
if (_visualItems->count() == 1 && (_controllerVehicle->fixedWing() || _controllerVehicle->vtol() || _controllerVehicle->multiRotor())) {
insertSimpleMissionItem(mapCenterCoordinate, i);
i++;
}
int sequenceNumber = _nextSequenceNumber();
if (itemName == _surveyMissionItemName) {
newItem = new SurveyComplexItem(_controllerVehicle, _flyView, QString() /* kmlFile */, _visualItems /* parent */);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment