Commit 3dc382fb authored by DoinLakeFlyer's avatar DoinLakeFlyer

parent 1200542b
...@@ -115,7 +115,7 @@ bool TakeoffMissionItem::isTakeoffCommand(MAV_CMD command) ...@@ -115,7 +115,7 @@ bool TakeoffMissionItem::isTakeoffCommand(MAV_CMD command)
void TakeoffMissionItem::_initLaunchTakeoffAtSameLocation(void) void TakeoffMissionItem::_initLaunchTakeoffAtSameLocation(void)
{ {
if (specifiesCoordinate()) { if (specifiesCoordinate()) {
if (_vehicle->fixedWing()) { if (_vehicle->fixedWing() || _vehicle->vtol()) {
setLaunchTakeoffAtSameLocation(false); setLaunchTakeoffAtSameLocation(false);
} else { } else {
// PX4 specifies a coordinate for takeoff even for non fixed wing. But it makes more sense to not have a coordinate // PX4 specifies a coordinate for takeoff even for non fixed wing. But it makes more sense to not have a coordinate
......
...@@ -47,6 +47,7 @@ public: ...@@ -47,6 +47,7 @@ public:
}; };
Q_ENUM(ReadyForSaveState) Q_ENUM(ReadyForSaveState)
Q_PROPERTY(Vehicle* vehicle READ vehicle CONSTANT)
Q_PROPERTY(bool homePosition READ homePosition CONSTANT) ///< true: This item is being used as a home position indicator Q_PROPERTY(bool homePosition READ homePosition CONSTANT) ///< true: This item is being used as a home position indicator
Q_PROPERTY(QGeoCoordinate coordinate READ coordinate WRITE setCoordinate NOTIFY coordinateChanged) ///< This is the entry point for a waypoint line into the item. For a simple item it is also the location of the item Q_PROPERTY(QGeoCoordinate coordinate READ coordinate WRITE setCoordinate NOTIFY coordinateChanged) ///< This is the entry point for a waypoint line into the item. For a simple item it is also the location of the item
Q_PROPERTY(double terrainAltitude READ terrainAltitude NOTIFY terrainAltitudeChanged) ///< The altitude of terrain at the coordinate position, NaN if not known Q_PROPERTY(double terrainAltitude READ terrainAltitude NOTIFY terrainAltitudeChanged) ///< The altitude of terrain at the coordinate position, NaN if not known
......
...@@ -66,7 +66,7 @@ Rectangle { ...@@ -66,7 +66,7 @@ Rectangle {
visible: missionItem.isTakeoffItem && missionItem.wizardMode // Hack special case for takeoff item visible: missionItem.isTakeoffItem && missionItem.wizardMode // Hack special case for takeoff item
QGCLabel { QGCLabel {
text: qsTr("Move 'T' Takeoff to the climbout location.") text: qsTr("Move 'T' Takeoff to the %1 location.").arg(missionItem.vehicle.vtol ? qsTr("desired") : qsTr("climbout"))
Layout.fillWidth: true Layout.fillWidth: true
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
visible: !initialClickLabel.visible visible: !initialClickLabel.visible
...@@ -76,7 +76,7 @@ Rectangle { ...@@ -76,7 +76,7 @@ Rectangle {
text: qsTr("Ensure clear of obstacles and into the wind.") text: qsTr("Ensure clear of obstacles and into the wind.")
Layout.fillWidth: true Layout.fillWidth: true
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
visible: !initialClickLabel.visible visible: !initialClickLabel.visible && !missionItem.vehicle.vtol
} }
QGCButton { QGCButton {
......
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