From 35c7d1fad50681f24c3af1a12365b2515db03d1e Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 22 Sep 2016 22:27:44 -0400 Subject: [PATCH] VTOL takeoff/land waypoint label VT/VL -fixes #4035 --- src/MissionManager/SimpleMissionItem.cc | 4 ++++ src/QmlControls/MavlinkQmlSingleton.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/MissionManager/SimpleMissionItem.cc b/src/MissionManager/SimpleMissionItem.cc index 6f7cf029f..35614a1eb 100644 --- a/src/MissionManager/SimpleMissionItem.cc +++ b/src/MissionManager/SimpleMissionItem.cc @@ -307,6 +307,10 @@ QString SimpleMissionItem::abbreviation() const return QStringLiteral("T"); case MavlinkQmlSingleton::MAV_CMD_NAV_LAND: return QStringLiteral("L"); + case MavlinkQmlSingleton::MAV_CMD_NAV_VTOL_TAKEOFF: + return QStringLiteral("VT"); + case MavlinkQmlSingleton::MAV_CMD_NAV_VTOL_LAND: + return QStringLiteral("VL"); } } diff --git a/src/QmlControls/MavlinkQmlSingleton.h b/src/QmlControls/MavlinkQmlSingleton.h index 3b424e37b..95268c032 100644 --- a/src/QmlControls/MavlinkQmlSingleton.h +++ b/src/QmlControls/MavlinkQmlSingleton.h @@ -38,6 +38,8 @@ public: MAV_CMD_NAV_PATHPLANNING=81, /* Control autonomous path planning on the MAV. |0: Disable local obstacle avoidance / local path planning (without resetting map), 1: Enable local path planning, 2: Enable and reset local path planning| 0: Disable full path planning (without resetting map), 1: Enable, 2: Enable and reset map/occupancy grid, 3: Enable and reset planned route, but not occupancy grid| Empty| Yaw angle at goal, in compass degrees, [0..360]| Latitude/X of goal| Longitude/Y of goal| Altitude/Z of goal| */ MAV_CMD_NAV_SPLINE_WAYPOINT=82, /* Navigate to MISSION using a spline path. |Hold time in decimal seconds. (ignored by fixed wing, time to stay at MISSION for rotary wing)| Empty| Empty| Empty| Latitude/X of goal| Longitude/Y of goal| Altitude/Z of goal| */ MAV_CMD_NAV_ALTITUDE_WAIT=83, /* Mission command to wait for an altitude or downwards vertical speed. This is meant for high altitude balloon launches, allowing the aircraft to be idle until either an altitude is reached or a negative vertical speed is reached (indicating early balloon burst). The wiggle time is how often to wiggle the control surfaces to prevent them seizing up. |altitude (m)| descent speed (m/s)| Wiggle Time (s)| Empty| Empty| Empty| Empty| */ + MAV_CMD_NAV_VTOL_TAKEOFF=84, + MAV_CMD_NAV_VTOL_LAND=85, MAV_CMD_NAV_GUIDED_ENABLE=92, /* hand control over to an external controller |On / Off (> 0.5f on)| Empty| Empty| Empty| Empty| Empty| Empty| */ MAV_CMD_NAV_LAST=95, /* NOP - This command is only used to mark the upper limit of the NAV/ACTION commands in the enumeration |Empty| Empty| Empty| Empty| Empty| Empty| Empty| */ MAV_CMD_CONDITION_DELAY=112, /* Delay mission state machine. |Delay in seconds (decimal)| Empty| Empty| Empty| Empty| Empty| Empty| */ -- 2.22.0