|
|
|
@ -39,6 +39,7 @@ TakeoffMissionItem::TakeoffMissionItem(const MissionItem& missionItem, Vehicle*
@@ -39,6 +39,7 @@ TakeoffMissionItem::TakeoffMissionItem(const MissionItem& missionItem, Vehicle*
|
|
|
|
|
, _settingsItem (settingsItem) |
|
|
|
|
{ |
|
|
|
|
_init(); |
|
|
|
|
_wizardMode = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TakeoffMissionItem::~TakeoffMissionItem() |
|
|
|
@ -71,7 +72,7 @@ void TakeoffMissionItem::_init(void)
@@ -71,7 +72,7 @@ void TakeoffMissionItem::_init(void)
|
|
|
|
|
_initLaunchTakeoffAtSameLocation(); |
|
|
|
|
|
|
|
|
|
if (homePosition.isValid() && coordinate().isValid()) { |
|
|
|
|
// Item already full specified, most likely from mission load from storage
|
|
|
|
|
// Item already fully specified, most likely from mission load from storage
|
|
|
|
|
_wizardMode = false; |
|
|
|
|
} else { |
|
|
|
|
if (_launchTakeoffAtSameLocation && homePosition.isValid()) { |
|
|
|
@ -139,6 +140,7 @@ bool TakeoffMissionItem::load(QTextStream &loadStream)
@@ -139,6 +140,7 @@ bool TakeoffMissionItem::load(QTextStream &loadStream)
|
|
|
|
|
if (success) { |
|
|
|
|
_initLaunchTakeoffAtSameLocation(); |
|
|
|
|
} |
|
|
|
|
_wizardMode = false; // Always be off for loaded items
|
|
|
|
|
return success; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -148,6 +150,7 @@ bool TakeoffMissionItem::load(const QJsonObject& json, int sequenceNumber, QStri
@@ -148,6 +150,7 @@ bool TakeoffMissionItem::load(const QJsonObject& json, int sequenceNumber, QStri
|
|
|
|
|
if (success) { |
|
|
|
|
_initLaunchTakeoffAtSameLocation(); |
|
|
|
|
} |
|
|
|
|
_wizardMode = false; // Always be off for loaded items
|
|
|
|
|
return success; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|