|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <Vehicle.h>
Inheritance diagram for Vehicle:
Collaboration diagram for Vehicle:Public Slots | |
| void | setVtolInFwdFlight (bool vtolInFwdFlight) |
| void | _offlineFirmwareTypeSettingChanged (QVariant varFirmwareType) |
| void | _offlineVehicleTypeSettingChanged (QVariant varVehicleType) |
| Q_INVOKABLE void | sendGripperAction (GRIPPER_ACTIONS gripperOption) |
Public Member Functions | |
| Vehicle (LinkInterface *link, int vehicleId, int defaultComponentId, MAV_AUTOPILOT firmwareType, MAV_TYPE vehicleType, QObject *parent=nullptr) | |
| Vehicle (MAV_AUTOPILOT firmwareType, MAV_TYPE vehicleType, QObject *parent=nullptr) | |
| ~Vehicle () | |
| Q_INVOKABLE void | resetCounters () |
| < Non-empty when vehicle firmware is older than this stable version | |
| Q_INVOKABLE void | virtualTabletJoystickValue (double roll, double pitch, double yaw, double thrust) |
| Q_INVOKABLE void | guidedModeRTL (bool smartRTL) |
| Command vehicle to return to launch. | |
| Q_INVOKABLE void | guidedModeLand () |
| Command vehicle to land at current location. | |
| Q_INVOKABLE void | guidedModeTakeoff (double altitudeRelative) |
| Command vehicle to takeoff from current location. | |
| Q_INVOKABLE double | minimumTakeoffAltitudeMeters () |
| Q_INVOKABLE double | maximumHorizontalSpeedMultirotorMetersSecond () |
| Q_INVOKABLE double | maximumEquivalentAirspeed () |
| Q_INVOKABLE double | minimumEquivalentAirspeed () |
| Q_INVOKABLE bool | guidedModeGotoLocation (const QGeoCoordinate &gotoCoord, double forwardFlightLoiterRadius=0.0f) |
| Q_INVOKABLE void | guidedModeChangeAltitude (double altitudeChange, bool pauseVehicle) |
| Q_INVOKABLE void | guidedModeChangeHeading (const QGeoCoordinate &headingCoord) |
| Q_INVOKABLE void | guidedModeChangeGroundSpeedMetersSecond (double groundspeed) |
| Q_INVOKABLE void | guidedModeChangeEquivalentAirspeedMetersSecond (double airspeed) |
| Q_INVOKABLE void | guidedModeOrbit (const QGeoCoordinate ¢erCoord, double radius, double amslAltitude) |
| Q_INVOKABLE bool | guidedModeROI (const QGeoCoordinate ¢erCoord, double relativeAltitudeMeters) |
| Q_INVOKABLE void | stopGuidedModeROI () |
| Q_INVOKABLE void | pauseVehicle () |
| Q_INVOKABLE void | emergencyStop () |
| Command vehicle to kill all motors no matter what state. | |
| Q_INVOKABLE void | abortLanding (double climbOutAltitude) |
| Command vehicle to abort landing. | |
| Q_INVOKABLE void | landingGearDeploy () |
| Command vichecle to deploy landing gear. | |
| Q_INVOKABLE void | landingGearRetract () |
| Command vichecle to retract landing gear. | |
| Q_INVOKABLE void | startTakeoff () |
| Q_INVOKABLE void | startMission () |
| Q_INVOKABLE void | setCurrentMissionSequence (int seq) |
| Alter the current mission item on the vehicle. | |
| Q_INVOKABLE void | rebootVehicle () |
| Reboot vehicle. | |
| void | setRebootRequired () |
| Latches rebootRequired until the vehicle reboots. | |
| void | setNewStableFirmwareVersion (const QString &version) |
| Q_INVOKABLE void | acknowledgeNewStableFirmwareVersion () |
| Hides the update indicator until a newer stable firmware is released. | |
| Q_INVOKABLE void | sendPlan (QString planFile) |
| Q_INVOKABLE void | setEstimatorOrigin (const QGeoCoordinate ¢erCoord) |
| void | setEstimatorOrigin_SET_GPS_GLOBAL_ORIGIN (const QGeoCoordinate ¢erCoord) |
| Fallback for setEstimatorOrigin which sends the deprecated SET_GPS_GLOBAL_ORIGIN message. | |
| Q_INVOKABLE int | versionCompare (const QString &compare) const |
| Used to check if running current version is equal or higher than the one being compared. | |
| Q_INVOKABLE int | versionCompare (int major, int minor, int patch) const |
| Q_INVOKABLE void | motorTest (int motor, int percent, int timeoutSecs, bool showError) |
| Q_INVOKABLE void | setPIDTuningTelemetryMode (PIDTuningTelemetryMode mode) |
| Q_INVOKABLE void | forceArm () |
| Q_INVOKABLE void | sendParamMapRC (const QString ¶mName, double scale, double centerValue, int tuningID, double minValue, double maxValue) |
| Sends PARAM_MAP_RC message to vehicle. | |
| Q_INVOKABLE void | clearAllParamMapRC (void) |
| Clears all PARAM_MAP_RC settings from vehicle. | |
| Q_INVOKABLE void | closeVehicle () |
| Removes the vehicle from the system. | |
| Q_INVOKABLE void | triggerSimpleCamera (void) |
| Trigger camera using MAV_CMD_DO_DIGICAM_CONTROL command. | |
| Q_INVOKABLE void | doSetHome (const QGeoCoordinate &coord) |
| Set home from flight map coordinate. | |
| Q_INVOKABLE QVariant | expandedToolbarIndicatorSource (const QString &indicatorName) |
| bool | isInitialConnectComplete () const |
| QString | gotoFlightMode () const |
| VehicleSupports * | supports () |
| bool | hasGripper () const |
| bool | haveMRSpeedLimits () const |
| bool | haveFWSpeedLimits () const |
| QGeoCoordinate | coordinate () |
| QGeoCoordinate | armedPosition () |
| qreal | getInitialGCSPressure () const |
| qreal | getInitialGCSTemperature () const |
| void | setInitialGCSPressure (qreal pressure) |
| void | setInitialGCSTemperature (qreal temperature) |
| void | updateFlightDistance (double distance) |
| void | sendJoystickDataThreadSafe (float roll, float pitch, float yaw, float thrust, quint16 buttons, quint16 buttons2, float pitchExtension, float rollExtension, float aux1, float aux2, float aux3, float aux4, float aux5, float aux6) |
| void | sendJoystickAuxRcOverrideThreadSafe (const std::array< uint16_t, kAuxRcOverrideChannelCount > &channelValues, const std::array< bool, kAuxRcOverrideChannelCount > &channelEnabled, bool useRcOverride) |
| int | id () const |
| int | compId () const |
| MAV_AUTOPILOT | firmwareType () const |
| MAV_TYPE | vehicleType () const |
| QGCMAVLink::VehicleClass_t | vehicleClass (void) const |
| Q_INVOKABLE QString | vehicleClassInternalName () const |
| bool | sendMessageOnLinkThreadSafe (LinkInterface *link, mavlink_message_t message) |
| void | sendMessageMultiple (mavlink_message_t message) |
| AutoPilotPlugin * | autopilotPlugin () |
| Provides access to AutoPilotPlugin for this vehicle. | |
| FirmwarePlugin * | firmwarePlugin () |
| Provides access to the Firmware Plugin for this Vehicle. | |
| QGeoCoordinate | homePosition () |
| bool | armed () const |
| void | setArmed (bool armed, bool showError) |
| void | setArmedShowError (bool armed) |
| bool | flightModeSetAvailable () |
| QStringList | flightModes () |
| QString | flightMode () const |
| void | setFlightMode (const QString &flightMode) |
| bool | airship () const |
| void | pairRX (int rxType, int rxSubType) |
| bool | fixedWing () const |
| bool | multiRotor () const |
| bool | vtol () const |
| bool | rover () const |
| bool | sub () const |
| bool | spacecraft () const |
| void | setGuidedMode (bool guidedMode) |
| QString | prearmError () const |
| void | setPrearmError (const QString &prearmError) |
| QmlObjectListModel * | cameraTriggerPoints () |
| void | startMavlinkLog () |
| void | stopMavlinkLog () |
| void | requestDataStream (MAV_DATA_STREAM stream, uint16_t rate, bool sendMultiple=true) |
| void | trackFirmwareVehicleTypeChanges (void) |
| void | stopTrackingFirmwareVehicleTypeChanges (void) |
| float | latitude () |
| float | longitude () |
| bool | px4Firmware () const |
| bool | apmFirmware () const |
| bool | genericFirmware () const |
| uint | messagesReceived () const |
| uint | messagesSent () const |
| uint | messagesLost () const |
| bool | underway () const |
| bool | airborne () const |
| bool | landing () const |
| bool | guidedMode () const |
| bool | inFwdFlight () const |
| bool | vtolInFwdFlight () const |
| uint8_t | baseMode () const |
| uint32_t | customMode () const |
| uint32_t | effectiveCustomMode () const |
| bool | isOfflineEditingVehicle () const |
| int | sensorsPresentBits () const |
| int | sensorsEnabledBits () const |
| int | sensorsHealthBits () const |
| int | sensorsUnhealthyBits () const |
| QString | missionFlightMode () const |
| QString | pauseFlightMode () const |
| QString | rtlFlightMode () const |
| QString | smartRTLFlightMode () const |
| QString | landFlightMode () const |
| QString | takeControlFlightMode () const |
| QString | followFlightMode () const |
| QString | motorDetectionFlightMode () const |
| QString | stabilizedFlightMode () const |
| double | defaultCruiseSpeed () const |
| double | defaultHoverSpeed () const |
| QString | firmwareTypeString () const |
| QString | vehicleTypeString () const |
| bool | autoDisarm () |
| bool | orbitActive () const |
| QGCMapCircle * | orbitMapCircle () |
| bool | readyToFlyAvailable () const |
| bool | readyToFly () const |
| bool | allSensorsHealthy () const |
| QObject * | sysStatusSensorInfo () |
| bool | requiresGpsFix () const |
| bool | rebootRequired () const |
| QString | newStableFirmwareVersion () const |
| bool | newStableFirmwareVersionAcknowledged () const |
| bool | hilMode () const |
| Actuators * | actuators () const |
| VehicleSigningController * | signingController () |
| const VehicleSigningController * | signingController () const |
| void | startCalibration (QGCMAVLink::CalibrationType calType) |
| void | stopCalibration (bool showError) |
| FactGroup * | vehicleFactGroup () |
| VehicleGPSFactGroup * | gpsFactGroup () |
| VehicleGPSFactGroup * | gps2FactGroup () |
| FactGroup * | windFactGroup () |
| FactGroup * | vibrationFactGroup () |
| FactGroup * | temperatureFactGroup () |
| FactGroup * | clockFactGroup () |
| FactGroup * | setpointFactGroup () |
| FactGroup * | distanceSensorFactGroup () |
| FactGroup * | localPositionFactGroup () |
| FactGroup * | localPositionSetpointFactGroup () |
| FactGroup * | estimatorStatusFactGroup () |
| FactGroup * | terrainFactGroup () |
| FactGroup * | hygrometerFactGroup () |
| FactGroup * | generatorFactGroup () |
| FactGroup * | efiFactGroup () |
| FactGroup * | radioStatusFactGroup () |
| FactGroup * | rpmFactGroup () |
| QmlObjectListModel * | batteries () |
| QmlObjectListModel * | escs () |
| MissionManager * | missionManager () |
| GeoFenceManager * | geoFenceManager () |
| RallyPointManager * | rallyPointManager () |
| ParameterManager * | parameterManager () |
| ParameterManager * | parameterManager () const |
| VehicleLinkManager * | vehicleLinkManager () |
| FTPManager * | ftpManager () |
| ComponentInformationManager * | compInfoManager () |
| VehicleObjectAvoidance * | objectAvoidance () |
| Autotune * | autotune () const |
| RemoteIDManager * | remoteIDManager () |
| void | sendMavCommand (int compId, MAV_CMD command, bool showError, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, float param5=0.0f, float param6=0.0f, float param7=0.0f) |
| void | sendMavCommandDelayed (int compId, MAV_CMD command, bool showError, int milliseconds, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, float param5=0.0f, float param6=0.0f, float param7=0.0f) |
| void | sendMavCommandInt (int compId, MAV_CMD command, MAV_FRAME frame, bool showError, float param1, float param2, float param3, float param4, double param5, double param6, float param7) |
| bool | isMavCommandPending (int targetCompId, MAV_CMD command) |
| isMavCommandPending Query whether the specified MAV_CMD is in queue to be sent or has already been sent but whose reply has not yet been received and whose timeout has not yet expired. | |
| Q_INVOKABLE void | sendCommand (int compId, int command, bool showError, double param1=0.0, double param2=0.0, double param3=0.0, double param4=0.0, double param5=0.0, double param6=0.0, double param7=0.0) |
| Same as sendMavCommand but available from Qml. | |
| void | sendMavCommandWithHandler (const MavCmdAckHandlerInfo_t *ackHandlerInfo, int compId, MAV_CMD command, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, float param5=0.0f, float param6=0.0f, float param7=0.0f) |
| Sends the command and calls the callback with the result. | |
| void | sendMavCommandIntWithHandler (const MavCmdAckHandlerInfo_t *ackHandlerInfo, int compId, MAV_CMD command, MAV_FRAME frame, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, double param5=0.0f, double param6=0.0f, float param7=0.0f) |
| void | sendMavCommandWithLambdaFallback (std::function< void()> lambda, int compId, MAV_CMD command, bool showError, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, float param5=0.0f, float param6=0.0f, float param7=0.0f) |
| void | sendMavCommandIntWithLambdaFallback (std::function< void()> lambda, int compId, MAV_CMD command, MAV_FRAME frame, bool showError, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, double param5=0.0, double param6=0.0, float param7=0.0f) |
| void | requestMessage (RequestMessageResultHandler resultHandler, void *resultHandlerData, int compId, int messageId, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, float param5=0.0f) |
| int | firmwareMajorVersion () const |
| int | firmwareMinorVersion () const |
| int | firmwarePatchVersion () const |
| int | firmwareVersionType () const |
| int | firmwareCustomMajorVersion () const |
| int | firmwareCustomMinorVersion () const |
| int | firmwareCustomPatchVersion () const |
| int | firmwareBoardVendorId () const |
| int | firmwareBoardProductId () const |
| QString | firmwareVersionTypeString () const |
| void | setFirmwareVersion (int majorVersion, int minorVersion, int patchVersion, FIRMWARE_VERSION_TYPE versionType=FIRMWARE_VERSION_TYPE_OFFICIAL) |
| void | setFirmwareCustomVersion (int majorVersion, int minorVersion, int patchVersion) |
| QString | gitHash () const |
| quint64 | vehicleUID () const |
| QString | vehicleUIDStr () |
| bool | soloFirmware () const |
| void | setSoloFirmware (bool soloFirmware) |
| int | defaultComponentId () const |
| void | setOfflineEditingDefaultComponentId (int defaultComponentId) |
| Sets the default component id for an offline editing vehicle. | |
| int | motorCount () |
| bool | coaxialMotors () |
| bool | xConfigMotors () |
| class FirmwarePluginInstanceData * | firmwarePluginInstanceData () |
| void | setFirmwarePluginInstanceData (FirmwarePluginInstanceData *firmwarePluginInstanceData) |
| QString | vehicleImageOpaque () const |
| QString | vehicleImageOutline () const |
| const QVariantList & | toolIndicators () |
| bool | capabilitiesKnown () const |
| uint64_t | capabilityBits () const |
| QString | hobbsMeter () |
| bool | initialPlanRequestComplete () const |
| void | forceInitialPlanRequestComplete () |
| void | _setUnderway (bool underway) |
| void | _setLanding (bool landing) |
| void | _setHomePosition (QGeoCoordinate &homeCoord) |
| void | prepareDelete () |
| Vehicle is about to be deleted. | |
| void | deleteGimbalController () |
| Delete gimbal controller, handy for RequestMessageTest.cc, otherwise gimbal controller message requests will mess with this test. | |
| quint64 | mavlinkSentCount () const |
| quint64 | mavlinkReceivedCount () const |
| Calculated total number of messages sent to us. | |
| quint64 | mavlinkLossCount () const |
| Total number of sucessful messages received. | |
| float | mavlinkLossPercent () const |
| Total number of lost messages. | |
| bool | isROIEnabled () const |
| Running loss rate. | |
| double | roiRelativeAltitudeMeters () const |
| Last commanded ROI altitude in meters above home. Used to preserve the altitude when the ROI is re-positioned. | |
| CheckList | checkListState () |
| void | setCheckListState (CheckList cl) |
| double | loadProgress () const |
| void | setActuatorsMetadata (uint8_t compid, const QString &metadataJsonFileName, const QJsonDocument &metadataJson) |
| GimbalController * | gimbalController () |
| int | _findMavCommandListEntryIndex (int targetCompId, MAV_CMD command) |
| Test-only helper: forwards to MavCommandQueue::findEntryIndex. | |
| int32_t | getMessageRate (uint8_t compId, uint16_t msgId) |
| void | setMessageRate (uint8_t compId, uint16_t msgId, int32_t rate) |
| Q_INVOKABLE void | flashBootloader () |
| Q_INVOKABLE void | motorInterlock (bool enable) |
| Command vehicle to Enable/Disable Motor Interlock. | |
| Q_INVOKABLE void | startTimerRevertAllowTakeover () |
| Q_INVOKABLE void | requestOperatorControl (bool allowOverride, int requestTimeoutSecs=0) |
| Q_INVOKABLE void | clearMessages () |
| int | criticalMessageCount () const |
| QString | formattedMessages () const |
| uint32_t | flowImageIndex () const |
| MAVLinkLogManager * | mavlinkLogManager () const |
| QGCCameraManager * | cameraManager () |
| const QVariantList & | staticCameraList () const |
| HealthAndArmingCheckReport * | healthAndArmingCheckReport () |
| void | setEventsMetadata (uint8_t compid, const QString &metadataJsonFileName) |
Public Member Functions inherited from VehicleFactGroup | |
| VehicleFactGroup (QObject *parent=nullptr) | |
| Fact * | roll () |
| Fact * | pitch () |
| Fact * | heading () |
| Fact * | rollRate () |
| Fact * | pitchRate () |
| Fact * | yawRate () |
| Fact * | airSpeed () |
| Fact * | airSpeedSetpoint () |
| Fact * | groundSpeed () |
| Fact * | climbRate () |
| Fact * | altitudeRelative () |
| Fact * | altitudeAMSL () |
| Fact * | altitudeAboveTerr () |
| Fact * | altitudeTuning () |
| Fact * | altitudeTuningSetpoint () |
| Fact * | xTrackError () |
| Fact * | rangeFinderDist () |
| Fact * | flightDistance () |
| Fact * | distanceToHome () |
| Fact * | timeToHome () |
| Fact * | missionItemIndex () |
| Fact * | headingToNextWP () |
| Fact * | distanceToNextWP () |
| Fact * | headingToHome () |
| Fact * | headingFromHome () |
| Fact * | headingFromGCS () |
| Fact * | distanceToGCS () |
| Fact * | hobbs () |
| Fact * | throttlePct () |
| Fact * | imuTemp () |
| Fact * | rcRSSI () |
| void | handleMessage (Vehicle *vehicle, const mavlink_message_t &message) override |
| Allows a FactGroup to parse incoming messages and fill in values. | |
| void | updateRCRSSI (uint8_t rssi) |
Public Member Functions inherited from FactGroup | |
| FactGroup (int updateRateMsecs, const QString &metaDataFile, QObject *parent=nullptr, bool ignoreCamelCase=false) | |
| < false: No telemetry for these values has been received | |
| FactGroup (int updateRateMsecs, QObject *parent=nullptr, bool ignoreCamelCase=false) | |
| virtual | ~FactGroup () |
| Q_INVOKABLE bool | factExists (const QString &name) const |
| @ return true: if the fact exists in the group | |
| Q_INVOKABLE Fact * | getFact (const QString &name) const |
| Q_INVOKABLE FactGroup * | getFactGroup (const QString &name) const |
| Q_INVOKABLE void | setLiveUpdates (bool liveUpdates) |
| Turning on live updates will allow value changes to flow through as they are received. | |
| QStringList | factNames () const |
| QStringList | factGroupNames () const |
| bool | telemetryAvailable () const |
| const QMap< QString, FactGroup * > & | factGroups () const |
Static Public Member Functions | |
| static void | showCommandAckError (const mavlink_command_ack_t &ack) |
| static QString | mavCmdResultFailureCodeToString (MavCmdResultFailureCode_t failureCode) |
| static QString | requestMessageResultHandlerFailureCodeToString (RequestMessageResultHandlerFailureCode_t failureCode) |
Static Public Attributes | |
| static const MAV_AUTOPILOT | MAV_AUTOPILOT_TRACK = MAV_AUTOPILOT_ENUM_END |
| static const MAV_TYPE | MAV_TYPE_TRACK = MAV_TYPE_ENUM_END |
| static constexpr int | kAuxRcOverrideChannelCount = 6 |
| Sends RC_CHANNELS_OVERRIDE for joystick aux axes mapped to RC channels 5–10 only. | |
Static Public Attributes inherited from VehicleTypes | |
| static const int | versionNotSetValue = -1 |
Friends | |
| class | InitialConnectStateMachine |
| class | VehicleLinkManager |
| class | FactGroupListModel |
| class | GimbalController |
| enum Vehicle::CheckList |
| Vehicle::Vehicle | ( | LinkInterface * | link, |
| int | vehicleId, | ||
| int | defaultComponentId, | ||
| MAV_AUTOPILOT | firmwareType, | ||
| MAV_TYPE | vehicleType, | ||
| QObject * | parent = nullptr |
||
| ) |
Definition at line 102 of file Vehicle.cc.
References _initialConnectStateMachine, MultiVehicleManager::activeVehicleChanged(), FirmwarePlugin::adjustMetaData(), airborne(), airborneChanged(), armedChanged(), FirmwarePlugin::autopilotPlugin(), FactGroup::factNames(), flightModeChanged(), FactGroup::getFact(), FirmwarePlugin::initializeVehicle(), MAVLinkProtocol::instance(), SettingsManager::instance(), QGCSensors::QGCPressure::instance(), MultiVehicleManager::instance(), MAVLinkProtocol::mavlinkMessageStatus(), MAVLinkProtocol::messageReceived(), Fact::metaData(), MultiVehicleManager::parameterReadyVehicleAvailableChanged(), QGC::runningUnitTests(), setInitialGCSPressure(), setInitialGCSTemperature(), InitialConnectStateMachine::start(), sub(), vehicleType(), VideoSettings::videoDisabled, SettingsManager::videoSettings(), and VideoSettings::videoSourceUDPH264.
| Vehicle::Vehicle | ( | MAV_AUTOPILOT | firmwareType, |
| MAV_TYPE | vehicleType, | ||
| QObject * | parent = nullptr |
||
| ) |
Definition at line 179 of file Vehicle.cc.
References _offlineFirmwareTypeSettingChanged(), FirmwarePlugin::initializeVehicle(), SettingsManager::instance(), MAV_AUTOPILOT_TRACK, Fact::rawValueChanged(), and trackFirmwareVehicleTypeChanges().
| Vehicle::~Vehicle | ( | ) |
Definition at line 387 of file Vehicle.cc.
References _missionManager, and MavCommandQueue::stop().
| int Vehicle::_findMavCommandListEntryIndex | ( | int | targetCompId, |
| MAV_CMD | command | ||
| ) |
Test-only helper: forwards to MavCommandQueue::findEntryIndex.
Definition at line 2227 of file Vehicle.cc.
References MavCommandQueue::findEntryIndex().
|
slot |
Definition at line 485 of file Vehicle.cc.
References capabilityBitsChanged(), FirmwarePluginManager::firmwarePluginForAutopilot(), firmwareTypeChanged(), and FirmwarePluginManager::instance().
Referenced by stopTrackingFirmwareVehicleTypeChanges(), trackFirmwareVehicleTypeChanges(), and Vehicle().
|
slot |
Definition at line 498 of file Vehicle.cc.
References vehicleTypeChanged().
Referenced by stopTrackingFirmwareVehicleTypeChanges(), and trackFirmwareVehicleTypeChanges().
| void Vehicle::_setHomePosition | ( | QGeoCoordinate & | homeCoord | ) |
Definition at line 1199 of file Vehicle.cc.
References homePositionChanged().
Referenced by PlanManager::_handleMissionItem().
| void Vehicle::_setLanding | ( | bool | landing | ) |
Definition at line 1842 of file Vehicle.cc.
References armed(), landing(), and landingChanged().
| void Vehicle::_setUnderway | ( | bool | underway | ) |
Definition at line 1824 of file Vehicle.cc.
References underway(), and underwayChanged().
| void Vehicle::abortLanding | ( | double | climbOutAltitude | ) |
Command vehicle to abort landing.
Definition at line 2083 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
| void Vehicle::acknowledgeNewStableFirmwareVersion | ( | ) |
Hides the update indicator until a newer stable firmware is released.
Definition at line 2376 of file Vehicle.cc.
References QmlObjectListModel::count(), MultiVehicleManager::instance(), newStableFirmwareVersionChanged(), QmlObjectListModel::value(), and MultiVehicleManager::vehicles().
|
inline |
Definition at line 562 of file Vehicle.h.
References _actuators.
Referenced by PX4AutoPilotPlugin::vehicleComponents().
|
inline |
Definition at line 521 of file Vehicle.h.
Referenced by APMFirmwarePlugin::startCompensatingBaro(), APMFirmwarePlugin::startTakeoff(), and Vehicle().
|
signal |
Referenced by Vehicle().
| bool Vehicle::airship | ( | ) | const |
Definition at line 1750 of file Vehicle.cc.
References QGCMAVLink::isAirship(), and vehicleType().
Referenced by SensorsComponent::SensorsComponent(), SensorsComponent::setupComplete(), SensorsComponent::setupCompleteChangedTriggerList(), and SensorsComponent::summaryQmlSource().
|
signal |
|
inline |
Definition at line 513 of file Vehicle.h.
Referenced by LandingComplexItem::_createDoLandStartItem(), PlanManager::_handleMissionAck(), PlanManager::_handleMissionItem(), LandingComplexItem::_init(), LandingComplexItem::_scanForItem(), flashBootloader(), genericFirmware(), motorInterlock(), and GeoFenceController::paramCircularFence().
|
inline |
Definition at line 467 of file Vehicle.h.
Referenced by FirmwarePlugin::_armVehicleAndValidate(), _setLanding(), MissionController::sendToVehiclePreCheck(), setArmed(), setArmedShowError(), and APMFirmwarePlugin::startMission().
|
signal |
Referenced by MAVLinkLogManager::MAVLinkLogManager(), and Vehicle().
|
signal |
| bool Vehicle::autoDisarm | ( | ) |
Definition at line 2681 of file Vehicle.cc.
References FirmwarePlugin::autoDisarmParameter(), ParameterManager::defaultComponentId, and Fact::rawValue().
|
signal |
|
inline |
Provides access to AutoPilotPlugin for this vehicle.
| QmlObjectListModel * Vehicle::batteries | ( | ) |
Definition at line 435 of file Vehicle.cc.
References _batteryFactGroupListModel.
|
inline |
Definition at line 1312 of file Vehicle.h.
Referenced by VehicleCameraControl::_streamInfoTimeout(), VehicleCameraControl::handleVideoStreamInformation(), and VehicleCameraControl::setCurrentStream().
|
signal |
| QmlObjectListModel * Vehicle::cameraTriggerPoints | ( | ) |
Definition at line 439 of file Vehicle.cc.
|
inline |
Definition at line 726 of file Vehicle.h.
Referenced by OnboardLogController::refresh().
|
signal |
|
inline |
Definition at line 727 of file Vehicle.h.
Referenced by FirmwarePlugin::_sendROICommand(), PX4FirmwarePlugin::guidedModeGotoLocation(), guidedModeOrbit(), OnboardLogController::refresh(), stopGuidedModeROI(), GeoFenceManager::supported(), RallyPointManager::supported(), GeoFenceController::supported(), and RallyPointController::supported().
|
signal |
Referenced by _offlineFirmwareTypeSettingChanged().
|
signal |
Referenced by setCheckListState().
| void Vehicle::clearAllParamMapRC | ( | void | ) |
Clears all PARAM_MAP_RC settings from vehicle.
Definition at line 3022 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
| void Vehicle::clearMessages | ( | ) |
Definition at line 3473 of file Vehicle.cc.
References StatusTextHandler::clearMessages().
| FactGroup * Vehicle::clockFactGroup | ( | ) |
Definition at line 422 of file Vehicle.cc.
References _clockFactGroup.
| void Vehicle::closeVehicle | ( | ) |
Removes the vehicle from the system.
Definition at line 440 of file Vehicle.cc.
References _vehicleLinkManager, and VehicleLinkManager::closeVehicle().
| bool Vehicle::coaxialMotors | ( | ) |
Definition at line 1436 of file Vehicle.cc.
References FirmwarePlugin::multiRotorCoaxialMotors().
|
inline |
Definition at line 444 of file Vehicle.h.
Referenced by VehicleFactGroup::_handleAttitude(), VehicleFactGroup::_handleAttitudeQuaternion(), VehicleObjectAvoidance::enabled(), getMessageRate(), RemoteIDManager::RemoteIDManager(), RequestMessageCoordinator::requestMessage(), requestMessage(), sendCommand(), sendMavCommand(), sendMavCommandDelayed(), sendMavCommandInt(), sendMavCommandIntWithHandler(), sendMavCommandIntWithLambdaFallback(), sendMavCommandWithHandler(), sendMavCommandWithLambdaFallback(), setMessageRate(), VehicleObjectAvoidance::start(), VehicleObjectAvoidance::stop(), and PX4AutoPilotPlugin::vehicleComponents().
|
inline |
|
inline |
Definition at line 427 of file Vehicle.h.
Referenced by APMFirmwarePlugin::guidedModeChangeHeading(), PX4FirmwarePlugin::guidedModeChangeHeading(), guidedModeGotoLocation(), TransformPositionController::setFromVehicle(), and TerrainQueryCoordinator::updateAltAboveTerrain().
|
signal |
Referenced by TrajectoryPoints::start(), and TrajectoryPoints::stop().
| int Vehicle::criticalMessageCount | ( | ) | const |
Definition at line 3478 of file Vehicle.cc.
References StatusTextHandler::criticalMessageCount().
|
signal |
|
signal |
|
inline |
Definition at line 700 of file Vehicle.h.
Referenced by PX4FirmwarePlugin::_changeAltAfterPause(), FactPanelController::_reportMissingParameter(), FirmwarePlugin::_sendROICommand(), abortLanding(), APMSensorsComponentController::calibrateCompass(), APMSensorsComponentController::calibrateCompassNorth(), APMSensorsComponentController::cancelCalibration(), OnboardLogController::eraseAll(), flashBootloader(), APMFirmwarePlugin::guidedModeChangeAltitude(), PX4FirmwarePlugin::guidedModeChangeAltitude(), APMFirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), PX4FirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), PX4FirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), APMFirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), APMFirmwarePlugin::guidedModeChangeHeading(), PX4FirmwarePlugin::guidedModeChangeHeading(), APMFirmwarePlugin::guidedModeGotoLocation(), PX4FirmwarePlugin::guidedModeGotoLocation(), guidedModeOrbit(), PX4FirmwarePlugin::guidedModeTakeoff(), landingGearDeploy(), landingGearRetract(), motorInterlock(), PX4FirmwarePlugin::pauseVehicle(), SensorsComponentController::resetFactoryParameters(), setCurrentMissionSequence(), setEstimatorOrigin(), setFlightMode(), setOfflineEditingDefaultComponentId(), startCalibration(), APMFirmwarePlugin::startMission(), stopCalibration(), stopGuidedModeROI(), and MissionManager::writeArduPilotGuidedMissionItem().
|
inline |
Definition at line 546 of file Vehicle.h.
Referenced by MissionFlightStatusCalculator::reset(), MissionController::save(), and SpeedSection::SpeedSection().
|
signal |
|
inline |
Definition at line 547 of file Vehicle.h.
Referenced by MissionFlightStatusCalculator::reset(), MissionController::save(), and SpeedSection::SpeedSection().
|
signal |
| void Vehicle::deleteGimbalController | ( | ) |
Delete gimbal controller, handy for RequestMessageTest.cc, otherwise gimbal controller message requests will mess with this test.
| FactGroup * Vehicle::distanceSensorFactGroup | ( | ) |
Definition at line 424 of file Vehicle.cc.
References _distanceSensorFactGroup.
| void Vehicle::doSetHome | ( | const QGeoCoordinate & | coord | ) |
Set home from flight map coordinate.
Definition at line 2934 of file Vehicle.cc.
References _terrainQueryCoordinator, and TerrainQueryCoordinator::doSetHomeWithTerrain().
|
inline |
| FactGroup * Vehicle::efiFactGroup | ( | ) |
Definition at line 431 of file Vehicle.cc.
References _efiFactGroup.
| void Vehicle::emergencyStop | ( | ) |
Command vehicle to kill all motors no matter what state.
Definition at line 2108 of file Vehicle.cc.
References sendMavCommand().
| QmlObjectListModel * Vehicle::escs | ( | ) |
Definition at line 436 of file Vehicle.cc.
References _escStatusFactGroupListModel.
| FactGroup * Vehicle::estimatorStatusFactGroup | ( | ) |
Definition at line 427 of file Vehicle.cc.
References _estimatorStatusFactGroup.
| QVariant Vehicle::expandedToolbarIndicatorSource | ( | const QString & | indicatorName | ) |
Definition at line 3425 of file Vehicle.cc.
References FirmwarePlugin::expandedToolbarIndicatorSource().
|
signal |
Referenced by setFirmwareCustomVersion().
|
inline |
Definition at line 679 of file Vehicle.h.
Referenced by APMFirmwarePlugin::_internalParameterMetaDataFile(), FirmwarePlugin::_versionFileDownloadFinished(), SensorsComponent::SensorsComponent(), SensorsComponent::setupComplete(), FirmwarePlugin::versionCompare(), and ParameterManager::writeParametersToStream().
|
inline |
Definition at line 680 of file Vehicle.h.
Referenced by APMFirmwarePlugin::_internalParameterMetaDataFile(), FirmwarePlugin::_versionFileDownloadFinished(), SensorsComponent::SensorsComponent(), SensorsComponent::setupComplete(), FirmwarePlugin::versionCompare(), and ParameterManager::writeParametersToStream().
|
inline |
Definition at line 681 of file Vehicle.h.
Referenced by FirmwarePlugin::_versionFileDownloadFinished(), FirmwarePlugin::versionCompare(), and ParameterManager::writeParametersToStream().
|
inline |
Provides access to the Firmware Plugin for this Vehicle.
Definition at line 462 of file Vehicle.h.
Referenced by PlanManager::_handleMissionItem(), CameraSection::cameraModeSupported(), VehicleSupports::changeHeading(), MissionController::currentMissionIndex(), MissionManager::generateResumeMission(), StandardModes::gotMessage(), VehicleSupports::guidedMode(), VehicleSupports::guidedTakeoffWithAltitude(), VehicleSupports::guidedTakeoffWithoutAltitude(), MissionController::insertCancelROIMissionItem(), MissionController::insertROIMissionItem(), TakeoffMissionItem::isVTOLMulticopterTakeoff(), VehicleSupports::jsButton(), VehicleSupports::motorInterference(), VehicleSupports::negativeThrust(), VehicleSupports::orbitMode(), VehicleSupports::pauseVehicle(), VehicleSupports::radio(), MissionController::removeVisualItem(), MissionFlightStatusCalculator::reset(), MissionController::resumeMission(), MissionController::resumeMissionIndex(), VehicleSupports::roiMode(), APMFollowComponentController::roverFirmware(), MAVLinkEventManager::setMetadata(), VehicleSupports::smartRTL(), VehicleSupports::takeoffMissionCommand(), VehicleSupports::throttleModeCenterZero(), APMAutoPilotPlugin::vehicleComponents(), VehicleSupports::vtolMulticopterTakeoff(), and PlanManager::writeMissionItems().
|
inline |
Definition at line 715 of file Vehicle.h.
Referenced by _MAV_CMD_DO_REPOSITION_ResultHandler(), APMFirmwarePlugin::adjustIncomingMavlinkMessage(), APMFirmwarePlugin::guidedModeGotoLocation(), APMFirmwarePlugin::initializeStreamRates(), and setFirmwarePluginInstanceData().
|
inline |
Definition at line 445 of file Vehicle.h.
Referenced by MissionController::save(), MissionController::sendToVehiclePreCheck(), FirmwarePlugin::stableFirmwareSettingsKey(), and ParameterManager::writeParametersToStream().
|
signal |
Referenced by _offlineFirmwareTypeSettingChanged(), and VehicleSupports::VehicleSupports().
| QString Vehicle::firmwareTypeString | ( | ) | const |
Definition at line 516 of file Vehicle.cc.
References QGCMAVLink::firmwareClassToString().
|
signal |
Referenced by setFirmwareVersion().
|
inline |
Definition at line 682 of file Vehicle.h.
Referenced by FirmwarePlugin::_versionFileDownloadFinished().
| QString Vehicle::firmwareVersionTypeString | ( | ) | const |
Definition at line 2319 of file Vehicle.cc.
References QGCMAVLink::firmwareVersionTypeToString().
Referenced by ParameterManager::writeParametersToStream().
| bool Vehicle::fixedWing | ( | ) | const |
Definition at line 1755 of file Vehicle.cc.
References QGCMAVLink::isFixedWing(), and vehicleType().
Referenced by RallyPointController::addPoint(), PX4FirmwarePlugin::flightModes(), inFwdFlight(), MissionController::insertLandItem(), APMFirmwarePlugin::isCapable(), PX4FirmwarePlugin::isCapable(), MissionController::multipleLandPatternsAllowed(), SpeedSection::scanForSection(), SensorsComponent::SensorsComponent(), SpeedSection::setAvailable(), SensorsComponent::setupComplete(), SensorsComponent::setupCompleteChangedTriggerList(), SimpleMissionItem::showLoiterRadius(), APMFirmwarePlugin::startMission(), and SensorsComponent::summaryQmlSource().
| void Vehicle::flashBootloader | ( | ) |
Definition at line 3444 of file Vehicle.cc.
References apmFirmware(), defaultComponentId(), and sendMavCommand().
| QString Vehicle::flightMode | ( | ) | const |
Definition at line 1485 of file Vehicle.cc.
References FirmwarePlugin::flightMode().
Referenced by FirmwarePlugin::_setFlightModeAndValidate(), APMFirmwarePlugin::isGuidedMode(), PX4FirmwarePlugin::isGuidedMode(), MissionController::sendToVehiclePreCheck(), and setFlightMode().
|
signal |
Referenced by MAVLinkEventManager::MAVLinkEventManager(), and Vehicle().
| QStringList Vehicle::flightModes | ( | ) |
Definition at line 1479 of file Vehicle.cc.
References flightModes(), and FirmwarePlugin::flightModes().
Referenced by flightModes().
|
signal |
| bool Vehicle::flightModeSetAvailable | ( | ) |
Definition at line 1474 of file Vehicle.cc.
References FirmwarePlugin::isCapable(), and FirmwarePlugin::SetFlightModeCapability.
| uint32_t Vehicle::flowImageIndex | ( | ) | const |
Definition at line 3577 of file Vehicle.cc.
References ImageProtocolManager::flowImageIndex().
|
signal |
| QString Vehicle::followFlightMode | ( | ) | const |
Definition at line 2630 of file Vehicle.cc.
References FirmwarePlugin::followFlightMode().
| void Vehicle::forceArm | ( | void | ) |
Definition at line 1465 of file Vehicle.cc.
References sendMavCommand().
| void Vehicle::forceInitialPlanRequestComplete | ( | ) |
Definition at line 2774 of file Vehicle.cc.
References initialPlanRequestCompleteChanged().
| QString Vehicle::formattedMessages | ( | ) | const |
Definition at line 3482 of file Vehicle.cc.
References StatusTextHandler::formattedMessages().
|
signal |
|
inline |
Definition at line 598 of file Vehicle.h.
References _ftpManager.
Referenced by OnboardLogController::cancel().
|
signal |
| FactGroup * Vehicle::generatorFactGroup | ( | ) |
Definition at line 430 of file Vehicle.cc.
References _generatorFactGroup.
|
inline |
Definition at line 514 of file Vehicle.h.
References apmFirmware(), and px4Firmware().
|
inline |
Definition at line 593 of file Vehicle.h.
References _geoFenceManager.
|
inline |
Definition at line 430 of file Vehicle.h.
Referenced by APMFirmwarePlugin::startCompensatingBaro().
|
inline |
Definition at line 431 of file Vehicle.h.
Referenced by APMFirmwarePlugin::startCompensatingBaro().
| int32_t Vehicle::getMessageRate | ( | uint8_t | compId, |
| uint16_t | msgId | ||
| ) |
Definition at line 3415 of file Vehicle.cc.
References compId(), and MessageIntervalManager::getMessageRate().
|
inline |
|
inline |
Definition at line 693 of file Vehicle.h.
Referenced by ParameterManager::writeParametersToStream().
|
signal |
| QString Vehicle::gotoFlightMode | ( | ) | const |
Definition at line 1850 of file Vehicle.cc.
References FirmwarePlugin::gotoFlightMode().
| VehicleGPSFactGroup * Vehicle::gps2FactGroup | ( | ) |
Definition at line 415 of file Vehicle.cc.
References _gps2FactGroup.
| VehicleGPSFactGroup * Vehicle::gpsFactGroup | ( | ) |
Definition at line 410 of file Vehicle.cc.
References _gpsFactGroup.
Referenced by NTRIPVehicleGgaSource::setVehicle().
| bool Vehicle::guidedMode | ( | ) | const |
Definition at line 2092 of file Vehicle.cc.
References FirmwarePlugin::isGuidedMode().
Referenced by setGuidedMode().
| void Vehicle::guidedModeChangeAltitude | ( | double | altitudeChange, |
| bool | pauseVehicle | ||
| ) |
Command vehicle to change altitude
| altitudeChange | If > 0, go up by amount specified, if < 0, go down by amount specified |
| pauseVehicle | true: pause vehicle prior to altitude change |
Definition at line 1941 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeChangeAltitude(), pauseVehicle(), and QGC::showAppMessage().
|
signal |
| void Vehicle::guidedModeChangeEquivalentAirspeedMetersSecond | ( | double | airspeed | ) |
Command vehicle to change equivalent airspeed
| airspeed | Target equivalent airspeed |
Definition at line 1961 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), and QGC::showAppMessage().
| void Vehicle::guidedModeChangeGroundSpeedMetersSecond | ( | double | groundspeed | ) |
Command vehicle to change groundspeed
| groundspeed | Target horizontal groundspeed |
Definition at line 1951 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), and QGC::showAppMessage().
| void Vehicle::guidedModeChangeHeading | ( | const QGeoCoordinate & | headingCoord | ) |
Command vehicle to change yaw
| coordinate | to rotate towards |
Definition at line 2064 of file Vehicle.cc.
References VehicleSupports::changeHeading(), FirmwarePlugin::guidedModeChangeHeading(), and QGC::showAppMessage().
| bool Vehicle::guidedModeGotoLocation | ( | const QGeoCoordinate & | gotoCoord, |
| double | forwardFlightLoiterRadius = 0.0f |
||
| ) |
Command vehicle to move to specified location (altitude is ignored)
Definition at line 1920 of file Vehicle.cc.
References FactMetaData::appSettingsHorizontalDistanceUnitsString(), coordinate(), SettingsManager::flyViewSettings(), guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeGotoLocation(), SettingsManager::instance(), FactMetaData::metersToAppSettingsHorizontalDistanceUnits(), and QGC::showAppMessage().
| void Vehicle::guidedModeLand | ( | ) |
Command vehicle to land at current location.
Definition at line 1864 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeLand(), and QGC::showAppMessage().
| void Vehicle::guidedModeOrbit | ( | const QGeoCoordinate & | centerCoord, |
| double | radius, | ||
| double | amslAltitude | ||
| ) |
Command vehicle to orbit given center point
| centerCoord | Orbit around this point |
| radius | Distance from vehicle to centerCoord |
| amslAltitude | Desired vehicle altitude |
Definition at line 1970 of file Vehicle.cc.
References capabilityBits(), defaultComponentId(), VehicleSupports::orbitMode(), sendMavCommand(), sendMavCommandInt(), and QGC::showAppMessage().
| bool Vehicle::guidedModeROI | ( | const QGeoCoordinate & | centerCoord, |
| double | relativeAltitudeMeters | ||
| ) |
Command vehicle to set a Region Of Interest at the specified location.
| centerCoord | ROI location (altitude within the coordinate is ignored) |
| relativeAltitudeMeters | ROI altitude in meters above home |
Definition at line 2002 of file Vehicle.cc.
References FirmwarePlugin::guidedModeROI(), roiCoordChanged(), VehicleSupports::roiMode(), roiRelativeAltitudeMetersChanged(), and QGC::showAppMessage().
| void Vehicle::guidedModeRTL | ( | bool | smartRTL | ) |
Command vehicle to return to launch.
Definition at line 1855 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeRTL(), and QGC::showAppMessage().
| void Vehicle::guidedModeTakeoff | ( | double | altitudeRelative | ) |
Command vehicle to takeoff from current location.
Definition at line 1873 of file Vehicle.cc.
References VehicleFactGroup::altitudeRelative(), guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeTakeoff(), and QGC::showAppMessage().
| bool Vehicle::hasGripper | ( | ) | const |
Definition at line 1904 of file Vehicle.cc.
References FirmwarePlugin::hasGripper().
|
signal |
|
signal |
|
inline |
Definition at line 423 of file Vehicle.h.
References _fixed_wing_airspeed_limits_available.
|
signal |
|
inline |
Definition at line 422 of file Vehicle.h.
References _multirotor_speed_limits_available.
| HealthAndArmingCheckReport * Vehicle::healthAndArmingCheckReport | ( | ) |
Definition at line 3642 of file Vehicle.cc.
|
inline |
Definition at line 561 of file Vehicle.h.
Referenced by PX4AutoPilotPlugin::vehicleComponents().
| QString Vehicle::hobbsMeter | ( | ) |
Definition at line 2785 of file Vehicle.cc.
References FirmwarePlugin::getHobbsMeter().
|
signal |
| QGeoCoordinate Vehicle::homePosition | ( | ) |
Definition at line 1451 of file Vehicle.cc.
Referenced by PX4FirmwarePlugin::guidedModeChangeAltitude(), PX4FirmwarePlugin::guidedModeROI(), and APMFirmwarePlugin::sendGCSMotionReport().
|
signal |
Referenced by _setHomePosition(), and MissionSettingsItem::MissionSettingsItem().
| FactGroup * Vehicle::hygrometerFactGroup | ( | ) |
Definition at line 429 of file Vehicle.cc.
References _hygrometerFactGroup.
|
inline |
Definition at line 443 of file Vehicle.h.
Referenced by VehicleFactGroup::_handleAttitude(), VehicleFactGroup::_handleAttitudeQuaternion(), PlanManager::_handleMissionRequest(), VehicleCameraControl::_mavCommandResult(), QGCCameraManager::_mavlinkMessageReceived(), PlanManager::_readTransactionComplete(), PlanManager::_removeAllWorker(), VehicleCameraControl::_requestAllParameters(), PlanManager::_requestList(), PlanManager::_requestNextMissionItem(), PlanManager::_writeMissionCount(), APMFirmwarePlugin::adjustIncomingMavlinkMessage(), ParameterEditorController::buildDiffFromFile(), MultiVehicleManager::deselectVehicle(), VehicleSigningController::disable(), VehicleSigningController::enable(), OnboardLogController::eraseAll(), MultiVehicleManager::getVehicleById(), APMFirmwarePlugin::guidedModeChangeAltitude(), MavCommandQueue::handleCommandAck(), QGCCameraParamIO::paramRequest(), RemoteIDManager::RemoteIDManager(), requestDataStream(), MavCommandQueue::sendWorker(), MissionManager::writeArduPilotGuidedMissionItem(), ParameterManager::writeParametersToStream(), and VehicleSigningController::~VehicleSigningController().
| bool Vehicle::inFwdFlight | ( | ) | const |
Definition at line 2102 of file Vehicle.cc.
References fixedWing().
|
signal |
|
signal |
Referenced by GimbalController::GimbalController(), and QGCCameraManager::QGCCameraManager().
|
inline |
The vehicle is responsible for making the initial request for the Plan.
Definition at line 733 of file Vehicle.h.
Referenced by GeoFenceController::showPlanFromManagerVehicle(), MissionController::showPlanFromManagerVehicle(), and RallyPointController::showPlanFromManagerVehicle().
|
signal |
Referenced by forceInitialPlanRequestComplete().
| bool Vehicle::isInitialConnectComplete | ( | ) | const |
Definition at line 2871 of file Vehicle.cc.
References _initialConnectStateMachine, and QGCStateMachine::active().
| bool Vehicle::isMavCommandPending | ( | int | targetCompId, |
| MAV_CMD | command | ||
| ) |
isMavCommandPending Query whether the specified MAV_CMD is in queue to be sent or has already been sent but whose reply has not yet been received and whose timeout has not yet expired.
Or, said another way: if you call `sendMavCommand(compId, command, true, ...)`
will an error be shown because you (or another part of QGC) has already sent that command?
| targetCompId | |
| command |
Definition at line 2222 of file Vehicle.cc.
References MavCommandQueue::isPending().
|
inline |
Definition at line 532 of file Vehicle.h.
Referenced by MissionManager::generateResumeMission(), APMFirmwarePlugin::initializeVehicle(), PlanManager::loadFromVehicle(), GeoFenceController::paramCircularFence(), MissionController::sendToVehiclePreCheck(), and PlanManager::writeMissionItems().
|
inline |
|
signal |
| QString Vehicle::landFlightMode | ( | ) | const |
Definition at line 2620 of file Vehicle.cc.
References FirmwarePlugin::landFlightMode().
|
inline |
Definition at line 523 of file Vehicle.h.
Referenced by _setLanding().
|
signal |
Referenced by _setLanding().
| void Vehicle::landingGearDeploy | ( | ) |
Command vichecle to deploy landing gear.
Definition at line 2118 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
| void Vehicle::landingGearRetract | ( | ) |
Command vichecle to retract landing gear.
Definition at line 2128 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
|
signal |
| FactGroup * Vehicle::localPositionFactGroup | ( | ) |
Definition at line 425 of file Vehicle.cc.
References _localPositionFactGroup.
| FactGroup * Vehicle::localPositionSetpointFactGroup | ( | ) |
Definition at line 426 of file Vehicle.cc.
References _localPositionSetpointFactGroup.
|
signal |
|
signal |
|
signal |
|
static |
Definition at line 3435 of file Vehicle.cc.
References MavCommandQueue::failureCodeToString().
Referenced by _requestCameraInfoCommandResultHandler().
|
signal |
Signalled in response to usage of sendMavCommand
| vehicleId | Vehicle which command was sent to |
| targetComponent | Component which command was sent to |
| command | Command which was sent |
| ackResult | MAV_RESULT returned in ack |
| failureCode | More detailed failure code Vehicle::MavCmdResultFailureCode_t |
Referenced by VehicleCameraControl::_initWhenReady(), APMSensorsComponentController::calibrateCompass(), APMSensorsComponentController::calibrateCompassNorth(), SendMavlinkCommandState::connectWaitSignal(), SendMavlinkCommandState::disconnectWaitSignal(), ESP8266ComponentController::ESP8266ComponentController(), PX4FirmwarePlugin::guidedModeTakeoff(), and MAVLinkLogManager::MAVLinkLogManager().
|
signal |
Referenced by MAVLinkLogManager::MAVLinkLogManager().
| MAVLinkLogManager * Vehicle::mavlinkLogManager | ( | ) | const |
Definition at line 3592 of file Vehicle.cc.
|
signal |
|
inline |
|
inline |
|
signal |
Referenced by PlanManager::_connectToMavlink(), PlanManager::_disconnectFromMavlink(), WaitForMavlinkMessageState::connectWaitSignal(), WaitForParamResponseState::connectWaitSignal(), WaitForMavlinkMessageState::disconnectWaitSignal(), WaitForParamResponseState::disconnectWaitSignal(), GimbalController::GimbalController(), MissionManager::MissionManager(), QGCCameraManager::QGCCameraManager(), and NTRIPVehicleGgaSource::setVehicle().
|
signal |
|
inline |
|
signal |
|
signal |
| double Vehicle::maximumEquivalentAirspeed | ( | ) |
Definition at line 1893 of file Vehicle.cc.
References FirmwarePlugin::maximumEquivalentAirspeed().
| double Vehicle::maximumHorizontalSpeedMultirotorMetersSecond | ( | ) |
Definition at line 1887 of file Vehicle.cc.
References FirmwarePlugin::maximumHorizontalSpeedMultirotorMetersSecond().
|
signal |
|
signal |
|
signal |
Referenced by sendMessageOnLinkThreadSafe().
| double Vehicle::minimumEquivalentAirspeed | ( | ) |
Definition at line 1899 of file Vehicle.cc.
References FirmwarePlugin::minimumEquivalentAirspeed().
| double Vehicle::minimumTakeoffAltitudeMeters | ( | ) |
Definition at line 1882 of file Vehicle.cc.
References FirmwarePlugin::minimumTakeoffAltitudeMeters().
| QString Vehicle::missionFlightMode | ( | ) | const |
Definition at line 2600 of file Vehicle.cc.
References FirmwarePlugin::missionFlightMode().
Referenced by MissionController::sendToVehiclePreCheck(), and MAVLinkEventManager::setMetadata().
|
inline |
Definition at line 592 of file Vehicle.h.
References _missionManager.
Referenced by APMFirmwarePlugin::guidedModeGotoLocation(), MissionController::loadFromVehicle(), and MissionController::sendItemsToVehicle().
| int Vehicle::motorCount | ( | ) |
Definition at line 1419 of file Vehicle.cc.
References QGCMAVLink::motorCount(), and Fact::rawValue().
| QString Vehicle::motorDetectionFlightMode | ( | ) | const |
Definition at line 2635 of file Vehicle.cc.
References FirmwarePlugin::motorDetectionFlightMode().
| void Vehicle::motorInterlock | ( | bool | enable | ) |
Command vehicle to Enable/Disable Motor Interlock.
Definition at line 3456 of file Vehicle.cc.
References apmFirmware(), defaultComponentId(), APM::MOTOR_INTERLOCK, and sendMavCommand().
| void Vehicle::motorTest | ( | int | motor, |
| int | percent, | ||
| int | timeoutSecs, | ||
| bool | showError | ||
| ) |
Test motor
| motor | Motor number, 1-based |
| percent | 0-no power, 100-full power |
| timeoutSec | Disabled motor after this amount of time |
Definition at line 2510 of file Vehicle.cc.
References sendMavCommand().
| bool Vehicle::multiRotor | ( | ) | const |
Definition at line 1775 of file Vehicle.cc.
References QGCMAVLink::isMultiRotor(), and vehicleType().
Referenced by SpeedSection::appendSectionItems(), QGCCorePlugin::complexMissionItemNames(), APMFirmwarePlugin::expandedToolbarIndicatorSource(), PX4FirmwarePlugin::flightModes(), TransectStyleComplexItem::hoverAndCaptureAllowed(), APMFirmwarePlugin::isCapable(), PX4FirmwarePlugin::isCapable(), MissionFlightStatusCalculator::recalc(), MissionFlightStatusCalculator::reset(), SpeedSection::scanForSection(), SpeedSection::setAvailable(), SpeedSection::SpeedSection(), startCalibration(), and APMAutoPilotPlugin::vehicleComponents().
|
signal |
|
inline |
|
inline |
|
signal |
Referenced by acknowledgeNewStableFirmwareVersion(), and setNewStableFirmwareVersion().
|
inline |
|
signal |
|
inline |
| void Vehicle::pairRX | ( | int | rxType, |
| int | rxSubType | ||
| ) |
Definition at line 3255 of file Vehicle.cc.
References sendMavCommand().
Referenced by RadioComponentController::crsfBindMode(), and RadioComponentController::spektrumBindMode().
|
inline |
Definition at line 595 of file Vehicle.h.
Referenced by FactPanelController::_allParametersExists(), APMSensorsComponent::accelSetupNeeded(), APMAirframeComponent::APMAirframeComponent(), APMRadioComponent::APMRadioComponent(), APMSensorsComponent::compassSetupNeeded(), VehicleObjectAvoidance::enabled(), APMFirmwarePlugin::fixedWingAirSpeedLimitsAvailable(), PX4FirmwarePlugin::fixedWingAirSpeedLimitsAvailable(), APMFirmwarePlugin::getHobbsMeter(), PX4FirmwarePlugin::getHobbsMeter(), FactPanelController::getMissingParameters(), FactPanelController::getParameterFact(), APMFirmwarePlugin::guidedModeChangeHeading(), APMFirmwarePlugin::hasGripper(), PX4FirmwarePlugin::hasGripper(), Actuators::init(), APMFirmwarePlugin::maximumEquivalentAirspeed(), PX4FirmwarePlugin::maximumEquivalentAirspeed(), APMFirmwarePlugin::maximumHorizontalSpeedMultirotorMetersSecond(), PX4FirmwarePlugin::maximumHorizontalSpeedMultirotorMetersSecond(), APMFirmwarePlugin::minimumEquivalentAirspeed(), PX4FirmwarePlugin::minimumEquivalentAirspeed(), APMFirmwarePlugin::minimumTakeoffAltitudeMeters(), APMFirmwarePlugin::mulirotorSpeedLimitsAvailable(), PX4FirmwarePlugin::mulirotorSpeedLimitsAvailable(), ArduCopterFirmwarePlugin::multiRotorXConfig(), GeoFenceController::paramCircularFence(), FactPanelController::parameterExists(), PX4AutoPilotPlugin::parametersReadyPreChecks(), PX4AutoPilotPlugin::prerequisiteSetup(), PX4RadioComponent::requiresSetup(), VehicleComponent::sectionIds(), SensorsComponent::sectionIds(), SensorsComponent::sectionSetupComplete(), RCToParamDialogController::setTuningFact(), APMRadioComponent::setupComplete(), AirframeComponent::setupComplete(), PX4RadioComponent::setupComplete(), PowerComponent::setupComplete(), SensorsComponent::setupComplete(), VehicleComponent::setupTriggerSignals(), VehicleObjectAvoidance::start(), VehicleObjectAvoidance::stop(), APMAutoPilotPlugin::vehicleComponents(), and PX4AutoPilotPlugin::vehicleComponents().
|
inline |
| QString Vehicle::pauseFlightMode | ( | ) | const |
Definition at line 2605 of file Vehicle.cc.
References FirmwarePlugin::pauseFlightMode().
| void Vehicle::pauseVehicle | ( | ) |
Command vehicle to pause at current location. If vehicle supports guide mode, vehicle will be left in guided mode after pause.
Definition at line 2074 of file Vehicle.cc.
References VehicleSupports::pauseVehicle(), FirmwarePlugin::pauseVehicle(), and QGC::showAppMessage().
Referenced by guidedModeChangeAltitude().
|
inline |
Definition at line 491 of file Vehicle.h.
Referenced by setPrearmError().
|
signal |
Referenced by setPrearmError().
| void Vehicle::prepareDelete | ( | ) |
Vehicle is about to be deleted.
|
inline |
Definition at line 512 of file Vehicle.h.
Referenced by genericFirmware(), MavCommandQueue::handleCommandAck(), MAVLinkLogManager::MAVLinkLogManager(), MissionController::multipleLandPatternsAllowed(), GeoFenceController::paramCircularFence(), MAVLinkLogManager::startLogging(), MAVLinkLogManager::stopLogging(), VehicleSupports::terrainFrame(), ParameterManager::tryHashCheckCacheLoad(), and RadioComponentController::~RadioComponentController().
| FactGroup * Vehicle::radioStatusFactGroup | ( | ) |
Definition at line 433 of file Vehicle.cc.
References _radioStatusFactGroup.
|
inline |
Definition at line 594 of file Vehicle.h.
References _rallyPointManager.
|
signal |
Filtered RC channel values coming from RC_CHANNELS message: clamped 1000:2000
| channelValues | The clamped values for rc channels |
Referenced by APMFlightModesComponentController::APMFlightModesComponentController(), PX4SimpleFlightModesController::PX4SimpleFlightModesController(), and RadioComponentController::start().
|
signal |
Raw RC channel values coming from RC_CHANNELS message
| channelValues | The current raw values for rc channels |
|
signal |
|
signal |
|
signal |
Referenced by setRebootRequired().
| void Vehicle::rebootVehicle | ( | ) |
Reboot vehicle.
Definition at line 2346 of file Vehicle.cc.
References VehicleTypes::MavCmdAckHandlerInfo_s::resultHandler, VehicleTypes::MavCmdAckHandlerInfo_s::resultHandlerData, and sendMavCommandWithHandler().
|
inline |
Definition at line 602 of file Vehicle.h.
References _remoteIDManager.
| void Vehicle::requestDataStream | ( | MAV_DATA_STREAM | stream, |
| uint16_t | rate, | ||
| bool | sendMultiple = true |
||
| ) |
Requests the specified data stream from the vehicle
| stream | Stream which is being requested |
| rate | Rate at which to send stream in Hz |
| sendMultiple | Send multiple time to guarantee Vehicle reception |
Definition at line 1546 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), id(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageMultiple(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
Referenced by APMFirmwarePlugin::initializeStreamRates(), and ArduSubFirmwarePlugin::initializeStreamRates().
| void Vehicle::requestMessage | ( | RequestMessageResultHandler | resultHandler, |
| void * | resultHandlerData, | ||
| int | compId, | ||
| int | messageId, | ||
| float | param1 = 0.0f, |
||
| float | param2 = 0.0f, |
||
| float | param3 = 0.0f, |
||
| float | param4 = 0.0f, |
||
| float | param5 = 0.0f |
||
| ) |
Requests the vehicle to send the specified message. Will retry a number of times.
| resultHandler | Callback for result |
| resultHandlerData | Opaque data passed back to resultHandler |
Definition at line 2282 of file Vehicle.cc.
References compId(), and RequestMessageCoordinator::requestMessage().
Referenced by _requestCameraInfoHelper(), RequestMessageState::onWaitEntered(), and QGCCameraManager::requestCameraFovForComp().
|
static |
Definition at line 3430 of file Vehicle.cc.
References RequestMessageCoordinator::failureCodeToString().
Referenced by _requestCameraInfoMessageResultHandler().
| void Vehicle::requestOperatorControl | ( | bool | allowOverride, |
| int | requestTimeoutSecs = 0 |
||
| ) |
Definition at line 3280 of file Vehicle.cc.
References SettingsManager::flyViewSettings(), SettingsManager::instance(), and sendMavCommandWithHandler().
Referenced by startTimerRevertAllowTakeover().
|
signal |
|
signal |
| void Vehicle::resetCounters | ( | ) |
< Non-empty when vehicle firmware is older than this stable version
< Vehicle is flying, driving or diving < Vehicle is underway and is not a rover/boat or sub < Vehicle is in landing pattern (DO_LAND_START) < Vehicle is in Guided mode and can respond to guided commands < Flight mode vehicle is in while performing goto Resets link status counters
Definition at line 521 of file Vehicle.cc.
|
signal |
Referenced by guidedModeROI().
|
inline |
|
signal |
Referenced by guidedModeROI().
| bool Vehicle::rover | ( | ) | const |
Definition at line 1760 of file Vehicle.cc.
References QGCMAVLink::isRoverBoat(), and vehicleType().
Referenced by startCalibration().
| FactGroup * Vehicle::rpmFactGroup | ( | ) |
Definition at line 432 of file Vehicle.cc.
References _rpmFactGroup.
| QString Vehicle::rtlFlightMode | ( | ) | const |
Definition at line 2610 of file Vehicle.cc.
References FirmwarePlugin::rtlFlightMode().
| void Vehicle::sendCommand | ( | int | compId, |
| int | command, | ||
| bool | showError, | ||
| double | param1 = 0.0, |
||
| double | param2 = 0.0, |
||
| double | param3 = 0.0, |
||
| double | param4 = 0.0, |
||
| double | param5 = 0.0, |
||
| double | param6 = 0.0, |
||
| double | param7 = 0.0 |
||
| ) |
Same as sendMavCommand but available from Qml.
Definition at line 2183 of file Vehicle.cc.
References compId(), and sendMavCommand().
|
signal |
|
slot |
Definition at line 3204 of file Vehicle.cc.
References sendMavCommand().
| void Vehicle::sendJoystickAuxRcOverrideThreadSafe | ( | const std::array< uint16_t, kAuxRcOverrideChannelCount > & | channelValues, |
| const std::array< bool, kAuxRcOverrideChannelCount > & | channelEnabled, | ||
| bool | useRcOverride | ||
| ) |
Definition at line 3108 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
| void Vehicle::sendJoystickDataThreadSafe | ( | float | roll, |
| float | pitch, | ||
| float | yaw, | ||
| float | thrust, | ||
| quint16 | buttons, | ||
| quint16 | buttons2, | ||
| float | pitchExtension, | ||
| float | rollExtension, | ||
| float | aux1, | ||
| float | aux2, | ||
| float | aux3, | ||
| float | aux4, | ||
| float | aux5, | ||
| float | aux6 | ||
| ) |
Definition at line 3048 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleFactGroup::pitch(), VehicleLinkManager::primaryLink(), VehicleFactGroup::roll(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
Referenced by virtualTabletJoystickValue().
| void Vehicle::sendMavCommand | ( | int | compId, |
| MAV_CMD | command, | ||
| bool | showError, | ||
| float | param1 = 0.0f, |
||
| float | param2 = 0.0f, |
||
| float | param3 = 0.0f, |
||
| float | param4 = 0.0f, |
||
| float | param5 = 0.0f, |
||
| float | param6 = 0.0f, |
||
| float | param7 = 0.0f |
||
| ) |
Sends the specified MAV_CMD to the vehicle. If no Ack is received command will be retried. If a sendMavCommand is already in progress the command will be queued and sent when the previous command completes.
| compId | Component to send to. |
| command | MAV_CMD to send |
| showError | true: Display error to user if command failed, false: no error shown Signals: mavCommandResult on success or failure |
Definition at line 2173 of file Vehicle.cc.
References compId(), and MavCommandQueue::sendCommand().
Referenced by PX4FirmwarePlugin::_changeAltAfterPause(), VehicleCameraControl::_requestCameraSettings(), VehicleCameraControl::_requestCaptureStatus(), VehicleCameraControl::_requestStorageInfo(), VehicleCameraControl::_requestStreamInfo(), VehicleCameraControl::_requestStreamStatus(), VehicleCameraControl::_requestTrackingStatus(), FirmwarePlugin::_sendROICommand(), abortLanding(), GimbalController::acquireGimbalControl(), APMSensorsComponentController::calibrateCompass(), APMSensorsComponentController::calibrateCompassNorth(), APMSensorsComponentController::cancelCalibration(), emergencyStop(), flashBootloader(), forceArm(), VehicleCameraControl::formatCard(), APMFirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), PX4FirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), PX4FirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), APMFirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), APMFirmwarePlugin::guidedModeChangeHeading(), PX4FirmwarePlugin::guidedModeChangeHeading(), PX4FirmwarePlugin::guidedModeGotoLocation(), guidedModeOrbit(), PX4FirmwarePlugin::guidedModeTakeoff(), APMFirmwarePlugin::initializeStreamRates(), landingGearDeploy(), landingGearRetract(), motorInterlock(), motorTest(), SendMavlinkCommandState::onWaitEntered(), pairRX(), PX4FirmwarePlugin::pauseVehicle(), GimbalController::releaseGimbalControl(), ParameterManager::resetAllParametersToDefaults(), SensorsComponentController::resetFactoryParameters(), VehicleCameraControl::resetSettings(), VehicleCameraControl::resumeStream(), sendCommand(), sendGripperAction(), GimbalController::sendPitchAbsoluteYaw(), GimbalController::sendPitchBodyYaw(), GimbalController::sendPitchYawFlags(), MavlinkAction::sendTo(), setArmed(), VehicleCameraControl::setCameraMode(), VehicleCameraControl::setCurrentStream(), setEventsMetadata(), setFlightMode(), VehicleCameraControl::setFocusLevel(), setVtolInFwdFlight(), VehicleCameraControl::setZoomLevel(), VehicleCameraControl::startFocus(), startMavlinkLog(), APMFirmwarePlugin::startMission(), VehicleCameraControl::startTrackingPoint(), VehicleCameraControl::startTrackingRect(), VehicleCameraControl::startVideoRecording(), VehicleCameraControl::startZoom(), VehicleCameraControl::stepFocus(), VehicleCameraControl::stepZoom(), stopCalibration(), VehicleCameraControl::stopFocus(), stopGuidedModeROI(), stopMavlinkLog(), VehicleCameraControl::stopStream(), VehicleCameraControl::stopTakePhoto(), VehicleCameraControl::stopTracking(), VehicleCameraControl::stopVideoRecording(), VehicleCameraControl::stopZoom(), VehicleCameraControl::takePhoto(), and triggerSimpleCamera().
| void Vehicle::sendMavCommandDelayed | ( | int | compId, |
| MAV_CMD | command, | ||
| bool | showError, | ||
| int | milliseconds, | ||
| float | param1 = 0.0f, |
||
| float | param2 = 0.0f, |
||
| float | param3 = 0.0f, |
||
| float | param4 = 0.0f, |
||
| float | param5 = 0.0f, |
||
| float | param6 = 0.0f, |
||
| float | param7 = 0.0f |
||
| ) |
Definition at line 2178 of file Vehicle.cc.
References compId(), and MavCommandQueue::sendCommandDelayed().
| void Vehicle::sendMavCommandInt | ( | int | compId, |
| MAV_CMD | command, | ||
| MAV_FRAME | frame, | ||
| bool | showError, | ||
| float | param1, | ||
| float | param2, | ||
| float | param3, | ||
| float | param4, | ||
| double | param5, | ||
| double | param6, | ||
| float | param7 | ||
| ) |
Definition at line 2202 of file Vehicle.cc.
References compId(), and MavCommandQueue::sendCommandInt().
Referenced by FirmwarePlugin::_sendROICommand(), PX4FirmwarePlugin::guidedModeGotoLocation(), guidedModeOrbit(), and stopGuidedModeROI().
| void Vehicle::sendMavCommandIntWithHandler | ( | const MavCmdAckHandlerInfo_t * | ackHandlerInfo, |
| int | compId, | ||
| MAV_CMD | command, | ||
| MAV_FRAME | frame, | ||
| float | param1 = 0.0f, |
||
| float | param2 = 0.0f, |
||
| float | param3 = 0.0f, |
||
| float | param4 = 0.0f, |
||
| double | param5 = 0.0f, |
||
| double | param6 = 0.0f, |
||
| float | param7 = 0.0f |
||
| ) |
Sends the command and calls the callback with the result
| resultHandler | Callback for result, nullptr for no callback |
| resultHandleData | Opaque data passed through callback |
| compId |
|
Definition at line 2207 of file Vehicle.cc.
References compId(), and MavCommandQueue::sendCommandIntWithHandler().
Referenced by APMFirmwarePlugin::guidedModeGotoLocation().
| void Vehicle::sendMavCommandIntWithLambdaFallback | ( | std::function< void()> | lambda, |
| int | compId, | ||
| MAV_CMD | command, | ||
| MAV_FRAME | frame, | ||
| bool | showError, | ||
| float | param1 = 0.0f, |
||
| float | param2 = 0.0f, |
||
| float | param3 = 0.0f, |
||
| float | param4 = 0.0f, |
||
| double | param5 = 0.0, |
||
| double | param6 = 0.0, |
||
| float | param7 = 0.0f |
||
| ) |
Sends the command as a COMMAND_INT and calls the fallback lambda function in case the command is MAV_RESULT_UNSUPPORTED
Definition at line 2217 of file Vehicle.cc.
References compId(), and MavCommandQueue::sendCommandIntWithLambdaFallback().
Referenced by setEstimatorOrigin().
| void Vehicle::sendMavCommandWithHandler | ( | const MavCmdAckHandlerInfo_t * | ackHandlerInfo, |
| int | compId, | ||
| MAV_CMD | command, | ||
| float | param1 = 0.0f, |
||
| float | param2 = 0.0f, |
||
| float | param3 = 0.0f, |
||
| float | param4 = 0.0f, |
||
| float | param5 = 0.0f, |
||
| float | param6 = 0.0f, |
||
| float | param7 = 0.0f |
||
| ) |
Sends the command and calls the callback with the result.
| compId |
|
Definition at line 2197 of file Vehicle.cc.
References compId(), and MavCommandQueue::sendCommandWithHandler().
Referenced by _requestCameraInfoHelper(), PX4FirmwarePlugin::guidedModeChangeAltitude(), rebootVehicle(), requestOperatorControl(), and Autotune::sendMavlinkRequest().
| void Vehicle::sendMavCommandWithLambdaFallback | ( | std::function< void()> | lambda, |
| int | compId, | ||
| MAV_CMD | command, | ||
| bool | showError, | ||
| float | param1 = 0.0f, |
||
| float | param2 = 0.0f, |
||
| float | param3 = 0.0f, |
||
| float | param4 = 0.0f, |
||
| float | param5 = 0.0f, |
||
| float | param6 = 0.0f, |
||
| float | param7 = 0.0f |
||
| ) |
Sends the command and calls the fallback lambda function in case the command is MAV_RESULT_UNSUPPORTED
Definition at line 2212 of file Vehicle.cc.
References compId(), and MavCommandQueue::sendCommandWithLambdaFallback().
Referenced by setCurrentMissionSequence().
| void Vehicle::sendMessageMultiple | ( | mavlink_message_t | message | ) |
Sends the specified messages multiple times to the vehicle in order to attempt to guarantee that it makes it to the vehicle.
Definition at line 1604 of file Vehicle.cc.
Referenced by requestDataStream().
| bool Vehicle::sendMessageOnLinkThreadSafe | ( | LinkInterface * | link, |
| mavlink_message_t | message | ||
| ) |
Sends a message to the specified link
Definition at line 1401 of file Vehicle.cc.
References FirmwarePlugin::adjustOutgoingMavlinkMessageThreadSafe(), LinkInterface::isConnected(), messagesSentChanged(), and LinkInterface::sendMessageThreadSafe().
Referenced by PlanManager::_handleMissionRequest(), PlanManager::_readTransactionComplete(), PlanManager::_removeAllWorker(), VehicleCameraControl::_requestAllParameters(), PlanManager::_requestList(), PlanManager::_requestNextMissionItem(), PlanManager::_writeMissionCount(), clearAllParamMapRC(), OnboardLogController::eraseAll(), APMFirmwarePlugin::guidedModeChangeAltitude(), APMSensorsComponentController::nextClicked(), QGCCameraParamIO::paramRequest(), requestDataStream(), APMFirmwarePlugin::sendGCSMotionReport(), FirmwarePlugin::sendGCSMotionReport(), sendJoystickAuxRcOverrideThreadSafe(), sendJoystickDataThreadSafe(), sendParamMapRC(), setCurrentMissionSequence(), setEstimatorOrigin_SET_GPS_GLOBAL_ORIGIN(), setFlightMode(), startCalibration(), and MissionManager::writeArduPilotGuidedMissionItem().
| void Vehicle::sendParamMapRC | ( | const QString & | paramName, |
| double | scale, | ||
| double | centerValue, | ||
| int | tuningID, | ||
| double | minValue, | ||
| double | maxValue | ||
| ) |
Sends PARAM_MAP_RC message to vehicle.
Definition at line 2988 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
| void Vehicle::sendPlan | ( | QString | planFile | ) |
Definition at line 2780 of file Vehicle.cc.
References PlanMasterController::sendPlanToVehicle().
|
signal |
|
signal |
|
signal |
Referenced by SensorsComponentController::SensorsComponentController().
|
signal |
|
signal |
|
signal |
New SERVO output values coming from SERVO_OUTPUT_RAW message
| servoValues | The current servo output values in microseconds (0-15 -> SERVO1..SERVO16). Invalid values are -1. |
Referenced by ServoOutputMonitorController::ServoOutputMonitorController().
| void Vehicle::setActuatorsMetadata | ( | uint8_t | compid, |
| const QString & | metadataJsonFileName, | ||
| const QJsonDocument & | metadataJson | ||
| ) |
Definition at line 1276 of file Vehicle.cc.
References _actuators, and Actuators::load().
Referenced by CompInfoActuators::setJson().
| void Vehicle::setArmed | ( | bool | armed, |
| bool | showError | ||
| ) |
Definition at line 1456 of file Vehicle.cc.
References armed(), and sendMavCommand().
Referenced by FirmwarePlugin::_armVehicleAndValidate(), and setArmedShowError().
|
inline |
Definition at line 469 of file Vehicle.h.
References armed(), and setArmed().
|
inline |
Definition at line 758 of file Vehicle.h.
References checkListStateChanged().
| void Vehicle::setCurrentMissionSequence | ( | int | seq | ) |
Alter the current mission item on the vehicle.
Definition at line 2138 of file Vehicle.cc.
References defaultComponentId(), MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), FirmwarePlugin::sendHomePositionToVehicle(), sendMavCommandWithLambdaFallback(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
| void Vehicle::setEstimatorOrigin | ( | const QGeoCoordinate & | centerCoord | ) |
Definition at line 3214 of file Vehicle.cc.
References defaultComponentId(), sendMavCommandIntWithLambdaFallback(), and setEstimatorOrigin_SET_GPS_GLOBAL_ORIGIN().
| void Vehicle::setEstimatorOrigin_SET_GPS_GLOBAL_ORIGIN | ( | const QGeoCoordinate & | centerCoord | ) |
Fallback for setEstimatorOrigin which sends the deprecated SET_GPS_GLOBAL_ORIGIN message.
Definition at line 3232 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
Referenced by setEstimatorOrigin().
| void Vehicle::setEventsMetadata | ( | uint8_t | compid, |
| const QString & | metadataJsonFileName | ||
| ) |
Definition at line 3647 of file Vehicle.cc.
References sendMavCommand().
Referenced by CompInfoEvents::setJson().
| void Vehicle::setFirmwareCustomVersion | ( | int | majorVersion, |
| int | minorVersion, | ||
| int | patchVersion | ||
| ) |
Definition at line 2311 of file Vehicle.cc.
References firmwareCustomVersionChanged().
| void Vehicle::setFirmwarePluginInstanceData | ( | FirmwarePluginInstanceData * | firmwarePluginInstanceData | ) |
Sets the firmware plugin instance data associated with this Vehicle. This object will be parented to the Vehicle and destroyed when the vehicle goes away.
Definition at line 2594 of file Vehicle.cc.
References firmwarePluginInstanceData().
Referenced by APMFirmwarePlugin::initializeStreamRates(), and PX4FirmwarePlugin::initializeVehicle().
| void Vehicle::setFirmwareVersion | ( | int | majorVersion, |
| int | minorVersion, | ||
| int | patchVersion, | ||
| FIRMWARE_VERSION_TYPE | versionType = FIRMWARE_VERSION_TYPE_OFFICIAL |
||
| ) |
Definition at line 2302 of file Vehicle.cc.
References firmwareVersionChanged().
Referenced by APMFirmwarePlugin::initializeVehicle().
| void Vehicle::setFlightMode | ( | const QString & | flightMode | ) |
Definition at line 1495 of file Vehicle.cc.
References defaultComponentId(), flightMode(), MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), FirmwarePlugin::MAV_CMD_DO_SET_MODE_is_supported(), VehicleLinkManager::primaryLink(), sendMavCommand(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
Referenced by FirmwarePlugin::_setFlightModeAndValidate().
| void Vehicle::setGuidedMode | ( | bool | guidedMode | ) |
Definition at line 2097 of file Vehicle.cc.
References guidedMode(), and FirmwarePlugin::setGuidedMode().
|
inline |
|
inline |
| void Vehicle::setMessageRate | ( | uint8_t | compId, |
| uint16_t | msgId, | ||
| int32_t | rate | ||
| ) |
Definition at line 3420 of file Vehicle.cc.
References compId(), and MessageIntervalManager::setMessageRate().
Referenced by MAVLinkInspectorController::setMessageInterval().
| void Vehicle::setNewStableFirmwareVersion | ( | const QString & | version | ) |
Definition at line 2365 of file Vehicle.cc.
References newStableFirmwareVersionChanged().
Referenced by FirmwarePlugin::_versionFileDownloadFinished().
| void Vehicle::setOfflineEditingDefaultComponentId | ( | int | defaultComponentId | ) |
Sets the default component id for an offline editing vehicle.
Definition at line 2515 of file Vehicle.cc.
References defaultComponentId().
| void Vehicle::setPIDTuningTelemetryMode | ( | PIDTuningTelemetryMode | mode | ) |
Definition at line 2820 of file Vehicle.cc.
References VehicleFactGroup::_altitudeTuningFact, _altitudeTuningOffset, VehicleFactGroup::_altitudeTuningSetpointFact, _localPositionFactGroup, _localPositionSetpointFactGroup, _setpointFactGroup, ModeAltitudeAndAirspeed, ModeDisabled, ModeRateAndAttitude, ModeVelocityAndPosition, Fact::rawValue(), FactGroup::setLiveUpdates(), and Fact::setRawValue().
| FactGroup * Vehicle::setpointFactGroup | ( | ) |
Definition at line 423 of file Vehicle.cc.
References _setpointFactGroup.
Referenced by VehicleObjectAvoidance::update().
| void Vehicle::setPrearmError | ( | const QString & | prearmError | ) |
Definition at line 2288 of file Vehicle.cc.
References prearmError(), and prearmErrorChanged().
| void Vehicle::setRebootRequired | ( | ) |
Latches rebootRequired until the vehicle reboots.
Definition at line 2355 of file Vehicle.cc.
References rebootRequiredChanged().
| void Vehicle::setSoloFirmware | ( | bool | soloFirmware | ) |
Definition at line 2502 of file Vehicle.cc.
References soloFirmware(), and soloFirmwareChanged().
|
slot |
Definition at line 2524 of file Vehicle.cc.
References sendMavCommand(), and vtolInFwdFlight().
|
static |
Definition at line 2232 of file Vehicle.cc.
References MavCommandQueue::showCommandAckError().
|
inline |
|
inline |
| QString Vehicle::smartRTLFlightMode | ( | ) | const |
Definition at line 2615 of file Vehicle.cc.
References FirmwarePlugin::smartRTLFlightMode().
|
inline |
Definition at line 697 of file Vehicle.h.
Referenced by setSoloFirmware().
|
signal |
Referenced by setSoloFirmware().
| bool Vehicle::spacecraft | ( | ) | const |
Definition at line 1770 of file Vehicle.cc.
References QGCMAVLink::isSpacecraft(), and vehicleType().
| QString Vehicle::stabilizedFlightMode | ( | ) | const |
Definition at line 2640 of file Vehicle.cc.
References FirmwarePlugin::stabilizedFlightMode().
| void Vehicle::startCalibration | ( | QGCMAVLink::CalibrationType | calType | ) |
Definition at line 2408 of file Vehicle.cc.
References QGCMAVLink::CalibrationAccel, QGCMAVLink::CalibrationAPMAccelSimple, QGCMAVLink::CalibrationAPMCompassMot, QGCMAVLink::CalibrationAPMPreFlight, QGCMAVLink::CalibrationAPMPressureAirspeed, QGCMAVLink::CalibrationCopyTrims, QGCMAVLink::CalibrationEsc, QGCMAVLink::CalibrationGyro, QGCMAVLink::CalibrationLevel, QGCMAVLink::CalibrationMag, QGCMAVLink::CalibrationNone, QGCMAVLink::CalibrationPX4Airspeed, QGCMAVLink::CalibrationPX4Pressure, QGCMAVLink::CalibrationRadio, defaultComponentId(), MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), multiRotor(), VehicleLinkManager::primaryLink(), rover(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
Referenced by APMSensorsComponentController::calibrateAccel(), SensorsComponentController::calibrateAccel(), SensorsComponentController::calibrateAirspeed(), SensorsComponentController::calibrateCompass(), PowerComponentController::calibrateEsc(), APMSensorsComponentController::calibrateGyro(), SensorsComponentController::calibrateGyro(), SensorsComponentController::calibrateLevel(), APMSensorsComponentController::calibrateMotorInterference(), APMSensorsComponentController::calibratePressure(), RemoteControlCalibrationController::copyTrims(), and APMSensorsComponentController::levelHorizon().
| void Vehicle::startMavlinkLog | ( | ) |
Definition at line 2535 of file Vehicle.cc.
References sendMavCommand().
Referenced by MAVLinkLogManager::startLogging().
| void Vehicle::startMission | ( | ) |
Definition at line 1915 of file Vehicle.cc.
References FirmwarePlugin::startMission().
| void Vehicle::startTakeoff | ( | ) |
Definition at line 1909 of file Vehicle.cc.
References FirmwarePlugin::startTakeoff().
| void Vehicle::startTimerRevertAllowTakeover | ( | ) |
Definition at line 3264 of file Vehicle.cc.
References MAVLinkProtocol::instance(), and requestOperatorControl().
| const QVariantList & Vehicle::staticCameraList | ( | ) | const |
Definition at line 3610 of file Vehicle.cc.
References QGCCameraManager::cameraList().
| void Vehicle::stopCalibration | ( | bool | showError | ) |
Definition at line 2488 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
Referenced by APMSensorsComponentController::cancelCalibration(), SensorsComponentController::cancelCalibration(), and RadioComponentController::~RadioComponentController().
| void Vehicle::stopGuidedModeROI | ( | ) |
Definition at line 2030 of file Vehicle.cc.
References capabilityBits(), defaultComponentId(), VehicleSupports::roiMode(), sendMavCommand(), sendMavCommandInt(), and QGC::showAppMessage().
| void Vehicle::stopMavlinkLog | ( | ) |
Definition at line 2540 of file Vehicle.cc.
References sendMavCommand().
Referenced by MAVLinkLogManager::stopLogging().
| void Vehicle::stopTrackingFirmwareVehicleTypeChanges | ( | void | ) |
Definition at line 222 of file Vehicle.cc.
References _offlineFirmwareTypeSettingChanged(), _offlineVehicleTypeSettingChanged(), SettingsManager::instance(), and Fact::rawValueChanged().
| bool Vehicle::sub | ( | ) | const |
Definition at line 1765 of file Vehicle.cc.
References QGCMAVLink::isSub(), and vehicleType().
Referenced by APMFirmwarePlugin::isCapable(), Vehicle(), and APMAutoPilotPlugin::vehicleComponents().
|
inline |
Definition at line 420 of file Vehicle.h.
Referenced by MissionController::setCurrentPlanViewSeqNum(), and APMAutoPilotPlugin::vehicleComponents().
| QObject * Vehicle::sysStatusSensorInfo | ( | ) |
Definition at line 438 of file Vehicle.cc.
| QString Vehicle::takeControlFlightMode | ( | ) | const |
Definition at line 2625 of file Vehicle.cc.
References FirmwarePlugin::takeControlFlightMode().
| FactGroup * Vehicle::temperatureFactGroup | ( | ) |
Definition at line 421 of file Vehicle.cc.
References _temperatureFactGroup.
| FactGroup * Vehicle::terrainFactGroup | ( | ) |
Definition at line 428 of file Vehicle.cc.
References _terrainFactGroup.
|
signal |
| const QVariantList & Vehicle::toolIndicators | ( | ) |
Definition at line 2661 of file Vehicle.cc.
References FirmwarePlugin::toolIndicators().
|
signal |
| void Vehicle::trackFirmwareVehicleTypeChanges | ( | void | ) |
Definition at line 213 of file Vehicle.cc.
References _offlineFirmwareTypeSettingChanged(), _offlineVehicleTypeSettingChanged(), SettingsManager::instance(), and Fact::rawValueChanged().
Referenced by Vehicle().
| void Vehicle::triggerSimpleCamera | ( | void | ) |
Trigger camera using MAV_CMD_DO_DIGICAM_CONTROL command.
Definition at line 3195 of file Vehicle.cc.
References sendMavCommand().
Referenced by SimulatedCameraControl::takePhoto().
|
inline |
Definition at line 519 of file Vehicle.h.
Referenced by _setUnderway(), and APMFirmwarePlugin::startMission().
|
signal |
Referenced by _setUnderway().
| void Vehicle::updateFlightDistance | ( | double | distance | ) |
Definition at line 2983 of file Vehicle.cc.
References VehicleFactGroup::_flightDistanceFact, Fact::rawValue(), and Fact::setRawValue().
|
inline |
Definition at line 447 of file Vehicle.h.
References QGCMAVLink::vehicleClass().
Referenced by MissionManager::generateResumeMission(), and vehicleClassInternalName().
| QString Vehicle::vehicleClassInternalName | ( | ) | const |
Definition at line 1790 of file Vehicle.cc.
References vehicleClass(), and QGCMAVLink::vehicleClassToInternalString().
|
inline |
Definition at line 569 of file Vehicle.h.
References _vehicleFactGroup.
| QString Vehicle::vehicleImageOpaque | ( | ) | const |
Definition at line 2645 of file Vehicle.cc.
References FirmwarePlugin::vehicleImageOpaque().
| QString Vehicle::vehicleImageOutline | ( | ) | const |
Definition at line 2653 of file Vehicle.cc.
References FirmwarePlugin::vehicleImageOutline().
|
inline |
Definition at line 597 of file Vehicle.h.
References _vehicleLinkManager.
Referenced by PlanManager::_handleMissionRequest(), PlanManager::_readTransactionComplete(), PlanManager::_removeAllWorker(), VehicleCameraControl::_requestAllParameters(), PlanManager::_requestList(), PlanManager::_requestNextMissionItem(), PlanManager::_writeMissionCount(), APMSensorsComponentController::calibrateAccel(), APMSensorsComponentController::calibrateGyro(), APMSensorsComponentController::calibrateMotorInterference(), APMSensorsComponentController::calibratePressure(), clearAllParamMapRC(), OnboardLogController::eraseAll(), APMFirmwarePlugin::guidedModeChangeAltitude(), APMSensorsComponentController::levelHorizon(), PlanMasterController::loadFromVehicle(), APMSensorsComponentController::nextClicked(), RequestMessageState::onWaitEntered(), QGCCameraParamIO::paramRequest(), requestDataStream(), APMFirmwarePlugin::sendGCSMotionReport(), FirmwarePlugin::sendGCSMotionReport(), sendJoystickAuxRcOverrideThreadSafe(), sendJoystickDataThreadSafe(), sendParamMapRC(), PlanMasterController::sendToVehicle(), MavCommandQueue::sendWorker(), setCurrentMissionSequence(), setEstimatorOrigin_SET_GPS_GLOBAL_ORIGIN(), setFlightMode(), VideoManager::setfullScreen(), startCalibration(), ParameterManager::tryHashCheckCacheLoad(), APMSensorsComponentController::usingUDPLink(), SensorsComponentController::usingUDPLink(), RTCMMAVLink::vehicleLinkOutputs(), and MissionManager::writeArduPilotGuidedMissionItem().
|
inline |
Definition at line 446 of file Vehicle.h.
Referenced by APMFirmwarePlugin::_internalParameterMetaDataFile(), airship(), APMAirframeComponent::APMAirframeComponent(), APMFailsafesComponent::description(), APMFlightSafetyComponent::description(), APMSafetyComponent::description(), fixedWing(), multiRotor(), rover(), MissionController::save(), MissionController::sendToVehiclePreCheck(), APMAdvancedTuningCopterComponent::setupSource(), APMFailsafesComponent::setupSource(), APMFlightSafetyComponent::setupSource(), APMMotorComponent::setupSource(), APMSafetyComponent::setupSource(), APMTuningComponent::setupSource(), PX4FlightBehavior::setupSource(), PX4TuningComponent::setupSource(), spacecraft(), FirmwarePlugin::stableFirmwareSettingsKey(), sub(), APMFailsafesComponent::summaryQmlSource(), APMFlightSafetyComponent::summaryQmlSource(), APMSafetyComponent::summaryQmlSource(), PX4FirmwarePlugin::supportsNegativeThrust(), Vehicle(), APMAutoPilotPlugin::vehicleComponents(), vtol(), and ParameterManager::writeParametersToStream().
|
signal |
Referenced by _offlineVehicleTypeSettingChanged(), and VehicleSupports::VehicleSupports().
| QString Vehicle::vehicleTypeString | ( | ) | const |
Definition at line 1785 of file Vehicle.cc.
References QGCMAVLink::mavTypeToString().
|
signal |
| QString Vehicle::vehicleUIDStr | ( | ) |
Definition at line 1019 of file Vehicle.cc.
| int Vehicle::versionCompare | ( | const QString & | compare | ) | const |
Used to check if running current version is equal or higher than the one being compared.
Definition at line 2810 of file Vehicle.cc.
References FirmwarePlugin::versionCompare().
Referenced by LandingComplexItem::_createDoLandStartItem(), FirmwarePlugin::_versionFileDownloadFinished(), and APMAutoPilotPlugin::vehicleComponents().
| int Vehicle::versionCompare | ( | int | major, |
| int | minor, | ||
| int | patch | ||
| ) | const |
Definition at line 2815 of file Vehicle.cc.
References FirmwarePlugin::versionCompare().
| FactGroup * Vehicle::vibrationFactGroup | ( | ) |
Definition at line 420 of file Vehicle.cc.
References _vibrationFactGroup.
| void Vehicle::virtualTabletJoystickValue | ( | double | roll, |
| double | pitch, | ||
| double | yaw, | ||
| double | thrust | ||
| ) |
| bool Vehicle::vtol | ( | ) | const |
Definition at line 1780 of file Vehicle.cc.
References QGCMAVLink::isVTOL(), and vehicleType().
Referenced by QGCCorePlugin::complexMissionItemNames(), TransectStyleComplexItem::hoverAndCaptureAllowed(), MissionController::insertLandItem(), MissionController::insertTakeoffItem(), APMFirmwarePlugin::isCapable(), PX4FirmwarePlugin::isCapable(), APMFirmwarePlugin::minimumTakeoffAltitudeMeters(), MissionController::multipleLandPatternsAllowed(), MissionFlightStatusCalculator::recalc(), MissionFlightStatusCalculator::reset(), SensorsComponent::SensorsComponent(), SensorsComponent::setupComplete(), SensorsComponent::setupCompleteChangedTriggerList(), SimpleMissionItem::showLoiterRadius(), APMFirmwarePlugin::startMission(), and SensorsComponent::summaryQmlSource().
|
inline |
Definition at line 526 of file Vehicle.h.
Referenced by setVtolInFwdFlight().
|
signal |
| FactGroup * Vehicle::windFactGroup | ( | ) |
Definition at line 419 of file Vehicle.cc.
References _windFactGroup.
| bool Vehicle::xConfigMotors | ( | ) |
Definition at line 1441 of file Vehicle.cc.
References FirmwarePlugin::multiRotorXConfig().
|
friend |
|
friend |
|
friend |
|
friend |
| Actuators* Vehicle::_actuators = nullptr |
Definition at line 1154 of file Vehicle.h.
Referenced by actuators(), and setActuatorsMetadata().
| float Vehicle::_altitudeTuningOffset = qQNaN() |
Definition at line 1093 of file Vehicle.h.
Referenced by setPIDTuningTelemetryMode().
| BatteryFactGroupListModel* Vehicle::_batteryFactGroupListModel = nullptr |
Definition at line 1143 of file Vehicle.h.
Referenced by batteries().
| VehicleClockFactGroup* Vehicle::_clockFactGroup = nullptr |
Definition at line 1126 of file Vehicle.h.
Referenced by clockFactGroup().
| const QString Vehicle::_clockFactGroupName = QStringLiteral("clock") |
| VehicleDistanceSensorFactGroup* Vehicle::_distanceSensorFactGroup = nullptr |
Definition at line 1128 of file Vehicle.h.
Referenced by distanceSensorFactGroup().
| const QString Vehicle::_distanceSensorFactGroupName = QStringLiteral("distanceSensor") |
| VehicleEFIFactGroup* Vehicle::_efiFactGroup = nullptr |
Definition at line 1134 of file Vehicle.h.
Referenced by efiFactGroup().
| const QString Vehicle::_efiFactGroupName = QStringLiteral("efi") |
| EscStatusFactGroupListModel* Vehicle::_escStatusFactGroupListModel = nullptr |
| VehicleEstimatorStatusFactGroup* Vehicle::_estimatorStatusFactGroup = nullptr |
Definition at line 1131 of file Vehicle.h.
Referenced by estimatorStatusFactGroup().
| const QString Vehicle::_estimatorStatusFactGroupName = QStringLiteral("estimatorStatus") |
| bool Vehicle::_fixed_wing_airspeed_limits_available = false |
Definition at line 1097 of file Vehicle.h.
Referenced by haveFWSpeedLimits().
| FTPManager* Vehicle::_ftpManager = nullptr |
Definition at line 1152 of file Vehicle.h.
Referenced by ftpManager().
| VehicleGeneratorFactGroup* Vehicle::_generatorFactGroup = nullptr |
Definition at line 1133 of file Vehicle.h.
Referenced by generatorFactGroup().
| const QString Vehicle::_generatorFactGroupName = QStringLiteral("generator") |
| GeoFenceManager* Vehicle::_geoFenceManager = nullptr |
Definition at line 1149 of file Vehicle.h.
Referenced by geoFenceManager().
| VehicleGPSFactGroup* Vehicle::_gps2FactGroup = nullptr |
Definition at line 1122 of file Vehicle.h.
Referenced by gps2FactGroup().
| const QString Vehicle::_gps2FactGroupName = QStringLiteral("gps2") |
| VehicleGPSFactGroup* Vehicle::_gpsFactGroup = nullptr |
Definition at line 1121 of file Vehicle.h.
Referenced by gpsFactGroup().
| const QString Vehicle::_gpsFactGroupName = QStringLiteral("gps") |
| VehicleHygrometerFactGroup* Vehicle::_hygrometerFactGroup = nullptr |
Definition at line 1132 of file Vehicle.h.
Referenced by hygrometerFactGroup().
| const QString Vehicle::_hygrometerFactGroupName = QStringLiteral("hygrometer") |
| InitialConnectStateMachine* Vehicle::_initialConnectStateMachine = nullptr |
Definition at line 1153 of file Vehicle.h.
Referenced by isInitialConnectComplete(), and Vehicle().
| VehicleLocalPositionFactGroup* Vehicle::_localPositionFactGroup = nullptr |
Definition at line 1129 of file Vehicle.h.
Referenced by localPositionFactGroup(), and setPIDTuningTelemetryMode().
| const QString Vehicle::_localPositionFactGroupName = QStringLiteral("localPosition") |
| VehicleLocalPositionSetpointFactGroup* Vehicle::_localPositionSetpointFactGroup = nullptr |
Definition at line 1130 of file Vehicle.h.
Referenced by localPositionSetpointFactGroup(), and setPIDTuningTelemetryMode().
| const QString Vehicle::_localPositionSetpointFactGroupName = QStringLiteral("localPositionSetpoint") |
| QMap<uint8_t , uint8_t > Vehicle::_lowestBatteryChargeStateAnnouncedMap |
| MissionManager* Vehicle::_missionManager = nullptr |
Definition at line 1148 of file Vehicle.h.
Referenced by missionManager(), and ~Vehicle().
| bool Vehicle::_multirotor_speed_limits_available = false |
Definition at line 1096 of file Vehicle.h.
Referenced by haveMRSpeedLimits().
| RadioStatusFactGroup* Vehicle::_radioStatusFactGroup = nullptr |
Definition at line 1137 of file Vehicle.h.
Referenced by radioStatusFactGroup().
| const QString Vehicle::_radioStatusFactGroupName = QStringLiteral("radioStatus") |
| RallyPointManager* Vehicle::_rallyPointManager = nullptr |
Definition at line 1150 of file Vehicle.h.
Referenced by rallyPointManager().
| RemoteIDManager* Vehicle::_remoteIDManager = nullptr |
Definition at line 1155 of file Vehicle.h.
Referenced by remoteIDManager().
| VehicleRPMFactGroup* Vehicle::_rpmFactGroup = nullptr |
Definition at line 1135 of file Vehicle.h.
Referenced by rpmFactGroup().
| const QString Vehicle::_rpmFactGroupName = QStringLiteral("rpm") |
| QVector<int> Vehicle::_servoOutputRawValues = QVector<int>(16, -1) |
| VehicleSetpointFactGroup* Vehicle::_setpointFactGroup = nullptr |
Definition at line 1127 of file Vehicle.h.
Referenced by setPIDTuningTelemetryMode(), and setpointFactGroup().
| const QString Vehicle::_setpointFactGroupName = QStringLiteral("setpoint") |
| StandardModes* Vehicle::_standardModes = nullptr |
| VehicleTemperatureFactGroup* Vehicle::_temperatureFactGroup = nullptr |
Definition at line 1125 of file Vehicle.h.
Referenced by temperatureFactGroup().
| const QString Vehicle::_temperatureFactGroupName = QStringLiteral("temperature") |
| TerrainFactGroup* Vehicle::_terrainFactGroup = nullptr |
Definition at line 1136 of file Vehicle.h.
Referenced by terrainFactGroup().
| const QString Vehicle::_terrainFactGroupName = QStringLiteral("terrain") |
| TerrainProtocolHandler* Vehicle::_terrainProtocolHandler = nullptr |
| TerrainQueryCoordinator* Vehicle::_terrainQueryCoordinator = nullptr |
Definition at line 1159 of file Vehicle.h.
Referenced by doSetHome().
| VehicleFactGroup* Vehicle::_vehicleFactGroup |
Definition at line 1120 of file Vehicle.h.
Referenced by vehicleFactGroup().
| const QString Vehicle::_vehicleFactGroupName = QStringLiteral("vehicle") |
| VehicleLinkManager* Vehicle::_vehicleLinkManager = nullptr |
Definition at line 1151 of file Vehicle.h.
Referenced by closeVehicle(), and vehicleLinkManager().
| VehicleVibrationFactGroup* Vehicle::_vibrationFactGroup = nullptr |
Definition at line 1124 of file Vehicle.h.
Referenced by vibrationFactGroup().
| const QString Vehicle::_vibrationFactGroupName = QStringLiteral("vibration") |
| VehicleWindFactGroup* Vehicle::_windFactGroup = nullptr |
Definition at line 1123 of file Vehicle.h.
Referenced by windFactGroup().
| const QString Vehicle::_windFactGroupName = QStringLiteral("wind") |
|
staticconstexpr |
|
static |
Definition at line 127 of file Vehicle.h.
Referenced by MultiVehicleManager::init(), and Vehicle().
|
static |
Definition at line 128 of file Vehicle.h.
Referenced by MultiVehicleManager::init().