|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <VTOLLandingComplexItem.h>
Inheritance diagram for VTOLLandingComplexItem:
Collaboration diagram for VTOLLandingComplexItem:Static Public Member Functions | |
| static bool | scanForItems (QmlObjectListModel *visualItems, bool flyView, PlanMasterController *masterController) |
| Scans the loaded items for a landing pattern complex item. | |
Static Public Attributes | |
| static const QString | name |
| static constexpr const char * | settingsGroup = "VTOLLanding" |
| static constexpr const char * | jsonComplexItemTypeValue = "vtolLandingPattern" |
Static Public Attributes inherited from LandingComplexItem | |
| static constexpr const char * | finalApproachToLandDistanceName = "LandingDistance" |
| static constexpr const char * | landingHeadingName = "LandingHeading" |
| static constexpr const char * | finalApproachAltitudeName = "FinalApproachAltitude" |
| static constexpr const char * | useDoChangeSpeedName = "UseDoChangeSpeed" |
| static constexpr const char * | finalApproachSpeedName = "FinalApproachSpeed" |
| static constexpr const char * | loiterRadiusName = "LoiterRadius" |
| static constexpr const char * | loiterClockwiseName = "LoiterClockwise" |
| static constexpr const char * | landingAltitudeName = "LandingAltitude" |
| static constexpr const char * | useLoiterToAltName = "UseLoiterToAlt" |
| static constexpr const char * | stopTakingPhotosName = "StopTakingPhotos" |
| static constexpr const char * | stopTakingVideoName = "StopTakingVideo" |
Static Public Attributes inherited from ComplexMissionItem | |
| static constexpr const char * | jsonComplexItemTypeKey = "complexItemType" |
| This mission item attribute specifies the type of the complex item. | |
Static Public Attributes inherited from VisualMissionItem | |
| static constexpr const char * | jsonTypeKey = "type" |
| Json file attribute which specifies the item type. | |
| static constexpr const char * | jsonTypeSimpleItemValue = "SimpleItem" |
| Item type is MISSION_ITEM. | |
| static constexpr const char * | jsonTypeComplexItemValue = "ComplexItem" |
| Item type is Complex Item. | |
Additional Inherited Members | |
Public Types inherited from VisualMissionItem | |
| enum | ReadyForSaveState { ReadyForSave , NotReadyForSaveTerrain , NotReadyForSaveData } |
Signals inherited from LandingComplexItem | |
| void | finalApproachCoordinateChanged (QGeoCoordinate coordinate) |
| void | slopeStartCoordinateChanged (QGeoCoordinate coordinate) |
| void | landingCoordinateChanged (QGeoCoordinate coordinate) |
| void | landingCoordSetChanged (bool landingCoordSet) |
| void | altitudesAreRelativeChanged (bool altitudesAreRelative) |
| void | _updateFlightPathSegmentsSignal (void) |
Signals inherited from ComplexMissionItem | |
| void | patternNameChanged (void) |
| void | complexDistanceChanged (void) |
| void | boundingCubeChanged (void) |
| void | greatestDistanceToChanged (void) |
| void | presetNamesChanged (void) |
| void | isIncompleteChanged (void) |
| void | minAMSLAltitudeChanged (void) |
| void | maxAMSLAltitudeChanged (void) |
| void | terrainCollisionChanged (bool terrainCollision) |
Signals inherited from VisualMissionItem | |
| void | altDifferenceChanged (double altDifference) |
| void | altPercentChanged (double altPercent) |
| void | terrainPercentChanged (double terrainPercent) |
| void | terrainCollisionChanged (bool terrainCollision) |
| void | azimuthChanged (double azimuth) |
| void | commandDescriptionChanged (void) |
| void | commandNameChanged (void) |
| void | abbreviationChanged (void) |
| void | coordinateChanged (const QGeoCoordinate &coordinate) |
| void | entryCoordinateChanged (const QGeoCoordinate &entryCoordinate) |
| void | exitCoordinateChanged (const QGeoCoordinate &exitCoordinate) |
| void | dirtyChanged (bool dirty) |
| void | distanceChanged (double distance) |
| void | distanceFromStartChanged (double distanceFromStart) |
| void | isCurrentItemChanged (bool isCurrentItem) |
| void | hasCurrentChildItemChanged (bool hasCurrentChildItem) |
| void | sequenceNumberChanged (int sequenceNumber) |
| void | isSimpleItemChanged (bool isSimpleItem) |
| void | isTakeoffItemChanged (bool isTakeoffItem) |
| void | isLandCommandChanged (void) |
| void | specifiesCoordinateChanged (void) |
| void | isStandaloneCoordinateChanged (void) |
| void | specifiesAltitudeOnlyChanged (void) |
| void | specifiedFlightSpeedChanged (void) |
| void | specifiedGimbalYawChanged (void) |
| void | specifiedGimbalPitchChanged (void) |
| void | specifiedVehicleYawChanged (void) |
| void | lastSequenceNumberChanged (int sequenceNumber) |
| void | missionGimbalYawChanged (double missionGimbalYaw) |
| void | missionVehicleYawChanged (double missionVehicleYaw) |
| void | terrainAltitudeChanged (double terrainAltitude) |
| void | additionalTimeDelayChanged (void) |
| void | boundingCubeChanged (void) |
| void | readyForSaveStateChanged (void) |
| void | wizardModeChanged (bool wizardMode) |
| void | parentItemChanged (VisualMissionItem *parentItem) |
| void | amslEntryAltChanged (double alt) |
| void | amslExitAltChanged (double alt) |
| void | previousVTOLModeChanged (void) |
| void | currentVTOLModeChanged (void) |
| Signals that this item has changed the VTOL mode (MAV_CMD_DO_VTOL_TRANSITION) | |
| void | exitCoordinateSameAsEntryChanged (bool exitCoordinateSameAsEntry) |
Protected Types inherited from LandingComplexItem | |
| typedef bool(* | IsLandItemFunc) (const MissionItem &missionItem) |
| typedef LandingComplexItem *(* | CreateItemFunc) (PlanMasterController *masterController, bool flyView) |
Protected Slots inherited from LandingComplexItem | |
| virtual void | _updateFlightPathSegmentsDontCallDirectly (void)=0 |
| void | _recalcFromHeadingAndDistanceChange (void) |
| void | _recalcFromCoordinateChange (void) |
| void | _setDirty (void) |
Protected Slots inherited from ComplexMissionItem | |
| virtual void | _segmentTerrainCollisionChanged (bool terrainCollision) |
Protected Slots inherited from VisualMissionItem | |
| void | _amslEntryAltChanged (void) |
| void | _amslExitAltChanged (void) |
Protected Member Functions inherited from LandingComplexItem | |
| void | _init (void) |
| QPointF | _rotatePoint (const QPointF &point, const QPointF &origin, double angle) |
| MissionItem * | _createDoLandStartItem (int seqNum, QObject *parent) |
| MissionItem * | _createDoChangeSpeedItem (int speedType, int speedValue, int throttlePercentage, int seqNum, QObject *parent) |
| MissionItem * | _createFinalApproachItem (int seqNum, QObject *parent) |
| QJsonObject | _save (void) |
| bool | _load (const QJsonObject &complexObject, int sequenceNumber, const QString &jsonComplexItemTypeValue, bool useDeprecatedRelAltKeys, QString &errorString) |
Protected Member Functions inherited from ComplexMissionItem | |
| void | _savePresetJson (const QString &name, QJsonObject &presetObject) |
| QJsonObject | _loadPresetJson (const QString &name) |
| void | _appendFlightPathSegment (FlightPathSegment::SegmentType segmentType, const QGeoCoordinate &coord1, double coord1AMSLAlt, const QGeoCoordinate &coord2, double coord2AMSLAlt) |
Protected Member Functions inherited from VisualMissionItem | |
| void | _setBoundingCube (QGCGeoBoundingCube bc) |
Static Protected Member Functions inherited from LandingComplexItem | |
| static bool | _scanForItems (QmlObjectListModel *visualItems, bool flyView, PlanMasterController *masterController, IsLandItemFunc isLandItemFunc, CreateItemFunc createItemFunc) |
| static bool | _scanForItem (QmlObjectListModel *visualItems, int &startIndex, bool flyView, PlanMasterController *masterController, IsLandItemFunc isLandItemFunc, CreateItemFunc createItemFunc) |
Protected Attributes inherited from LandingComplexItem | |
| int | _sequenceNumber = 0 |
| bool | _dirty = false |
| QGeoCoordinate | _finalApproachCoordinate |
| QGeoCoordinate | _slopeStartCoordinate |
| QGeoCoordinate | _landingCoordinate |
| bool | _landingCoordSet = false |
| bool | _ignoreRecalcSignals = false |
| bool | _altitudesAreRelative = true |
Protected Attributes inherited from ComplexMissionItem | |
| bool | _isIncomplete = true |
| int | _cTerrainCollisionSegments = 0 |
| QmlObjectListModel | _flightPathSegments |
| QMap< QString, FactMetaData * > | _metaDataMap |
Protected Attributes inherited from VisualMissionItem | |
| bool | _flyView = false |
| bool | _isCurrentItem = false |
| bool | _hasCurrentChildItem = false |
| bool | _dirty = false |
| bool | _homePositionSpecialCase = false |
| true: This item is being used as a ui home position indicator | |
| bool | _wizardMode = false |
| true: Item editor is showing wizard completion panel | |
| double | _terrainAltitude = qQNaN() |
| Altitude of terrain at coordinate position, NaN for not known. | |
| double | _altDifference = 0 |
| Difference in altitude from previous waypoint. | |
| double | _altPercent = 0 |
| Percent of total altitude change in mission. | |
| double | _terrainPercent = qQNaN() |
| Percent of terrain altitude for coordinate. | |
| bool | _terrainCollision = false |
| true: item collides with terrain | |
| double | _azimuth = 0 |
| Azimuth to previous waypoint. | |
| double | _distance = 0 |
| Distance to previous waypoint. | |
| double | _distanceFromStart = 0 |
| Flight path cumalative horizontal distance from home point to this item. | |
| QString | _editorQml |
| Qml resource for editing item. | |
| double | _missionGimbalYaw = qQNaN() |
| double | _missionVehicleYaw = qQNaN() |
| QGCMAVLink::VehicleClass_t | _previousVTOLMode = QGCMAVLink::VehicleClassGeneric |
| Generic == unknown. | |
| PlanMasterController * | _masterController = nullptr |
| MissionController * | _missionController = nullptr |
| Vehicle * | _controllerVehicle = nullptr |
| FlightPathSegment * | _simpleFlightPathSegment = nullptr |
| The simple item flight segment (if any) which starts with this visual item. | |
| VisualMissionItem * | _parentItem = nullptr |
| QGCGeoBoundingCube | _boundingCube |
| The bounding "cube" of this element. | |
| QmlObjectListModel | _childItems |
| This is used to reference any subsequent mission items which do not specify a coordinate. | |
Static Protected Attributes inherited from LandingComplexItem | |
| static constexpr const char * | _jsonDeprecatedLandingAltitudeRelativeKey = "landAltitudeRelative" |
| static constexpr const char * | _jsonDeprecatedLoiterAltitudeRelativeKey = "loiterAltitudeRelative" |
| static constexpr const char * | _jsonDeprecatedLoiterCoordinateKey = "loiterCoordinate" |
| static constexpr const char * | _jsonFinalApproachCoordinateKey = "landingApproachCoordinate" |
| static constexpr const char * | _jsonUseDoChangeSpeedKey = "useDoChangeSpeed" |
| static constexpr const char * | _jsonFinalApproachSpeedKey = "finalApproachSpeed" |
| static constexpr const char * | _jsonLoiterRadiusKey = "loiterRadius" |
| static constexpr const char * | _jsonLoiterClockwiseKey = "loiterClockwise" |
| static constexpr const char * | _jsonLandingCoordinateKey = "landCoordinate" |
| static constexpr const char * | _jsonAltitudesAreRelativeKey = "altitudesAreRelative" |
| static constexpr const char * | _jsonUseLoiterToAltKey = "useLoiterToAlt" |
| static constexpr const char * | _jsonStopTakingPhotosKey = "stopTakingPhotos" |
| static constexpr const char * | _jsonStopTakingVideoKey = "stopVideoPhotos" |
Static Protected Attributes inherited from ComplexMissionItem | |
| static constexpr const char * | _presetSettingsKey = "_presets" |
Definition at line 14 of file VTOLLandingComplexItem.h.
| VTOLLandingComplexItem::VTOLLandingComplexItem | ( | PlanMasterController * | masterController, |
| bool | flyView | ||
| ) |
Definition at line 18 of file VTOLLandingComplexItem.cc.
References QGC::fuzzyCompare(), FactMetaData::rawMin(), and PlanViewSettings::vtolTransitionDistance().
|
finalvirtual |
Load the complex mission item from Json
| complexObject | Complex mission item json object | |
| sequenceNumber | Sequence number for first MISSION_ITEM in survey | |
| [out] | errorString | Error if load fails |
Implements ComplexMissionItem.
Definition at line 72 of file VTOLLandingComplexItem.cc.
References LandingComplexItem::_ignoreRecalcSignals, LandingComplexItem::_load(), errorString, jsonComplexItemTypeValue, JsonHelper::jsonVersionKey, LandingComplexItem::sequenceNumber(), and JsonHelper::validateKeys().
|
inlinefinalvirtual |
Implements VisualMissionItem.
Definition at line 27 of file VTOLLandingComplexItem.h.
|
finalvirtual |
Implements ComplexMissionItem.
Definition at line 52 of file VTOLLandingComplexItem.cc.
References VisualMissionItem::_masterController, MissionController::isFirstLandingComplexItem(), PlanMasterController::missionController(), and name.
|
finalvirtual |
Save the item(s) in Json format
| missionItems | Current set of mission items, new items should be appended to the end |
Implements VisualMissionItem.
Definition at line 61 of file VTOLLandingComplexItem.cc.
References LandingComplexItem::_save(), ComplexMissionItem::jsonComplexItemTypeKey, jsonComplexItemTypeValue, VisualMissionItem::jsonTypeComplexItemValue, VisualMissionItem::jsonTypeKey, and JsonHelper::jsonVersionKey.
|
static |
Scans the loaded items for a landing pattern complex item.
Definition at line 121 of file VTOLLandingComplexItem.cc.
References LandingComplexItem::_scanForItems(), VisualMissionItem::flyView(), and VisualMissionItem::masterController().
|
staticconstexpr |
Definition at line 35 of file VTOLLandingComplexItem.h.
|
static |
Definition at line 32 of file VTOLLandingComplexItem.h.
Referenced by MissionController::insertComplexMissionItem(), MissionController::insertLandItem(), and patternName().
|
staticconstexpr |
Definition at line 34 of file VTOLLandingComplexItem.h.