#include <Vehicle.h>
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, quint32 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 () |
| VehicleReadiness * | readiness () |
| nullptr for the offline editing vehicle, which has nothing to be ready for | |
| 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) |
| quint32 | 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 |
| const StandardModes * | standardModes () 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 () |
| Q_INVOKABLE void | markMessagesRead () |
| int | unreadCriticalMessageCount () const |
| int | unreadWarningMessageCount () const |
| bool | hasUnreadMessages () const |
| int | unreadMessageCount () const |
| QString | formattedMessages () const |
| uint32_t | flowImageIndex () const |
| MAVLinkLogManager * | mavlinkLogManager () const |
| QGCCameraManager * | cameraManager () |
| const QVariantList & | staticCameraList () const |
| HealthAndArmingCheckReport * | healthAndArmingCheckReport () |
| bool | healthAndArmingChecksSupported (uint8_t compid) const |
| True if the component's events metadata lists the libevents health and arming check protocol. | |
| int | healthAndArmingCheckModeGroup (uint32_t customMode) const |
| Autopilot health and arming check mode group of a custom mode. -1 if unknown. | |
| 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, |
| quint32 | vehicleId, | ||
| int | defaultComponentId, | ||
| MAV_AUTOPILOT | firmwareType, | ||
| MAV_TYPE | vehicleType, | ||
| QObject * | parent = nullptr ) |
Definition at line 103 of file Vehicle.cc.
References _initialConnectStateMachine, _vehicleFactGroup, MultiVehicleManager::activeVehicleChanged(), airborne(), airborneChanged(), armedChanged(), defaultComponentId(), FactGroup::factNames(), firmwareType(), flightModeChanged(), FactGroup::getFact(), MAVLinkProtocol::instance(), MultiVehicleManager::instance(), QGCSensors::QGCPressure::instance(), SettingsManager::instance(), MAVLinkProtocol::mavlinkMessageStatus(), MAVLinkProtocol::messageReceived(), MultiVehicleManager::parameterReadyVehicleAvailableChanged(), QGC::runningUnitTests(), setInitialGCSPressure(), setInitialGCSTemperature(), sub(), Vehicle(), VehicleFactGroup::VehicleFactGroup(), vehicleType(), VideoSettings::videoDisabled, SettingsManager::videoSettings(), and VideoSettings::videoSourceUDPH264.
Referenced by acknowledgeNewStableFirmwareVersion(), logData(), mavlinkLogData(), Vehicle(), and Vehicle().
| Vehicle::Vehicle | ( | MAV_AUTOPILOT | firmwareType, |
| MAV_TYPE | vehicleType, | ||
| QObject * | parent = nullptr ) |
Definition at line 184 of file Vehicle.cc.
References _offlineFirmwareTypeSettingChanged(), _vehicleFactGroup, firmwareType(), SettingsManager::instance(), MAV_AUTOPILOT_TRACK, Fact::rawValueChanged(), trackFirmwareVehicleTypeChanges(), Vehicle(), VehicleFactGroup::VehicleFactGroup(), and vehicleType().
| Vehicle::~Vehicle | ( | ) |
Definition at line 392 of file Vehicle.cc.
References _missionManager.
| int Vehicle::_findMavCommandListEntryIndex | ( | int | targetCompId, |
| MAV_CMD | command ) |
Test-only helper: forwards to MavCommandQueue::findEntryIndex.
Definition at line 2250 of file Vehicle.cc.
|
slot |
Definition at line 490 of file Vehicle.cc.
References capabilityBitsChanged(), FirmwarePluginManager::firmwarePluginForAutopilot(), firmwareTypeChanged(), and FirmwarePluginManager::instance().
Referenced by stopTrackingFirmwareVehicleTypeChanges(), trackFirmwareVehicleTypeChanges(), and Vehicle().
|
slot |
Definition at line 503 of file Vehicle.cc.
References vehicleTypeChanged().
Referenced by stopTrackingFirmwareVehicleTypeChanges(), and trackFirmwareVehicleTypeChanges().
| void Vehicle::_setHomePosition | ( | QGeoCoordinate & | homeCoord | ) |
Definition at line 1228 of file Vehicle.cc.
References homePositionChanged().
| void Vehicle::_setLanding | ( | bool | landing | ) |
Definition at line 1870 of file Vehicle.cc.
References armed(), landing(), and landingChanged().
| void Vehicle::_setUnderway | ( | bool | underway | ) |
Definition at line 1852 of file Vehicle.cc.
References underway(), and underwayChanged().
| void Vehicle::abortLanding | ( | double | climbOutAltitude | ) |
Command vehicle to abort landing.
Definition at line 2111 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 2399 of file Vehicle.cc.
References QmlObjectListModel::count(), MultiVehicleManager::instance(), newStableFirmwareVersionChanged(), QmlObjectListModel::value(), Vehicle(), and MultiVehicleManager::vehicles().
|
inline |
Definition at line 565 of file Vehicle.h.
References _actuators.
|
inline |
Definition at line 524 of file Vehicle.h.
Referenced by airborneChanged(), APMFirmwarePlugin::startCompensatingBaro(), APMFirmwarePlugin::startTakeoff(), and Vehicle().
|
signal |
References airborne().
Referenced by Vehicle().
| bool Vehicle::airship | ( | ) | const |
Definition at line 1778 of file Vehicle.cc.
References QGCMAVLink::isAirship(), and vehicleType().
|
inline |
Definition at line 558 of file Vehicle.h.
Referenced by allSensorsHealthyChanged().
|
signal |
References allSensorsHealthy().
Referenced by VehicleReadiness::VehicleReadiness().
|
inline |
Definition at line 516 of file Vehicle.h.
Referenced by RallyPointController::addPoint(), flashBootloader(), genericFirmware(), and motorInterlock().
|
inline |
Definition at line 470 of file Vehicle.h.
Referenced by FirmwarePlugin::_armVehicleAndValidate(), _setLanding(), armedChanged(), logData(), setArmed(), setArmedShowError(), and APMFirmwarePlugin::startMission().
|
signal |
References armed().
Referenced by MAVLinkLogManager::MAVLinkLogManager(), Vehicle(), and VehicleReadiness::VehicleReadiness().
|
signal |
| bool Vehicle::autoDisarm | ( | ) |
Definition at line 2701 of file Vehicle.cc.
References ParameterManager::defaultComponentId, and Fact::rawValue().
|
signal |
|
inline |
Provides access to AutoPilotPlugin for this vehicle.
| QmlObjectListModel * Vehicle::batteries | ( | ) |
Definition at line 440 of file Vehicle.cc.
References _batteryFactGroupListModel.
|
inline |
Definition at line 1333 of file Vehicle.h.
References cameraManager().
Referenced by cameraManager(), and mavlinkLogManagerChanged().
|
signal |
References customMode(), healthAndArmingCheckModeGroup(), healthAndArmingCheckReport(), healthAndArmingChecksSupported(), and setEventsMetadata().
Referenced by mavlinkLogManagerChanged().
| QmlObjectListModel * Vehicle::cameraTriggerPoints | ( | ) |
Definition at line 444 of file Vehicle.cc.
References QmlObjectListModel::get().
|
inline |
Definition at line 731 of file Vehicle.h.
Referenced by capabilitiesKnownChanged().
|
signal |
References capabilitiesKnown().
|
inline |
Definition at line 732 of file Vehicle.h.
Referenced by FirmwarePlugin::_sendROICommand(), capabilityBitsChanged(), PX4FirmwarePlugin::guidedModeGotoLocation(), guidedModeOrbit(), logData(), and stopGuidedModeROI().
|
signal |
References capabilityBits().
Referenced by _offlineFirmwareTypeSettingChanged().
|
signal |
Referenced by setCheckListState(), and VehicleReadiness::VehicleReadiness().
| void Vehicle::clearAllParamMapRC | ( | void | ) |
Clears all PARAM_MAP_RC settings from vehicle.
Definition at line 3038 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
| void Vehicle::clearMessages | ( | ) |
Definition at line 3454 of file Vehicle.cc.
| FactGroup * Vehicle::clockFactGroup | ( | ) |
Definition at line 427 of file Vehicle.cc.
References _clockFactGroup, and FactGroup::FactGroup().
| void Vehicle::closeVehicle | ( | ) |
Removes the vehicle from the system.
Definition at line 445 of file Vehicle.cc.
References _vehicleLinkManager.
| bool Vehicle::coaxialMotors | ( | ) |
Definition at line 1466 of file Vehicle.cc.
|
inline |
Definition at line 447 of file Vehicle.h.
Referenced by VehicleFactGroup::_handleAttitude(), VehicleFactGroup::_handleAttitudeQuaternion(), getMessageRate(), logData(), mavlinkMsgIntervalsChanged(), requestMessage(), sendCommand(), sendMavCommand(), sendMavCommandDelayed(), sendMavCommandInt(), sendMavCommandIntWithHandler(), sendMavCommandIntWithLambdaFallback(), sendMavCommandWithHandler(), sendMavCommandWithLambdaFallback(), and setMessageRate().
|
inline |
|
inline |
Definition at line 430 of file Vehicle.h.
Referenced by coordinateChanged(), APMFirmwarePlugin::guidedModeChangeHeading(), PX4FirmwarePlugin::guidedModeChangeHeading(), guidedModeGotoLocation(), and TransformPositionController::setFromVehicle().
|
signal |
References coordinate().
Referenced by TrajectoryPoints::start(), and TrajectoryPoints::stop().
|
signal |
|
inline |
Definition at line 531 of file Vehicle.h.
Referenced by cameraManagerChanged(), and healthAndArmingCheckModeGroup().
|
inline |
Definition at line 705 of file Vehicle.h.
Referenced by FirmwarePlugin::_sendROICommand(), abortLanding(), flashBootloader(), GimbalController, APMFirmwarePlugin::guidedModeChangeAltitude(), APMFirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), PX4FirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), APMFirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), PX4FirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), APMFirmwarePlugin::guidedModeChangeHeading(), APMFirmwarePlugin::guidedModeGotoLocation(), PX4FirmwarePlugin::guidedModeGotoLocation(), guidedModeOrbit(), PX4FirmwarePlugin::guidedModeTakeoff(), landingGearDeploy(), landingGearRetract(), motorInterlock(), setCurrentMissionSequence(), setEstimatorOrigin(), setFlightMode(), setOfflineEditingDefaultComponentId(), startCalibration(), APMFirmwarePlugin::startMission(), stopCalibration(), stopGuidedModeROI(), and Vehicle().
|
inline |
Definition at line 549 of file Vehicle.h.
Referenced by MissionFlightStatusCalculator::reset().
|
signal |
|
inline |
Definition at line 550 of file Vehicle.h.
Referenced by MissionFlightStatusCalculator::reset().
|
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 429 of file Vehicle.cc.
References _distanceSensorFactGroup, and FactGroup::FactGroup().
| void Vehicle::doSetHome | ( | const QGeoCoordinate & | coord | ) |
Set home from flight map coordinate.
Definition at line 2957 of file Vehicle.cc.
References _terrainQueryCoordinator.
|
inline |
|
signal |
The custom mode used for health and arming check mode groups changed. Unlike flightModeChanged this also fires when only CURRENT_MODE's intended mode changes.
Referenced by MAVLinkEventManager::MAVLinkEventManager().
| FactGroup * Vehicle::efiFactGroup | ( | ) |
Definition at line 436 of file Vehicle.cc.
References _efiFactGroup, and FactGroup::FactGroup().
| void Vehicle::emergencyStop | ( | ) |
Command vehicle to kill all motors no matter what state.
Definition at line 2136 of file Vehicle.cc.
References sendMavCommand().
| QmlObjectListModel * Vehicle::escs | ( | ) |
Definition at line 441 of file Vehicle.cc.
References _escStatusFactGroupListModel.
| FactGroup * Vehicle::estimatorStatusFactGroup | ( | ) |
Definition at line 432 of file Vehicle.cc.
References _estimatorStatusFactGroup, and FactGroup::FactGroup().
| QVariant Vehicle::expandedToolbarIndicatorSource | ( | const QString & | indicatorName | ) |
Definition at line 3406 of file Vehicle.cc.
|
signal |
Referenced by setFirmwareCustomVersion(), and AirframeComponent::setupTriggerSignals().
|
inline |
Definition at line 684 of file Vehicle.h.
Referenced by APMFirmwarePlugin::_internalParameterMetaDataFile(), FirmwarePlugin::_versionFileDownloadFinished(), and FirmwarePlugin::versionCompare().
|
inline |
Definition at line 685 of file Vehicle.h.
Referenced by APMFirmwarePlugin::_internalParameterMetaDataFile(), FirmwarePlugin::_versionFileDownloadFinished(), and FirmwarePlugin::versionCompare().
|
inline |
Definition at line 686 of file Vehicle.h.
Referenced by FirmwarePlugin::_versionFileDownloadFinished(), and FirmwarePlugin::versionCompare().
|
inline |
Provides access to the Firmware Plugin for this Vehicle.
Definition at line 465 of file Vehicle.h.
Referenced by TakeoffMissionItem::isVTOLMulticopterTakeoff(), and MissionFlightStatusCalculator::reset().
|
inline |
Definition at line 720 of file Vehicle.h.
Referenced by _MAV_CMD_DO_REPOSITION_ResultHandler(), APMFirmwarePlugin::adjustIncomingMavlinkMessage(), APMFirmwarePlugin::guidedModeGotoLocation(), APMFirmwarePlugin::initializeStreamRates(), and setFirmwarePluginInstanceData().
|
inline |
Definition at line 448 of file Vehicle.h.
Referenced by GimbalController, FirmwarePlugin::stableFirmwareSettingsKey(), Vehicle(), and Vehicle().
|
signal |
| QString Vehicle::firmwareTypeString | ( | ) | const |
Definition at line 521 of file Vehicle.cc.
References QGCMAVLink::firmwareClassToString().
|
signal |
Referenced by setFirmwareVersion(), and AirframeComponent::setupTriggerSignals().
|
inline |
Definition at line 687 of file Vehicle.h.
Referenced by FirmwarePlugin::_versionFileDownloadFinished().
| QString Vehicle::firmwareVersionTypeString | ( | ) | const |
Definition at line 2342 of file Vehicle.cc.
References QGCMAVLink::firmwareVersionTypeToString().
| bool Vehicle::fixedWing | ( | ) | const |
Definition at line 1783 of file Vehicle.cc.
References QGCMAVLink::isFixedWing(), and vehicleType().
Referenced by RallyPointController::addPoint(), PX4FirmwarePlugin::flightModes(), inFwdFlight(), APMFirmwarePlugin::isCapable(), PX4FirmwarePlugin::isCapable(), and APMFirmwarePlugin::startMission().
| void Vehicle::flashBootloader | ( | ) |
Definition at line 3425 of file Vehicle.cc.
References apmFirmware(), defaultComponentId(), and sendMavCommand().
| QString Vehicle::flightMode | ( | ) | const |
Definition at line 1515 of file Vehicle.cc.
Referenced by FirmwarePlugin::_setFlightModeAndValidate(), flightModeChanged(), APMFirmwarePlugin::isGuidedMode(), PX4FirmwarePlugin::isGuidedMode(), logData(), and setFlightMode().
|
signal |
References flightMode().
Referenced by Vehicle().
| QStringList Vehicle::flightModes | ( | ) |
|
signal |
| bool Vehicle::flightModeSetAvailable | ( | ) |
Definition at line 1504 of file Vehicle.cc.
References FirmwarePlugin::SetFlightModeCapability.
| uint32_t Vehicle::flowImageIndex | ( | ) | const |
Definition at line 3595 of file Vehicle.cc.
Referenced by newFormattedMessage().
|
signal |
References mavlinkLogManager(), and mavlinkLogManagerChanged().
Referenced by newFormattedMessage().
| QString Vehicle::followFlightMode | ( | ) | const |
Definition at line 2650 of file Vehicle.cc.
| void Vehicle::forceArm | ( | void | ) |
Definition at line 1495 of file Vehicle.cc.
References sendMavCommand().
| void Vehicle::forceInitialPlanRequestComplete | ( | ) |
Definition at line 2796 of file Vehicle.cc.
References initialPlanRequestCompleteChanged().
| QString Vehicle::formattedMessages | ( | ) | const |
Definition at line 3484 of file Vehicle.cc.
Referenced by sendControlRequestAllowedChanged().
|
signal |
Referenced by sendControlRequestAllowedChanged().
|
inline |
Definition at line 603 of file Vehicle.h.
References _ftpManager.
|
signal |
Referenced by mavlinkMsgIntervalsChanged().
| FactGroup * Vehicle::generatorFactGroup | ( | ) |
Definition at line 435 of file Vehicle.cc.
References _generatorFactGroup, and FactGroup::FactGroup().
|
inline |
Definition at line 517 of file Vehicle.h.
References apmFirmware(), and px4Firmware().
|
inline |
Definition at line 598 of file Vehicle.h.
References _geoFenceManager.
|
inline |
Definition at line 433 of file Vehicle.h.
Referenced by APMFirmwarePlugin::startCompensatingBaro().
|
inline |
Definition at line 434 of file Vehicle.h.
Referenced by APMFirmwarePlugin::startCompensatingBaro().
| int32_t Vehicle::getMessageRate | ( | uint8_t | compId, |
| uint16_t | msgId ) |
Definition at line 3396 of file Vehicle.cc.
References compId().
|
inline |
Definition at line 769 of file Vehicle.h.
References GimbalController.
|
signal |
| QString Vehicle::gotoFlightMode | ( | ) | const |
Definition at line 1878 of file Vehicle.cc.
| VehicleGPSFactGroup * Vehicle::gps2FactGroup | ( | ) |
Definition at line 420 of file Vehicle.cc.
References _gps2FactGroup.
| VehicleGPSFactGroup * Vehicle::gpsFactGroup | ( | ) |
Definition at line 415 of file Vehicle.cc.
References _gpsFactGroup.
Referenced by NTRIPVehicleGgaSource::setVehicle().
| bool Vehicle::guidedMode | ( | ) | const |
Definition at line 2120 of file Vehicle.cc.
Referenced by guidedModeChanged(), and 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 1969 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, pauseVehicle(), and QGC::showAppMessage().
|
signal |
References guidedMode().
| void Vehicle::guidedModeChangeEquivalentAirspeedMetersSecond | ( | double | airspeed | ) |
Command vehicle to change equivalent airspeed
| airspeed | Target equivalent airspeed |
Definition at line 1989 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, and QGC::showAppMessage().
| void Vehicle::guidedModeChangeGroundSpeedMetersSecond | ( | double | groundspeed | ) |
Command vehicle to change groundspeed
| groundspeed | Target horizontal groundspeed |
Definition at line 1979 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, and QGC::showAppMessage().
| void Vehicle::guidedModeChangeHeading | ( | const QGeoCoordinate & | headingCoord | ) |
Command vehicle to change yaw
| coordinate | to rotate towards |
Definition at line 2092 of file Vehicle.cc.
References 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 1948 of file Vehicle.cc.
References FactMetaData::appSettingsHorizontalDistanceUnitsString(), coordinate(), SettingsManager::flyViewSettings(), guided_mode_not_supported_by_vehicle, SettingsManager::instance(), FactMetaData::metersToAppSettingsHorizontalDistanceUnits(), and QGC::showAppMessage().
| void Vehicle::guidedModeLand | ( | ) |
Command vehicle to land at current location.
Definition at line 1892 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, 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 1998 of file Vehicle.cc.
References capabilityBits(), defaultComponentId(), 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 2030 of file Vehicle.cc.
References roiCoordChanged(), roiRelativeAltitudeMetersChanged(), and QGC::showAppMessage().
| void Vehicle::guidedModeRTL | ( | bool | smartRTL | ) |
Command vehicle to return to launch.
Definition at line 1883 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, and QGC::showAppMessage().
| void Vehicle::guidedModeTakeoff | ( | double | altitudeRelative | ) |
Command vehicle to takeoff from current location.
Definition at line 1901 of file Vehicle.cc.
References VehicleFactGroup::altitudeRelative(), guided_mode_not_supported_by_vehicle, and QGC::showAppMessage().
| bool Vehicle::hasGripper | ( | ) | const |
Definition at line 1932 of file Vehicle.cc.
|
signal |
| bool Vehicle::hasUnreadMessages | ( | ) | const |
Definition at line 3474 of file Vehicle.cc.
Referenced by sendControlRequestAllowedChanged().
|
signal |
Referenced by sendControlRequestAllowedChanged().
|
signal |
|
inline |
Definition at line 426 of file Vehicle.h.
References _fixed_wing_airspeed_limits_available.
|
signal |
|
inline |
Definition at line 425 of file Vehicle.h.
References _multirotor_speed_limits_available.
| int Vehicle::healthAndArmingCheckModeGroup | ( | uint32_t | customMode | ) | const |
Autopilot health and arming check mode group of a custom mode. -1 if unknown.
Definition at line 3660 of file Vehicle.cc.
References customMode().
Referenced by cameraManagerChanged().
| HealthAndArmingCheckReport * Vehicle::healthAndArmingCheckReport | ( | ) |
Definition at line 3665 of file Vehicle.cc.
Referenced by cameraManagerChanged().
| bool Vehicle::healthAndArmingChecksSupported | ( | uint8_t | compid | ) | const |
True if the component's events metadata lists the libevents health and arming check protocol.
Definition at line 3655 of file Vehicle.cc.
Referenced by cameraManagerChanged().
| QString Vehicle::hobbsMeter | ( | ) |
Definition at line 2807 of file Vehicle.cc.
|
signal |
| QGeoCoordinate Vehicle::homePosition | ( | ) |
Definition at line 1481 of file Vehicle.cc.
Referenced by PX4FirmwarePlugin::guidedModeChangeAltitude(), PX4FirmwarePlugin::guidedModeROI(), homePositionChanged(), and APMFirmwarePlugin::sendGCSMotionReport().
|
signal |
References homePosition().
Referenced by _setHomePosition(), and MissionSettingsItem::MissionSettingsItem().
| FactGroup * Vehicle::hygrometerFactGroup | ( | ) |
Definition at line 434 of file Vehicle.cc.
References _hygrometerFactGroup, and FactGroup::FactGroup().
|
inline |
Definition at line 446 of file Vehicle.h.
Referenced by VehicleFactGroup::_handleAttitude(), VehicleFactGroup::_handleAttitudeQuaternion(), APMFirmwarePlugin::adjustIncomingMavlinkMessage(), MultiVehicleManager::deselectVehicle(), MultiVehicleManager::getVehicleById(), and APMFirmwarePlugin::guidedModeChangeAltitude().
| bool Vehicle::inFwdFlight | ( | ) | const |
Definition at line 2130 of file Vehicle.cc.
References fixedWing().
|
signal |
|
signal |
|
inline |
The vehicle is responsible for making the initial request for the Plan.
Definition at line 738 of file Vehicle.h.
Referenced by initialPlanRequestCompleteChanged().
|
signal |
References initialPlanRequestComplete().
Referenced by forceInitialPlanRequestComplete().
| bool Vehicle::isInitialConnectComplete | ( | ) | const |
Definition at line 2894 of file Vehicle.cc.
References _initialConnectStateMachine.
| 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 2245 of file Vehicle.cc.
|
inline |
Definition at line 535 of file Vehicle.h.
Referenced by APMFirmwarePlugin::initializeVehicle().
|
inline |
|
signal |
| QString Vehicle::landFlightMode | ( | ) | const |
Definition at line 2640 of file Vehicle.cc.
|
inline |
Definition at line 526 of file Vehicle.h.
Referenced by _setLanding(), and landingChanged().
|
signal |
References landing().
Referenced by _setLanding().
| void Vehicle::landingGearDeploy | ( | ) |
Command vichecle to deploy landing gear.
Definition at line 2146 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
| void Vehicle::landingGearRetract | ( | ) |
Command vichecle to retract landing gear.
Definition at line 2156 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
|
signal |
| FactGroup * Vehicle::localPositionFactGroup | ( | ) |
Definition at line 430 of file Vehicle.cc.
References _localPositionFactGroup, and FactGroup::FactGroup().
| FactGroup * Vehicle::localPositionSetpointFactGroup | ( | ) |
Definition at line 431 of file Vehicle.cc.
References _localPositionSetpointFactGroup, and FactGroup::FactGroup().
|
signal |
References armed(), capabilityBits(), CheckListNotSetup, compId(), flightMode(), GimbalController, and Vehicle().
|
signal |
|
signal |
| void Vehicle::markMessagesRead | ( | ) |
Definition at line 3459 of file Vehicle.cc.
|
static |
Definition at line 3416 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(), and MAVLinkLogManager::MAVLinkLogManager().
|
signal |
References Vehicle().
Referenced by MAVLinkLogManager::MAVLinkLogManager().
| MAVLinkLogManager * Vehicle::mavlinkLogManager | ( | ) | const |
Definition at line 3610 of file Vehicle.cc.
Referenced by flowImageIndexChanged().
|
signal |
References cameraManager(), cameraManagerChanged(), and staticCameraList().
Referenced by flowImageIndexChanged().
|
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 |
References compId(), gcsControlStatusChanged(), and sendControlRequestAllowedChanged().
|
inline |
|
signal |
|
signal |
| double Vehicle::maximumEquivalentAirspeed | ( | ) |
Definition at line 1921 of file Vehicle.cc.
| double Vehicle::maximumHorizontalSpeedMultirotorMetersSecond | ( | ) |
Definition at line 1915 of file Vehicle.cc.
|
signal |
|
signal |
|
signal |
Referenced by sendMessageOnLinkThreadSafe().
| double Vehicle::minimumEquivalentAirspeed | ( | ) |
Definition at line 1927 of file Vehicle.cc.
| double Vehicle::minimumTakeoffAltitudeMeters | ( | ) |
Definition at line 1910 of file Vehicle.cc.
| QString Vehicle::missionFlightMode | ( | ) | const |
Definition at line 2620 of file Vehicle.cc.
|
inline |
Definition at line 597 of file Vehicle.h.
References _missionManager.
Referenced by APMFirmwarePlugin::guidedModeGotoLocation(), and MissionController::sendItemsToVehicle().
| int Vehicle::motorCount | ( | ) |
Definition at line 1449 of file Vehicle.cc.
References QGCMAVLink::motorCount(), and Fact::rawValue().
| QString Vehicle::motorDetectionFlightMode | ( | ) | const |
Definition at line 2655 of file Vehicle.cc.
| void Vehicle::motorInterlock | ( | bool | enable | ) |
Command vehicle to Enable/Disable Motor Interlock.
Definition at line 3437 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 2533 of file Vehicle.cc.
References sendMavCommand().
| bool Vehicle::multiRotor | ( | ) | const |
Definition at line 1803 of file Vehicle.cc.
References QGCMAVLink::isMultiRotor(), and vehicleType().
Referenced by QGCCorePlugin::complexMissionItemNames(), APMFirmwarePlugin::expandedToolbarIndicatorSource(), PX4FirmwarePlugin::flightModes(), APMFirmwarePlugin::isCapable(), PX4FirmwarePlugin::isCapable(), MissionFlightStatusCalculator::recalc(), MissionFlightStatusCalculator::reset(), and startCalibration().
|
signal |
References flowImageIndex(), and flowImageIndexChanged().
|
inline |
|
inline |
|
signal |
Referenced by acknowledgeNewStableFirmwareVersion(), and setNewStableFirmwareVersion().
|
inline |
|
inline |
Definition at line 554 of file Vehicle.h.
Referenced by orbitActiveChanged().
|
signal |
References orbitActive().
|
inline |
| void Vehicle::pairRX | ( | int | rxType, |
| int | rxSubType ) |
Definition at line 3235 of file Vehicle.cc.
References sendMavCommand().
|
inline |
Definition at line 600 of file Vehicle.h.
Referenced by APMAirframeComponent::APMAirframeComponent(), APMFirmwarePlugin::fixedWingAirSpeedLimitsAvailable(), PX4FirmwarePlugin::fixedWingAirSpeedLimitsAvailable(), APMFirmwarePlugin::getHobbsMeter(), PX4FirmwarePlugin::getHobbsMeter(), APMFirmwarePlugin::guidedModeChangeHeading(), APMFirmwarePlugin::hasGripper(), PX4FirmwarePlugin::hasGripper(), APMFirmwarePlugin::maximumEquivalentAirspeed(), PX4FirmwarePlugin::maximumEquivalentAirspeed(), APMFirmwarePlugin::maximumHorizontalSpeedMultirotorMetersSecond(), PX4FirmwarePlugin::maximumHorizontalSpeedMultirotorMetersSecond(), APMFirmwarePlugin::minimumEquivalentAirspeed(), PX4FirmwarePlugin::minimumEquivalentAirspeed(), APMFirmwarePlugin::minimumTakeoffAltitudeMeters(), APMFirmwarePlugin::mulirotorSpeedLimitsAvailable(), PX4FirmwarePlugin::mulirotorSpeedLimitsAvailable(), ArduCopterFirmwarePlugin::multiRotorXConfig(), and RCToParamDialogController::setTuningFact().
|
inline |
| QString Vehicle::pauseFlightMode | ( | ) | const |
Definition at line 2625 of file Vehicle.cc.
| 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 2102 of file Vehicle.cc.
References QGC::showAppMessage().
Referenced by guidedModeChangeAltitude().
|
inline |
Definition at line 494 of file Vehicle.h.
Referenced by prearmErrorChanged(), and setPrearmError().
|
signal |
References prearmError().
Referenced by setPrearmError().
| void Vehicle::prepareDelete | ( | ) |
Vehicle is about to be deleted.
|
inline |
Definition at line 515 of file Vehicle.h.
Referenced by RallyPointController::addPoint(), and genericFirmware().
| FactGroup * Vehicle::radioStatusFactGroup | ( | ) |
Definition at line 438 of file Vehicle.cc.
References _radioStatusFactGroup, and FactGroup::FactGroup().
|
inline |
Definition at line 599 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(), and RadioComponentController::start().
|
signal |
Raw RC channel values coming from RC_CHANNELS message
| channelValues | The current raw values for rc channels |
Referenced by PX4FlightModesController::setMonitorRc().
|
inline |
|
inline |
Definition at line 556 of file Vehicle.h.
Referenced by readyToFlyAvailableChanged().
|
signal |
References readyToFlyAvailable().
Referenced by VehicleReadiness::VehicleReadiness().
|
signal |
Referenced by VehicleReadiness::VehicleReadiness().
|
signal |
Referenced by setRebootRequired().
| void Vehicle::rebootVehicle | ( | ) |
Reboot vehicle.
Definition at line 2369 of file Vehicle.cc.
References VehicleTypes::MavCmdAckHandlerInfo_s::resultHandler, VehicleTypes::MavCmdAckHandlerInfo_s::resultHandlerData, and sendMavCommandWithHandler().
|
inline |
Definition at line 607 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 1576 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), 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 2305 of file Vehicle.cc.
References compId().
Referenced by _requestCameraInfoHelper(), and RequestMessageState::onWaitEntered().
|
static |
Definition at line 3411 of file Vehicle.cc.
References RequestMessageCoordinator::failureCodeToString().
Referenced by _requestCameraInfoMessageResultHandler().
| void Vehicle::requestOperatorControl | ( | bool | allowOverride, |
| int | requestTimeoutSecs = 0 ) |
Definition at line 3260 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 526 of file Vehicle.cc.
|
signal |
Referenced by guidedModeROI().
|
inline |
|
signal |
Referenced by guidedModeROI().
| bool Vehicle::rover | ( | ) | const |
Definition at line 1788 of file Vehicle.cc.
References QGCMAVLink::isRoverBoat(), and vehicleType().
Referenced by startCalibration().
| FactGroup * Vehicle::rpmFactGroup | ( | ) |
Definition at line 437 of file Vehicle.cc.
References _rpmFactGroup, and FactGroup::FactGroup().
| QString Vehicle::rtlFlightMode | ( | ) | const |
Definition at line 2630 of file Vehicle.cc.
| 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 2206 of file Vehicle.cc.
References compId(), and sendMavCommand().
|
signal |
References formattedMessages(), formattedMessagesChanged(), hasUnreadMessages(), hasUnreadMessagesChanged(), unreadCriticalMessageCount(), unreadCriticalMessageCountChanged(), unreadMessageCount(), unreadMessageCountChanged(), unreadWarningMessageCount(), and unreadWarningMessageCountChanged().
Referenced by mavlinkMsgIntervalsChanged().
|
slot |
Definition at line 3184 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 3106 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 3060 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 2196 of file Vehicle.cc.
References compId().
Referenced by FirmwarePlugin::_sendROICommand(), abortLanding(), emergencyStop(), flashBootloader(), forceArm(), APMFirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), PX4FirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), APMFirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), PX4FirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), APMFirmwarePlugin::guidedModeChangeHeading(), PX4FirmwarePlugin::guidedModeGotoLocation(), guidedModeOrbit(), APMFirmwarePlugin::initializeStreamRates(), landingGearDeploy(), landingGearRetract(), motorInterlock(), motorTest(), SendMavlinkCommandState::onWaitEntered(), pairRX(), sendCommand(), sendGripperAction(), MavlinkAction::sendTo(), setArmed(), setEventsMetadata(), setFlightMode(), setVtolInFwdFlight(), startMavlinkLog(), APMFirmwarePlugin::startMission(), stopCalibration(), stopGuidedModeROI(), stopMavlinkLog(), 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 2201 of file Vehicle.cc.
References compId().
| 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 2225 of file Vehicle.cc.
References compId().
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 2230 of file Vehicle.cc.
References compId().
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 2240 of file Vehicle.cc.
References compId().
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 2220 of file Vehicle.cc.
References compId().
Referenced by _requestCameraInfoHelper(), PX4FirmwarePlugin::guidedModeTakeoff(), rebootVehicle(), and requestOperatorControl().
| 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 2235 of file Vehicle.cc.
References compId().
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 1632 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 1431 of file Vehicle.cc.
References LinkInterface::isConnected(), messagesSentChanged(), and LinkInterface::sendMessageThreadSafe().
Referenced by clearAllParamMapRC(), APMFirmwarePlugin::guidedModeChangeAltitude(), requestDataStream(), APMFirmwarePlugin::sendGCSMotionReport(), FirmwarePlugin::sendGCSMotionReport(), sendJoystickAuxRcOverrideThreadSafe(), sendJoystickDataThreadSafe(), sendParamMapRC(), setCurrentMissionSequence(), setEstimatorOrigin_SET_GPS_GLOBAL_ORIGIN(), setFlightMode(), and startCalibration().
| 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 3011 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
| void Vehicle::sendPlan | ( | QString | planFile | ) |
Definition at line 2802 of file Vehicle.cc.
References PlanMasterController::sendPlanToVehicle().
|
inline |
Definition at line 537 of file Vehicle.h.
Referenced by sensorsEnabledBitsChanged().
|
signal |
References sensorsEnabledBits().
|
inline |
Definition at line 538 of file Vehicle.h.
Referenced by sensorsHealthBitsChanged().
|
signal |
References sensorsHealthBits().
|
signal |
Referenced by SensorsComponentController::SensorsComponentController().
|
inline |
Definition at line 536 of file Vehicle.h.
Referenced by sensorsPresentBitsChanged().
|
signal |
References sensorsPresentBits().
|
inline |
Definition at line 539 of file Vehicle.h.
Referenced by sensorsUnhealthyBitsChanged().
|
signal |
References sensorsUnhealthyBits().
|
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 1296 of file Vehicle.cc.
References _actuators.
| void Vehicle::setArmed | ( | bool | armed, |
| bool | showError ) |
Definition at line 1486 of file Vehicle.cc.
References armed(), and sendMavCommand().
Referenced by FirmwarePlugin::_armVehicleAndValidate(), and setArmedShowError().
|
inline |
Definition at line 472 of file Vehicle.h.
References armed(), and setArmed().
|
inline |
Definition at line 763 of file Vehicle.h.
References checkListStateChanged().
| void Vehicle::setCurrentMissionSequence | ( | int | seq | ) |
Alter the current mission item on the vehicle.
Definition at line 2166 of file Vehicle.cc.
References defaultComponentId(), MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMavCommandWithLambdaFallback(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
| void Vehicle::setEstimatorOrigin | ( | const QGeoCoordinate & | centerCoord | ) |
Definition at line 3194 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 3212 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 3670 of file Vehicle.cc.
References sendMavCommand().
Referenced by cameraManagerChanged().
| void Vehicle::setFirmwareCustomVersion | ( | int | majorVersion, |
| int | minorVersion, | ||
| int | patchVersion ) |
Definition at line 2334 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 2614 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 2325 of file Vehicle.cc.
References firmwareVersionChanged().
Referenced by APMFirmwarePlugin::initializeVehicle().
| void Vehicle::setFlightMode | ( | const QString & | flightMode | ) |
Definition at line 1525 of file Vehicle.cc.
References defaultComponentId(), flightMode(), MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMavCommand(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
Referenced by FirmwarePlugin::_setFlightModeAndValidate().
| void Vehicle::setGuidedMode | ( | bool | guidedMode | ) |
Definition at line 2125 of file Vehicle.cc.
References guidedMode().
|
inline |
|
inline |
| void Vehicle::setMessageRate | ( | uint8_t | compId, |
| uint16_t | msgId, | ||
| int32_t | rate ) |
Definition at line 3401 of file Vehicle.cc.
References compId().
Referenced by MAVLinkInspectorController::setMessageInterval().
| void Vehicle::setNewStableFirmwareVersion | ( | const QString & | version | ) |
Definition at line 2388 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 2538 of file Vehicle.cc.
References defaultComponentId().
| void Vehicle::setPIDTuningTelemetryMode | ( | PIDTuningTelemetryMode | mode | ) |
Definition at line 2843 of file Vehicle.cc.
References VehicleFactGroup::_altitudeTuningFact, _altitudeTuningOffset, VehicleFactGroup::_altitudeTuningSetpointFact, _localPositionFactGroup, _localPositionSetpointFactGroup, _setpointFactGroup, ModeAltitudeAndAirspeed, ModeDisabled, ModeRateAndAttitude, ModeVelocityAndPosition, and FactGroup::setLiveUpdates().
| FactGroup * Vehicle::setpointFactGroup | ( | ) |
Definition at line 428 of file Vehicle.cc.
References _setpointFactGroup, and FactGroup::FactGroup().
| void Vehicle::setPrearmError | ( | const QString & | prearmError | ) |
Definition at line 2311 of file Vehicle.cc.
References prearmError(), and prearmErrorChanged().
| void Vehicle::setRebootRequired | ( | ) |
Latches rebootRequired until the vehicle reboots.
Definition at line 2378 of file Vehicle.cc.
References rebootRequiredChanged().
| void Vehicle::setSoloFirmware | ( | bool | soloFirmware | ) |
Definition at line 2525 of file Vehicle.cc.
References soloFirmware(), and soloFirmwareChanged().
|
slot |
Definition at line 2547 of file Vehicle.cc.
References sendMavCommand(), and vtolInFwdFlight().
|
static |
Definition at line 2255 of file Vehicle.cc.
References MavCommandQueue::showCommandAckError().
|
inline |
|
inline |
| QString Vehicle::smartRTLFlightMode | ( | ) | const |
Definition at line 2635 of file Vehicle.cc.
|
inline |
Definition at line 702 of file Vehicle.h.
Referenced by setSoloFirmware(), and soloFirmwareChanged().
|
signal |
References soloFirmware().
Referenced by setSoloFirmware().
| bool Vehicle::spacecraft | ( | ) | const |
Definition at line 1798 of file Vehicle.cc.
References QGCMAVLink::isSpacecraft(), and vehicleType().
| QString Vehicle::stabilizedFlightMode | ( | ) | const |
Definition at line 2660 of file Vehicle.cc.
|
inline |
Definition at line 569 of file Vehicle.h.
References _standardModes.
| void Vehicle::startCalibration | ( | QGCMAVLink::CalibrationType | calType | ) |
Definition at line 2431 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().
| void Vehicle::startMavlinkLog | ( | ) |
Definition at line 2558 of file Vehicle.cc.
References sendMavCommand().
| void Vehicle::startMission | ( | ) |
Definition at line 1943 of file Vehicle.cc.
| void Vehicle::startTakeoff | ( | ) |
Definition at line 1937 of file Vehicle.cc.
| void Vehicle::startTimerRevertAllowTakeover | ( | ) |
Definition at line 3244 of file Vehicle.cc.
References MAVLinkProtocol::instance(), and requestOperatorControl().
| const QVariantList & Vehicle::staticCameraList | ( | ) | const |
Definition at line 3628 of file Vehicle.cc.
Referenced by mavlinkLogManagerChanged().
| void Vehicle::stopCalibration | ( | bool | showError | ) |
Definition at line 2511 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
| void Vehicle::stopGuidedModeROI | ( | ) |
Definition at line 2058 of file Vehicle.cc.
References capabilityBits(), defaultComponentId(), sendMavCommand(), sendMavCommandInt(), and QGC::showAppMessage().
| void Vehicle::stopMavlinkLog | ( | ) |
Definition at line 2563 of file Vehicle.cc.
References sendMavCommand().
| void Vehicle::stopTrackingFirmwareVehicleTypeChanges | ( | void | ) |
Definition at line 227 of file Vehicle.cc.
References _offlineFirmwareTypeSettingChanged(), _offlineVehicleTypeSettingChanged(), SettingsManager::instance(), and Fact::rawValueChanged().
| bool Vehicle::sub | ( | ) | const |
Definition at line 1793 of file Vehicle.cc.
References QGCMAVLink::isSub(), and vehicleType().
Referenced by APMFirmwarePlugin::isCapable(), and Vehicle().
|
inline |
| QObject * Vehicle::sysStatusSensorInfo | ( | ) |
Definition at line 443 of file Vehicle.cc.
| QString Vehicle::takeControlFlightMode | ( | ) | const |
Definition at line 2645 of file Vehicle.cc.
| FactGroup * Vehicle::temperatureFactGroup | ( | ) |
Definition at line 426 of file Vehicle.cc.
References _temperatureFactGroup, and FactGroup::FactGroup().
| FactGroup * Vehicle::terrainFactGroup | ( | ) |
Definition at line 433 of file Vehicle.cc.
References _terrainFactGroup, and FactGroup::FactGroup().
|
signal |
| const QVariantList & Vehicle::toolIndicators | ( | ) |
Definition at line 2681 of file Vehicle.cc.
|
signal |
| void Vehicle::trackFirmwareVehicleTypeChanges | ( | void | ) |
Definition at line 218 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 3175 of file Vehicle.cc.
References sendMavCommand().
|
inline |
Definition at line 522 of file Vehicle.h.
Referenced by _setUnderway(), APMFirmwarePlugin::startMission(), and underwayChanged().
|
signal |
References underway().
Referenced by _setUnderway().
| int Vehicle::unreadCriticalMessageCount | ( | ) | const |
Definition at line 3464 of file Vehicle.cc.
Referenced by sendControlRequestAllowedChanged().
|
signal |
Referenced by sendControlRequestAllowedChanged().
| int Vehicle::unreadMessageCount | ( | ) | const |
Definition at line 3479 of file Vehicle.cc.
Referenced by sendControlRequestAllowedChanged().
|
signal |
Referenced by sendControlRequestAllowedChanged().
| int Vehicle::unreadWarningMessageCount | ( | ) | const |
Definition at line 3469 of file Vehicle.cc.
Referenced by sendControlRequestAllowedChanged().
|
signal |
Referenced by sendControlRequestAllowedChanged().
| void Vehicle::updateFlightDistance | ( | double | distance | ) |
Definition at line 3006 of file Vehicle.cc.
References VehicleFactGroup::_flightDistanceFact.
|
inline |
Definition at line 450 of file Vehicle.h.
References QGCMAVLink::vehicleClass().
Referenced by vehicleClassInternalName().
| QString Vehicle::vehicleClassInternalName | ( | ) | const |
Definition at line 1818 of file Vehicle.cc.
References vehicleClass(), and QGCMAVLink::vehicleClassToInternalString().
|
inline |
Definition at line 574 of file Vehicle.h.
References _vehicleFactGroup, and FactGroup::FactGroup().
| QString Vehicle::vehicleImageOpaque | ( | ) | const |
Definition at line 2665 of file Vehicle.cc.
| QString Vehicle::vehicleImageOutline | ( | ) | const |
Definition at line 2673 of file Vehicle.cc.
|
inline |
Definition at line 602 of file Vehicle.h.
References _vehicleLinkManager, and VehicleLinkManager.
Referenced by clearAllParamMapRC(), APMFirmwarePlugin::guidedModeChangeAltitude(), RequestMessageState::onWaitEntered(), requestDataStream(), APMFirmwarePlugin::sendGCSMotionReport(), FirmwarePlugin::sendGCSMotionReport(), sendJoystickAuxRcOverrideThreadSafe(), sendJoystickDataThreadSafe(), sendParamMapRC(), setCurrentMissionSequence(), setEstimatorOrigin_SET_GPS_GLOBAL_ORIGIN(), setFlightMode(), startCalibration(), and RTCMMAVLink::vehicleLinkOutputs().
|
inline |
Definition at line 449 of file Vehicle.h.
Referenced by APMFirmwarePlugin::_internalParameterMetaDataFile(), airship(), fixedWing(), GimbalController, multiRotor(), rover(), spacecraft(), FirmwarePlugin::stableFirmwareSettingsKey(), sub(), PX4FirmwarePlugin::supportsNegativeThrust(), Vehicle(), Vehicle(), and vtol().
|
signal |
Referenced by _offlineVehicleTypeSettingChanged(), and VehicleSupports::VehicleSupports().
| QString Vehicle::vehicleTypeString | ( | ) | const |
Definition at line 1813 of file Vehicle.cc.
References QGCMAVLink::mavTypeToString().
|
signal |
| QString Vehicle::vehicleUIDStr | ( | ) |
Definition at line 1040 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 2833 of file Vehicle.cc.
Referenced by FirmwarePlugin::_versionFileDownloadFinished().
| int Vehicle::versionCompare | ( | int | major, |
| int | minor, | ||
| int | patch ) const |
Definition at line 2838 of file Vehicle.cc.
| FactGroup * Vehicle::vibrationFactGroup | ( | ) |
Definition at line 425 of file Vehicle.cc.
References _vibrationFactGroup, and FactGroup::FactGroup().
| void Vehicle::virtualTabletJoystickValue | ( | double | roll, |
| double | pitch, | ||
| double | yaw, | ||
| double | thrust ) |
| bool Vehicle::vtol | ( | ) | const |
Definition at line 1808 of file Vehicle.cc.
References QGCMAVLink::isVTOL(), and vehicleType().
Referenced by QGCCorePlugin::complexMissionItemNames(), APMFirmwarePlugin::isCapable(), PX4FirmwarePlugin::isCapable(), APMFirmwarePlugin::minimumTakeoffAltitudeMeters(), MissionFlightStatusCalculator::recalc(), MissionFlightStatusCalculator::reset(), and APMFirmwarePlugin::startMission().
|
inline |
Definition at line 529 of file Vehicle.h.
Referenced by setVtolInFwdFlight(), and vtolInFwdFlightChanged().
|
signal |
References vtolInFwdFlight().
| FactGroup * Vehicle::windFactGroup | ( | ) |
Definition at line 424 of file Vehicle.cc.
References _windFactGroup, and FactGroup::FactGroup().
| bool Vehicle::xConfigMotors | ( | ) |
Definition at line 1471 of file Vehicle.cc.
|
friend |
Definition at line 110 of file Vehicle.h.
References FactGroupListModel.
Referenced by FactGroupListModel.
|
friend |
Definition at line 117 of file Vehicle.h.
References defaultComponentId(), firmwareType(), GimbalController, and vehicleType().
Referenced by GimbalController, gimbalController(), and logData().
|
friend |
Definition at line 108 of file Vehicle.h.
References InitialConnectStateMachine.
Referenced by InitialConnectStateMachine.
|
friend |
Definition at line 109 of file Vehicle.h.
References VehicleLinkManager.
Referenced by VehicleLinkManager, and vehicleLinkManager().
| Actuators* Vehicle::_actuators = nullptr |
Definition at line 1165 of file Vehicle.h.
Referenced by actuators(), and setActuatorsMetadata().
| float Vehicle::_altitudeTuningOffset = qQNaN() |
Definition at line 1104 of file Vehicle.h.
Referenced by setPIDTuningTelemetryMode().
| BatteryFactGroupListModel* Vehicle::_batteryFactGroupListModel = nullptr |
Definition at line 1154 of file Vehicle.h.
Referenced by batteries().
| VehicleClockFactGroup* Vehicle::_clockFactGroup = nullptr |
Definition at line 1137 of file Vehicle.h.
Referenced by clockFactGroup().
| const QString Vehicle::_clockFactGroupName = QStringLiteral("clock") |
| VehicleDistanceSensorFactGroup* Vehicle::_distanceSensorFactGroup = nullptr |
Definition at line 1139 of file Vehicle.h.
Referenced by distanceSensorFactGroup().
| const QString Vehicle::_distanceSensorFactGroupName = QStringLiteral("distanceSensor") |
| VehicleEFIFactGroup* Vehicle::_efiFactGroup = nullptr |
Definition at line 1145 of file Vehicle.h.
Referenced by efiFactGroup().
| const QString Vehicle::_efiFactGroupName = QStringLiteral("efi") |
| EscStatusFactGroupListModel* Vehicle::_escStatusFactGroupListModel = nullptr |
| VehicleEstimatorStatusFactGroup* Vehicle::_estimatorStatusFactGroup = nullptr |
Definition at line 1142 of file Vehicle.h.
Referenced by estimatorStatusFactGroup().
| const QString Vehicle::_estimatorStatusFactGroupName = QStringLiteral("estimatorStatus") |
| bool Vehicle::_fixed_wing_airspeed_limits_available = false |
Definition at line 1108 of file Vehicle.h.
Referenced by haveFWSpeedLimits().
| FTPManager* Vehicle::_ftpManager = nullptr |
Definition at line 1163 of file Vehicle.h.
Referenced by ftpManager().
| VehicleGeneratorFactGroup* Vehicle::_generatorFactGroup = nullptr |
Definition at line 1144 of file Vehicle.h.
Referenced by generatorFactGroup().
| const QString Vehicle::_generatorFactGroupName = QStringLiteral("generator") |
| GeoFenceManager* Vehicle::_geoFenceManager = nullptr |
Definition at line 1160 of file Vehicle.h.
Referenced by geoFenceManager().
| VehicleGPSFactGroup* Vehicle::_gps2FactGroup = nullptr |
Definition at line 1133 of file Vehicle.h.
Referenced by gps2FactGroup().
| const QString Vehicle::_gps2FactGroupName = QStringLiteral("gps2") |
| VehicleGPSFactGroup* Vehicle::_gpsFactGroup = nullptr |
Definition at line 1132 of file Vehicle.h.
Referenced by gpsFactGroup().
| const QString Vehicle::_gpsFactGroupName = QStringLiteral("gps") |
| VehicleHygrometerFactGroup* Vehicle::_hygrometerFactGroup = nullptr |
Definition at line 1143 of file Vehicle.h.
Referenced by hygrometerFactGroup().
| const QString Vehicle::_hygrometerFactGroupName = QStringLiteral("hygrometer") |
| InitialConnectStateMachine* Vehicle::_initialConnectStateMachine = nullptr |
Definition at line 1164 of file Vehicle.h.
Referenced by isInitialConnectComplete(), and Vehicle().
| VehicleLocalPositionFactGroup* Vehicle::_localPositionFactGroup = nullptr |
Definition at line 1140 of file Vehicle.h.
Referenced by localPositionFactGroup(), and setPIDTuningTelemetryMode().
| const QString Vehicle::_localPositionFactGroupName = QStringLiteral("localPosition") |
| VehicleLocalPositionSetpointFactGroup* Vehicle::_localPositionSetpointFactGroup = nullptr |
Definition at line 1141 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 1159 of file Vehicle.h.
Referenced by missionManager(), and ~Vehicle().
| bool Vehicle::_multirotor_speed_limits_available = false |
Definition at line 1107 of file Vehicle.h.
Referenced by haveMRSpeedLimits().
| RadioStatusFactGroup* Vehicle::_radioStatusFactGroup = nullptr |
Definition at line 1148 of file Vehicle.h.
Referenced by radioStatusFactGroup().
| const QString Vehicle::_radioStatusFactGroupName = QStringLiteral("radioStatus") |
| RallyPointManager* Vehicle::_rallyPointManager = nullptr |
Definition at line 1161 of file Vehicle.h.
Referenced by rallyPointManager().
| RemoteIDManager* Vehicle::_remoteIDManager = nullptr |
Definition at line 1166 of file Vehicle.h.
Referenced by remoteIDManager().
| VehicleRPMFactGroup* Vehicle::_rpmFactGroup = nullptr |
Definition at line 1146 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 1138 of file Vehicle.h.
Referenced by setPIDTuningTelemetryMode(), and setpointFactGroup().
| const QString Vehicle::_setpointFactGroupName = QStringLiteral("setpoint") |
| StandardModes* Vehicle::_standardModes = nullptr |
Definition at line 1167 of file Vehicle.h.
Referenced by standardModes().
| VehicleTemperatureFactGroup* Vehicle::_temperatureFactGroup = nullptr |
Definition at line 1136 of file Vehicle.h.
Referenced by temperatureFactGroup().
| const QString Vehicle::_temperatureFactGroupName = QStringLiteral("temperature") |
| TerrainFactGroup* Vehicle::_terrainFactGroup = nullptr |
Definition at line 1147 of file Vehicle.h.
Referenced by terrainFactGroup().
| const QString Vehicle::_terrainFactGroupName = QStringLiteral("terrain") |
| TerrainProtocolHandler* Vehicle::_terrainProtocolHandler = nullptr |
| TerrainQueryCoordinator* Vehicle::_terrainQueryCoordinator = nullptr |
Definition at line 1170 of file Vehicle.h.
Referenced by doSetHome().
| VehicleFactGroup* Vehicle::_vehicleFactGroup |
Definition at line 1131 of file Vehicle.h.
Referenced by Vehicle(), Vehicle(), and vehicleFactGroup().
| const QString Vehicle::_vehicleFactGroupName = QStringLiteral("vehicle") |
| VehicleLinkManager* Vehicle::_vehicleLinkManager = nullptr |
Definition at line 1162 of file Vehicle.h.
Referenced by closeVehicle(), and vehicleLinkManager().
| VehicleVibrationFactGroup* Vehicle::_vibrationFactGroup = nullptr |
Definition at line 1135 of file Vehicle.h.
Referenced by vibrationFactGroup().
| const QString Vehicle::_vibrationFactGroupName = QStringLiteral("vibration") |
| VehicleWindFactGroup* Vehicle::_windFactGroup = nullptr |
Definition at line 1134 of file Vehicle.h.
Referenced by windFactGroup().
| const QString Vehicle::_windFactGroupName = QStringLiteral("wind") |
|
staticconstexpr |
|
static |
Definition at line 126 of file Vehicle.h.
Referenced by MultiVehicleManager::init(), and Vehicle().
|
static |
Definition at line 127 of file Vehicle.h.
Referenced by MultiVehicleManager::init().