|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <Vehicle.h>
Inheritance diagram for Vehicle:
Collaboration diagram for Vehicle:Classes | |
| struct | MavCmdAckHandlerInfo_s |
Public Slots | |
| void | setVtolInFwdFlight (bool vtolInFwdFlight) |
| void | _offlineFirmwareTypeSettingChanged (QVariant varFirmwareType) |
| void | _offlineVehicleTypeSettingChanged (QVariant varVehicleType) |
| void | sendGripperAction (QGCMAVLink::GripperActions gripperOption) |
Signals | |
| void | coordinateChanged (QGeoCoordinate coordinate) |
| void | mavlinkMessageReceived (const mavlink_message_t &message) |
| void | homePositionChanged (const QGeoCoordinate &homePosition) |
| void | armedPositionChanged () |
| void | armedChanged (bool armed) |
| void | flightModeChanged (const QString &flightMode) |
| void | flyingChanged (bool flying) |
| void | landingChanged (bool landing) |
| void | guidedModeChanged (bool guidedMode) |
| void | inFwdFlightChanged () |
| void | vtolInFwdFlightChanged (bool vtolInFwdFlight) |
| void | prearmErrorChanged (const QString &prearmError) |
| void | soloFirmwareChanged (bool soloFirmware) |
| void | defaultCruiseSpeedChanged (double cruiseSpeed) |
| void | defaultHoverSpeedChanged (double hoverSpeed) |
| void | firmwareTypeChanged () |
| void | vehicleTypeChanged () |
| void | hobbsMeterChanged () |
| void | capabilitiesKnownChanged (bool capabilitiesKnown) |
| void | initialPlanRequestCompleteChanged (bool initialPlanRequestComplete) |
| void | capabilityBitsChanged (uint64_t capabilityBits) |
| void | toolIndicatorsChanged () |
| void | calibrationEventReceived (int uasid, int componentid, int severity, QSharedPointer< events::parser::ParsedEvent > event) |
| void | checkListStateChanged () |
| void | longitudeChanged () |
| void | currentConfigChanged () |
| void | rcRSSIChanged (int rcRSSI) |
| void | telemetryRRSSIChanged (int value) |
| void | telemetryLRSSIChanged (int value) |
| void | telemetryRXErrorsChanged (unsigned int value) |
| void | telemetryFixedChanged (unsigned int value) |
| void | telemetryTXBufferChanged (unsigned int value) |
| void | telemetryLNoiseChanged (int value) |
| void | telemetryRNoiseChanged (int value) |
| void | autoDisarmChanged () |
| void | flightModesChanged () |
| void | sensorsPresentBitsChanged (int sensorsPresentBits) |
| void | sensorsEnabledBitsChanged (int sensorsEnabledBits) |
| void | sensorsHealthBitsChanged (int sensorsHealthBits) |
| void | sensorsUnhealthyBitsChanged (int sensorsUnhealthyBits) |
| void | orbitActiveChanged (bool orbitActive) |
| void | readyToFlyAvailableChanged (bool readyToFlyAvailable) |
| void | readyToFlyChanged (bool readyToFy) |
| void | allSensorsHealthyChanged (bool allSensorsHealthy) |
| void | requiresGpsFixChanged () |
| void | haveMRSpeedLimChanged () |
| void | haveFWSpeedLimChanged () |
| void | hasGripperChanged () |
| void | firmwareVersionChanged () |
| void | firmwareCustomVersionChanged () |
| void | gitHashChanged (QString hash) |
| void | vehicleUIDChanged () |
| void | loadProgressChanged (float value) |
| void | rcChannelsChanged (QVector< int > channelValues) |
| void | remoteControlRSSIChanged (uint8_t rssi) |
| Remote control RSSI changed (0% - 100%) | |
| void | mavlinkLogData (Vehicle *vehicle, uint8_t target_system, uint8_t target_component, uint16_t sequence, uint8_t first_message, QByteArray data, bool acked) |
| void | mavCommandResult (int vehicleId, int targetComponent, int command, int ackResult, int failureCode) |
| void | mavlinkSerialControl (uint8_t device, uint8_t flags, uint16_t timeout, uint32_t baudrate, QByteArray data) |
| void | mavlinkStatusChanged () |
| void | mavlinkSigningChanged () |
| void | isROIEnabledChanged () |
| void | roiCoordChanged (const QGeoCoordinate ¢erCoord) |
| void | initialConnectComplete () |
| void | sensorsParametersResetAck (bool success) |
| void | logEntry (uint32_t time_utc, uint32_t size, uint16_t id, uint16_t num_logs, uint16_t last_log_num) |
| void | logData (uint32_t ofs, uint16_t id, uint8_t count, const uint8_t *data) |
| void | mavlinkMsgIntervalsChanged (uint8_t compid, uint16_t msgId, int32_t rate) |
| void | gcsControlStatusChanged () |
| void | requestOperatorControlReceived (int sysIdRequestingControl, int allowTakeover, int requestTimeoutSecs) |
| void | sendControlRequestAllowedChanged (bool sendControlRequestAllowed) |
| void | textMessageReceived (int sysid, int componentid, int severity, QString text, QString description) |
| void | messagesReceivedChanged () |
| void | messagesSentChanged () |
| void | messagesLostChanged () |
| void | messageTypeChanged () |
| void | messageCountChanged () |
| void | formattedMessagesChanged () |
| void | newFormattedMessage (QString formattedMessage) |
| void | flowImageIndexChanged () |
| void | mavlinkLogManagerChanged () |
| void | cameraManagerChanged () |
Signals inherited from FactGroup | |
| void | factNamesChanged () |
| void | factGroupNamesChanged () |
| void | telemetryAvailableChanged (bool telemetryAvailable) |
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 () | |
| int id READ id | CONSTANT (AutoPilotPlugin *autopilotPlugin MEMBER _autopilotPlugin CONSTANT) 1(QGeoCoordinate coordinate READ coordinate NOTIFY coordinateChanged) 1(QGeoCoordinate homePosition READ homePosition NOTIFY homePositionChanged) 1(QGeoCoordinate armedPosition READ armedPosition NOTIFY armedPositionChanged) 1(bool armed READ armed WRITE setArmedShowError NOTIFY armedChanged) 1(bool autoDisarm READ autoDisarm NOTIFY autoDisarmChanged) 1(bool flightModeSetAvailable READ flightModeSetAvailable CONSTANT) 1(QStringList flightModes READ flightModes NOTIFY flightModesChanged) 1(QString flightMode READ flightMode WRITE setFlightMode NOTIFY flightModeChanged) 1(TrajectoryPoints *trajectoryPoints MEMBER _trajectoryPoints CONSTANT) 1(QmlObjectListModel *cameraTriggerPoints READ cameraTriggerPoints CONSTANT) 1(float latitude READ latitude NOTIFY coordinateChanged) 1(float longitude READ longitude NOTIFY coordinateChanged) 1(int rcRSSI READ rcRSSI NOTIFY rcRSSIChanged) 1(bool px4Firmware READ px4Firmware NOTIFY firmwareTypeChanged) 1(bool apmFirmware READ apmFirmware NOTIFY firmwareTypeChanged) 1(bool soloFirmware READ soloFirmware WRITE setSoloFirmware NOTIFY soloFirmwareChanged) 1(bool genericFirmware READ genericFirmware CONSTANT) 1(uint messagesReceived READ messagesReceived NOTIFY messagesReceivedChanged) 1(uint messagesSent READ messagesSent NOTIFY messagesSentChanged) 1(uint messagesLost READ messagesLost NOTIFY messagesLostChanged) 1(bool airship READ airship NOTIFY vehicleTypeChanged) 1(bool fixedWing READ fixedWing NOTIFY vehicleTypeChanged) 1(bool multiRotor READ multiRotor NOTIFY vehicleTypeChanged) 1(bool vtol READ vtol NOTIFY vehicleTypeChanged) 1(bool rover READ rover NOTIFY vehicleTypeChanged) 1(bool sub READ sub NOTIFY vehicleTypeChanged) 1(VehicleSupports *supports READ supports CONSTANT) 1(QString prearmError READ prearmError WRITE setPrearmError NOTIFY prearmErrorChanged) 1(int motorCount READ motorCount CONSTANT) 1(bool coaxialMotors READ coaxialMotors CONSTANT) 1(bool xConfigMotors READ xConfigMotors CONSTANT) 1(bool isOfflineEditingVehicle READ isOfflineEditingVehicle CONSTANT) 1(QString brandImageIndoor READ brandImageIndoor NOTIFY firmwareTypeChanged) 1(QString brandImageOutdoor READ brandImageOutdoor NOTIFY firmwareTypeChanged) 1(int sensorsPresentBits READ sensorsPresentBits NOTIFY sensorsPresentBitsChanged) 1(int sensorsEnabledBits READ sensorsEnabledBits NOTIFY sensorsEnabledBitsChanged) 1(int sensorsHealthBits READ sensorsHealthBits NOTIFY sensorsHealthBitsChanged) 1(int sensorsUnhealthyBits READ sensorsUnhealthyBits NOTIFY sensorsUnhealthyBitsChanged) 1(QString missionFlightMode READ missionFlightMode CONSTANT) 1(QString pauseFlightMode READ pauseFlightMode CONSTANT) 1(QString rtlFlightMode READ rtlFlightMode CONSTANT) 1(QString smartRTLFlightMode READ smartRTLFlightMode CONSTANT) 1(QString landFlightMode READ landFlightMode CONSTANT) 1(QString takeControlFlightMode READ takeControlFlightMode CONSTANT) 1(QString followFlightMode READ followFlightMode CONSTANT) 1(QString motorDetectionFlightMode READ motorDetectionFlightMode CONSTANT) 1(QString stabilizedFlightMode READ stabilizedFlightMode CONSTANT) 1(QString firmwareTypeString READ firmwareTypeString NOTIFY firmwareTypeChanged) 1(QString vehicleTypeString READ vehicleTypeString NOTIFY vehicleTypeChanged) 1(QString vehicleImageOpaque READ vehicleImageOpaque CONSTANT) 1(QString vehicleImageOutline READ vehicleImageOutline CONSTANT) 1(int telemetryRRSSI READ telemetryRRSSI NOTIFY telemetryRRSSIChanged) 1(int telemetryLRSSI READ telemetryLRSSI NOTIFY telemetryLRSSIChanged) 1(unsigned int telemetryRXErrors READ telemetryRXErrors NOTIFY telemetryRXErrorsChanged) 1(unsigned int telemetryFixed READ telemetryFixed NOTIFY telemetryFixedChanged) 1(unsigned int telemetryTXBuffer READ telemetryTXBuffer NOTIFY telemetryTXBufferChanged) 1(int telemetryLNoise READ telemetryLNoise NOTIFY telemetryLNoiseChanged) 1(int telemetryRNoise READ telemetryRNoise NOTIFY telemetryRNoiseChanged) 1(QVariantList toolIndicators READ toolIndicators NOTIFY toolIndicatorsChanged) 1(bool initialPlanRequestComplete READ initialPlanRequestComplete NOTIFY initialPlanRequestCompleteChanged) 1(QString hobbsMeter READ hobbsMeter NOTIFY hobbsMeterChanged) 1(bool inFwdFlight READ inFwdFlight NOTIFY inFwdFlightChanged) 1(bool vtolInFwdFlight READ vtolInFwdFlight WRITE setVtolInFwdFlight NOTIFY vtolInFwdFlightChanged) 1(quint64 mavlinkSentCount READ mavlinkSentCount NOTIFY mavlinkStatusChanged) 1(quint64 mavlinkReceivedCount READ mavlinkReceivedCount NOTIFY mavlinkStatusChanged) 1(quint64 mavlinkLossCount READ mavlinkLossCount NOTIFY mavlinkStatusChanged) 1(float mavlinkLossPercent READ mavlinkLossPercent NOTIFY mavlinkStatusChanged) 1(GimbalController *gimbalController READ gimbalController CONSTANT) 1(bool hasGripper READ hasGripper NOTIFY hasGripperChanged) 1(bool isROIEnabled READ isROIEnabled NOTIFY isROIEnabledChanged) 1(CheckList checkListState READ checkListState WRITE setCheckListState NOTIFY checkListStateChanged) 1(bool readyToFlyAvailable READ readyToFlyAvailable NOTIFY readyToFlyAvailableChanged) 1(bool readyToFly READ readyToFly NOTIFY readyToFlyChanged) 1(QObject *sysStatusSensorInfo READ sysStatusSensorInfo CONSTANT) 1(bool allSensorsHealthy READ allSensorsHealthy NOTIFY allSensorsHealthyChanged) 1(bool requiresGpsFix READ requiresGpsFix NOTIFY requiresGpsFixChanged) 1(double loadProgress READ loadProgress NOTIFY loadProgressChanged) 1(bool initialConnectComplete READ isInitialConnectComplete NOTIFY initialConnectComplete) 1(bool orbitActive READ orbitActive NOTIFY orbitActiveChanged) 1(QGCMapCircle *orbitMapCircle READ orbitMapCircle CONSTANT) 1(bool flying READ flying NOTIFY flyingChanged) 1(bool landing READ landing NOTIFY landingChanged) 1(bool guidedMode READ guidedMode WRITE setGuidedMode NOTIFY guidedModeChanged) 1(QString gotoFlightMode READ gotoFlightMode CONSTANT) 1(bool haveMRSpeedLimits READ haveMRSpeedLimits NOTIFY haveMRSpeedLimChanged) 1(bool haveFWSpeedLimits READ haveFWSpeedLimits NOTIFY haveFWSpeedLimChanged) 1(ParameterManager *parameterManager READ parameterManager CONSTANT) 1(VehicleLinkManager *vehicleLinkManager READ vehicleLinkManager CONSTANT) 1(VehicleObjectAvoidance *objectAvoidance READ objectAvoidance CONSTANT) 1(Autotune *autotune READ autotune CONSTANT) 1(RemoteIDManager *remoteIDManager READ remoteIDManager CONSTANT) 1(FactGroup *vehicle READ vehicleFactGroup CONSTANT) 1(FactGroup *gps READ gpsFactGroup CONSTANT) 1(FactGroup *gps2 READ gps2FactGroup CONSTANT) 1(FactGroup *gpsAggregate READ gpsAggregateFactGroup CONSTANT) 1(FactGroup *wind READ windFactGroup CONSTANT) 1(FactGroup *vibration READ vibrationFactGroup CONSTANT) 1(FactGroup *temperature READ temperatureFactGroup CONSTANT) 1(FactGroup *clock READ clockFactGroup CONSTANT) 1(FactGroup *setpoint READ setpointFactGroup CONSTANT) 1(FactGroup *estimatorStatus READ estimatorStatusFactGroup CONSTANT) 1(FactGroup *terrain READ terrainFactGroup CONSTANT) 1(FactGroup *distanceSensors READ distanceSensorFactGroup CONSTANT) 1(FactGroup *localPosition READ localPositionFactGroup CONSTANT) 1(FactGroup *localPositionSetpoint READ localPositionSetpointFactGroup CONSTANT) 1(FactGroup *hygrometer READ hygrometerFactGroup CONSTANT) 1(FactGroup *generator READ generatorFactGroup CONSTANT) 1(FactGroup *efi READ efiFactGroup CONSTANT) 1(Actuators *actuators READ actuators CONSTANT) 1(HealthAndArmingCheckReport *healthAndArmingCheckReport READ healthAndArmingCheckReport CONSTANT) 1(QmlObjectListModel *batteries READ batteries CONSTANT) 1(QmlObjectListModel *escs READ escs CONSTANT) 1(int firmwareMajorVersion READ firmwareMajorVersion NOTIFY firmwareVersionChanged) 1(int firmwareMinorVersion READ firmwareMinorVersion NOTIFY firmwareVersionChanged) 1(int firmwarePatchVersion READ firmwarePatchVersion NOTIFY firmwareVersionChanged) 1(int firmwareVersionType READ firmwareVersionType NOTIFY firmwareVersionChanged) 1(QString firmwareVersionTypeString READ firmwareVersionTypeString NOTIFY firmwareVersionChanged) 1(int firmwareCustomMajorVersion READ firmwareCustomMajorVersion NOTIFY firmwareCustomVersionChanged) 1(int firmwareCustomMinorVersion READ firmwareCustomMinorVersion NOTIFY firmwareCustomVersionChanged) 1(int firmwareCustomPatchVersion READ firmwareCustomPatchVersion NOTIFY firmwareCustomVersionChanged) 1(QString gitHash READ gitHash NOTIFY gitHashChanged) 1(quint64 vehicleUID READ vehicleUID NOTIFY vehicleUIDChanged) 1(QString vehicleUIDStr READ vehicleUIDStr NOTIFY vehicleUIDChanged) 1(bool mavlinkSigning READ mavlinkSigning NOTIFY mavlinkSigningChanged) 1 void resetCounters() |
| < Combination of enabled and health | |
| void | virtualTabletJoystickValue (double roll, double pitch, double yaw, double thrust) |
| void | guidedModeRTL (bool smartRTL) |
| Command vehicle to return to launch. | |
| void | guidedModeLand () |
| Command vehicle to land at current location. | |
| void | guidedModeTakeoff (double altitudeRelative) |
| Command vehicle to takeoff from current location. | |
| double | minimumTakeoffAltitudeMeters () |
| double | maximumHorizontalSpeedMultirotor () |
| double | maximumEquivalentAirspeed () |
| double | minimumEquivalentAirspeed () |
| void | guidedModeGotoLocation (const QGeoCoordinate &gotoCoord, double forwardFlightLoiterRadius=0.0f) |
| Command vehicle to move to specified location (altitude is ignored) | |
| void | guidedModeChangeAltitude (double altitudeChange, bool pauseVehicle) |
| void | guidedModeChangeHeading (const QGeoCoordinate &headingCoord) |
| void | guidedModeChangeGroundSpeedMetersSecond (double groundspeed) |
| void | guidedModeChangeEquivalentAirspeedMetersSecond (double airspeed) |
| void | guidedModeOrbit (const QGeoCoordinate ¢erCoord, double radius, double amslAltitude) |
| void | guidedModeROI (const QGeoCoordinate ¢erCoord) |
| void | stopGuidedModeROI () |
| void | pauseVehicle () |
| void | emergencyStop () |
| Command vehicle to kill all motors no matter what state. | |
| void | abortLanding (double climbOutAltitude) |
| Command vehicle to abort landing. | |
| void | landingGearDeploy () |
| Command vichecle to deploy landing gear. | |
| void | landingGearRetract () |
| Command vichecle to retract landing gear. | |
| void | startTakeoff () |
| void | startMission () |
| void | setCurrentMissionSequence (int seq) |
| Alter the current mission item on the vehicle. | |
| void | rebootVehicle () |
| Reboot vehicle. | |
| void | sendPlan (QString planFile) |
| void | setEstimatorOrigin (const QGeoCoordinate ¢erCoord) |
| int | versionCompare (const QString &compare) const |
| Used to check if running current version is equal or higher than the one being compared. | |
| int | versionCompare (int major, int minor, int patch) const |
| void | motorTest (int motor, int percent, int timeoutSecs, bool showError) |
| void | setPIDTuningTelemetryMode (PIDTuningTelemetryMode mode) |
| void | forceArm () |
| void | sendParamMapRC (const QString ¶mName, double scale, double centerValue, int tuningID, double minValue, double maxValue) |
| Sends PARAM_MAP_RC message to vehicle. | |
| void | clearAllParamMapRC (void) |
| Clears all PARAM_MAP_RC settings from vehicle. | |
| void | closeVehicle (void) |
| Removes the vehicle from the system. | |
| void | triggerSimpleCamera (void) |
| Trigger camera using MAV_CMD_DO_DIGICAM_CONTROL command. | |
| void | doSetHome (const QGeoCoordinate &coord) |
| Set home from flight map coordinate. | |
| void | sendSetupSigning () |
| 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) |
| int | id () const |
| int | compId () const |
| MAV_AUTOPILOT | firmwareType () const |
| MAV_TYPE | vehicleType () const |
| QGCMAVLink::VehicleClass_t | vehicleClass (void) const |
| 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 () |
| int | rcRSSI () const |
| bool | px4Firmware () const |
| bool | apmFirmware () const |
| bool | genericFirmware () const |
| uint | messagesReceived () const |
| uint | messagesSent () const |
| uint | messagesLost () const |
| bool | flying () const |
| bool | landing () const |
| bool | guidedMode () const |
| bool | inFwdFlight () const |
| bool | vtolInFwdFlight () const |
| uint8_t | baseMode () const |
| uint32_t | customMode () const |
| bool | isOfflineEditingVehicle () const |
| QString | brandImageIndoor () const |
| QString | brandImageOutdoor () 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 |
| int | telemetryRRSSI () const |
| int | telemetryLRSSI () const |
| unsigned int | telemetryRXErrors () const |
| unsigned int | telemetryFixed () const |
| unsigned int | telemetryTXBuffer () const |
| int | telemetryLNoise () const |
| int | telemetryRNoise () const |
| bool | autoDisarm () |
| bool | orbitActive () const |
| QGCMapCircle * | orbitMapCircle () |
| bool | readyToFlyAvailable () const |
| bool | readyToFly () const |
| bool | allSensorsHealthy () const |
| QObject * | sysStatusSensorInfo () |
| bool | requiresGpsFix () const |
| bool | hilMode () const |
| Actuators * | actuators () const |
| bool | mavlinkSigning () const |
| void | startCalibration (QGCMAVLink::CalibrationType calType) |
| void | stopCalibration (bool showError) |
| void | startUAVCANBusConfig (void) |
| void | stopUAVCANBusConfig (void) |
| FactGroup * | vehicleFactGroup () |
| FactGroup * | gpsFactGroup () |
| FactGroup * | gps2FactGroup () |
| FactGroup * | gpsAggregateFactGroup () |
| 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 * | 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. | |
| 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 | 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 | _setFlying (bool flying) |
| 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. | |
| CheckList | checkListState () |
| void | setCheckListState (CheckList cl) |
| double | loadProgress () const |
| void | setEventsMetadata (uint8_t compid, const QString &metadataJsonFileName) |
| void | setActuatorsMetadata (uint8_t compid, const QString &metadataJsonFileName) |
| HealthAndArmingCheckReport * | healthAndArmingCheckReport () |
| GimbalController * | gimbalController () |
| void | _sendMavCommandWorker (bool commandInt, bool showError, const MavCmdAckHandlerInfo_t *ackHandlerInfo, int compId, MAV_CMD command, MAV_FRAME frame, float param1, float param2, float param3, float param4, double param5, double param6, float param7) |
| void | _sendMavCommandFromList (int index) |
| int | _findMavCommandListEntryIndex (int targetCompId, MAV_CMD command) |
| bool | _sendMavCommandShouldRetry (MAV_CMD command) |
| bool | _commandCanBeDuplicated (MAV_CMD command) |
| int32_t | getMessageRate (uint8_t compId, uint16_t msgId) |
| void | setMessageRate (uint8_t compId, uint16_t msgId, int32_t rate) |
| void | flashBootloader () |
| void | motorInterlock (bool enable) |
| Command vehicle to Enable/Disable Motor Interlock. | |
| void | startTimerRevertAllowTakeover () |
| void | requestOperatorControl (bool allowOverride, int requestTimeoutSecs=0) |
| uint32_t | flowImageIndex () const |
| MAVLinkLogManager * | mavlinkLogManager () 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 const int | versionNotSetValue = -1 |
| static constexpr int | kTestMavCommandAckTimeoutMs = 500 |
| static constexpr int | kTestMavCommandMaxWaitMs = kTestMavCommandAckTimeoutMs * _mavCommandMaxRetryCount * 2 |
| Maximum wait time for mav command in unit tests (all retries + overhead) | |
Friends | |
| class | InitialConnectStateMachine |
| class | VehicleLinkManager |
| class | FactGroupListModel |
| class | GimbalController |
| typedef struct Vehicle::MavCmdAckHandlerInfo_s Vehicle::MavCmdAckHandlerInfo_t |
| typedef void(* Vehicle::MavCmdProgressHandler) (void *progressHandlerData, int compId, const mavlink_command_ack_t &ack) |
| typedef void(* Vehicle::MavCmdResultHandler) (void *resultHandlerData, int compId, const mavlink_command_ack_t &ack, MavCmdResultFailureCode_t failureCode) |
Callback for sendMavCommandWithHandler which handles all acks which are not MAV_RESULT_IN_PROGRESS
| resultHandlerData | Opaque data passed in to sendMavCommand call |
| ack | Received COMMAND_ACK |
| failureCode | Failure reason. If not MavCmdResultCommandResultOnly only ack.result == MAV_RESULT_FAILED is valid. |
| typedef void(* Vehicle::RequestMessageResultHandler) (void *resultHandlerData, MAV_RESULT commandResult, RequestMessageResultHandlerFailureCode_t failureCode, const mavlink_message_t &message) |
| enum Vehicle::CheckList |
| Vehicle::Vehicle | ( | LinkInterface * | link, |
| int | vehicleId, | ||
| int | defaultComponentId, | ||
| MAV_AUTOPILOT | firmwareType, | ||
| MAV_TYPE | vehicleType, | ||
| QObject * | parent = nullptr |
||
| ) |
Definition at line 74 of file Vehicle.cc.
References _altitudeAboveTerrQueryTimer, _initialConnectStateMachine, MultiVehicleManager::activeVehicleChanged(), FirmwarePlugin::adjustMetaData(), armedChanged(), FirmwarePlugin::autopilotPlugin(), flightModeChanged(), flying(), flyingChanged(), FirmwarePlugin::initializeVehicle(), MAVLinkProtocol::instance(), QGCDeviceInfo::QGCPressure::instance(), VideoSettings::lowLatencyMode(), MAVLinkProtocol::mavlinkMessageStatus(), MAVLinkProtocol::messageReceived(), MultiVehicleManager::parameterReadyVehicleAvailableChanged(), qgcApp, remoteControlRSSIChanged(), setInitialGCSPressure(), setInitialGCSTemperature(), InitialConnectStateMachine::start(), sub(), vehicleType(), VideoSettings::videoDisabled, VideoSettings::videoSource(), and VideoSettings::videoSourceUDPH264.
| Vehicle::Vehicle | ( | MAV_AUTOPILOT | firmwareType, |
| MAV_TYPE | vehicleType, | ||
| QObject * | parent = nullptr |
||
| ) |
Definition at line 174 of file Vehicle.cc.
References _offlineFirmwareTypeSettingChanged(), FirmwarePlugin::initializeVehicle(), MAV_AUTOPILOT_TRACK, Fact::rawValueChanged(), and trackFirmwareVehicleTypeChanges().
| Vehicle::~Vehicle | ( | ) |
Definition at line 351 of file Vehicle.cc.
References _missionManager.
| bool Vehicle::_commandCanBeDuplicated | ( | MAV_CMD | command | ) |
Definition at line 2522 of file Vehicle.cc.
Referenced by _sendMavCommandWorker().
| int Vehicle::_findMavCommandListEntryIndex | ( | int | targetCompId, |
| MAV_CMD | command | ||
| ) |
Definition at line 2467 of file Vehicle.cc.
Referenced by isMavCommandPending().
|
slot |
Definition at line 420 of file Vehicle.cc.
References capabilityBitsChanged(), FirmwarePluginManager::firmwarePluginForAutopilot(), firmwareTypeChanged(), and FirmwarePluginManager::instance().
Referenced by stopTrackingFirmwareVehicleTypeChanges(), trackFirmwareVehicleTypeChanges(), and Vehicle().
|
slot |
Definition at line 433 of file Vehicle.cc.
References vehicleTypeChanged().
Referenced by stopTrackingFirmwareVehicleTypeChanges(), and trackFirmwareVehicleTypeChanges().
| void Vehicle::_sendMavCommandFromList | ( | int | index | ) |
Definition at line 2620 of file Vehicle.cc.
References MissionCommandTree::friendlyName(), MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), MissionCommandTree::instance(), MavCmdResultFailureNoResponseToCommand, mavCommandResult(), VehicleLinkManager::primaryLink(), px4Firmware(), qgcApp, MissionCommandTree::rawName(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
Referenced by _sendMavCommandWorker().
| bool Vehicle::_sendMavCommandShouldRetry | ( | MAV_CMD | command | ) |
Definition at line 2491 of file Vehicle.cc.
References MockLink::MAV_CMD_MOCKLINK_ALWAYS_RESULT_ACCEPTED, MockLink::MAV_CMD_MOCKLINK_ALWAYS_RESULT_FAILED, MockLink::MAV_CMD_MOCKLINK_NO_RESPONSE, MockLink::MAV_CMD_MOCKLINK_SECOND_ATTEMPT_RESULT_ACCEPTED, and MockLink::MAV_CMD_MOCKLINK_SECOND_ATTEMPT_RESULT_FAILED.
Referenced by _sendMavCommandWorker().
| void Vehicle::_sendMavCommandWorker | ( | bool | commandInt, |
| bool | showError, | ||
| const MavCmdAckHandlerInfo_t * | ackHandlerInfo, | ||
| int | compId, | ||
| MAV_CMD | command, | ||
| MAV_FRAME | frame, | ||
| float | param1, | ||
| float | param2, | ||
| float | param3, | ||
| float | param4, | ||
| double | param5, | ||
| double | param6, | ||
| float | param7 | ||
| ) |
| compId |
|
Definition at line 2537 of file Vehicle.cc.
References _commandCanBeDuplicated(), _sendMavCommandFromList(), _sendMavCommandShouldRetry(), MissionCommandTree::instance(), isMavCommandPending(), MavCmdResultCommandResultOnly, MavCmdResultFailureDuplicateCommand, MavCmdResultFailureNoResponseToCommand, mavCommandResult(), VehicleLinkManager::primaryLink(), qgcApp, MissionCommandTree::rawName(), Vehicle::MavCmdAckHandlerInfo_s::resultHandler, Vehicle::MavCmdAckHandlerInfo_s::resultHandlerData, and vehicleLinkManager().
Referenced by sendMavCommand(), sendMavCommandInt(), sendMavCommandIntWithHandler(), and sendMavCommandWithHandler().
| void Vehicle::_setFlying | ( | bool | flying | ) |
Definition at line 1910 of file Vehicle.cc.
References flying(), and flyingChanged().
| void Vehicle::_setHomePosition | ( | QGeoCoordinate & | homeCoord | ) |
Definition at line 1079 of file Vehicle.cc.
References homePositionChanged().
Referenced by PlanManager::_handleMissionItem().
| void Vehicle::_setLanding | ( | bool | landing | ) |
Definition at line 1918 of file Vehicle.cc.
References armed(), landing(), and landingChanged().
| void Vehicle::abortLanding | ( | double | climbOutAltitude | ) |
Command vehicle to abort landing.
Definition at line 2219 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
|
inline |
Definition at line 544 of file Vehicle.h.
Referenced by PX4AutoPilotPlugin::vehicleComponents().
| bool Vehicle::airship | ( | ) | const |
Definition at line 1839 of file Vehicle.cc.
References QGCMAVLink::isAirship(), and vehicleType().
Referenced by SensorsComponent::SensorsComponent(), SensorsComponent::setupComplete(), and SensorsComponent::summaryQmlSource().
|
signal |
|
inline |
Definition at line 496 of file Vehicle.h.
Referenced by LandingComplexItem::_createDoLandStartItem(), PlanManager::_handleMissionAck(), PlanManager::_handleMissionItem(), LandingComplexItem::_init(), LandingComplexItem::_scanForItem(), flashBootloader(), motorInterlock(), and GeoFenceController::paramCircularFence().
|
inline |
Definition at line 449 of file Vehicle.h.
Referenced by FirmwarePlugin::_armVehicleAndValidate(), _setLanding(), MissionController::sendToVehiclePreCheck(), setArmed(), APMFirmwarePlugin::startMission(), and APMFirmwarePlugin::startTakeoff().
|
signal |
Referenced by Vehicle().
|
signal |
| bool Vehicle::autoDisarm | ( | ) |
Definition at line 3517 of file Vehicle.cc.
References FirmwarePlugin::autoDisarmParameter(), and ParameterManager::defaultComponentId.
|
signal |
|
inline |
Provides access to AutoPilotPlugin for this vehicle.
|
inline |
| QString Vehicle::brandImageIndoor | ( | ) | const |
Definition at line 3341 of file Vehicle.cc.
References FirmwarePlugin::brandImageIndoor().
| QString Vehicle::brandImageOutdoor | ( | ) | const |
Definition at line 3346 of file Vehicle.cc.
References FirmwarePlugin::brandImageOutdoor().
|
signal |
|
signal |
|
inline |
|
signal |
|
inline |
Definition at line 738 of file Vehicle.h.
Referenced by PX4FirmwarePlugin::guidedModeGotoLocation(), guidedModeOrbit(), stopGuidedModeROI(), GeoFenceManager::supported(), RallyPointManager::supported(), GeoFenceController::supported(), and RallyPointController::supported().
|
signal |
Referenced by _offlineFirmwareTypeSettingChanged().
|
signal |
| void Vehicle::clearAllParamMapRC | ( | void | ) |
Clears all PARAM_MAP_RC settings from vehicle.
Definition at line 3964 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
|
inline |
| bool Vehicle::coaxialMotors | ( | ) |
Definition at line 1500 of file Vehicle.cc.
References FirmwarePlugin::multiRotorCoaxialMotors().
|
inline |
Definition at line 426 of file Vehicle.h.
Referenced by VehicleFactGroup::_handleAttitude(), VehicleFactGroup::_handleAttitudeQuaternion(), VehicleObjectAvoidance::enabled(), getMessageRate(), RemoteIDManager::RemoteIDManager(), requestMessage(), sendCommand(), sendMavCommand(), sendMavCommandDelayed(), sendMavCommandInt(), sendMavCommandIntWithHandler(), sendMavCommandWithHandler(), sendMavCommandWithLambdaFallback(), setMessageRate(), VehicleObjectAvoidance::stop(), and PX4AutoPilotPlugin::vehicleComponents().
|
inline |
| int id READ id Vehicle::CONSTANT | ( | AutoPilotPlugin *autopilotPlugin MEMBER _autopilotPlugin | CONSTANT | ) |
< Combination of enabled and health
< true: readyToFly signalling is available on this vehicle < Vehicle is flying < 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
|
inline |
Definition at line 412 of file Vehicle.h.
Referenced by APMFirmwarePlugin::guidedModeChangeHeading(), PX4FirmwarePlugin::guidedModeChangeHeading(), and guidedModeGotoLocation().
|
signal |
Referenced by TrajectoryPoints::start(), and TrajectoryPoints::stop().
|
signal |
|
inline |
Definition at line 711 of file Vehicle.h.
Referenced by PX4FirmwarePlugin::_changeAltAfterPause(), FactPanelController::_reportMissingParameter(), abortLanding(), LogDownloadController::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(), sendSetupSigning(), setCurrentMissionSequence(), setFlightMode(), setOfflineEditingDefaultComponentId(), startCalibration(), APMFirmwarePlugin::startMission(), startUAVCANBusConfig(), stopCalibration(), stopGuidedModeROI(), stopUAVCANBusConfig(), and MissionManager::writeArduPilotGuidedMissionItem().
|
inline |
Definition at line 524 of file Vehicle.h.
Referenced by MissionController::save(), and SpeedSection::SpeedSection().
|
signal |
|
inline |
Definition at line 525 of file Vehicle.h.
Referenced by 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.
| void Vehicle::doSetHome | ( | const QGeoCoordinate & | coord | ) |
Set home from flight map coordinate.
Definition at line 3770 of file Vehicle.cc.
References _currentDoSetHomeTerrainAtCoordinateQuery, _doSetHomeCoordinate, TerrainAtCoordinateQuery::requestData(), and TerrainAtCoordinateQuery::terrainDataReceived().
| void Vehicle::emergencyStop | ( | ) |
Command vehicle to kill all motors no matter what state.
Definition at line 2244 of file Vehicle.cc.
References sendMavCommand().
|
inline |
| QVariant Vehicle::expandedToolbarIndicatorSource | ( | const QString & | indicatorName | ) |
Definition at line 4340 of file Vehicle.cc.
References FirmwarePlugin::expandedToolbarIndicatorSource().
|
signal |
Referenced by setFirmwareCustomVersion().
|
inline |
Definition at line 690 of file Vehicle.h.
Referenced by APMFirmwarePlugin::_internalParameterMetaDataFile(), FirmwarePlugin::_versionFileDownloadFinished(), SensorsComponent::SensorsComponent(), SensorsComponent::setupComplete(), FirmwarePlugin::versionCompare(), and ParameterManager::writeParametersToStream().
|
inline |
Definition at line 691 of file Vehicle.h.
Referenced by APMFirmwarePlugin::_internalParameterMetaDataFile(), FirmwarePlugin::_versionFileDownloadFinished(), SensorsComponent::SensorsComponent(), SensorsComponent::setupComplete(), FirmwarePlugin::versionCompare(), and ParameterManager::writeParametersToStream().
|
inline |
Definition at line 692 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 444 of file Vehicle.h.
Referenced by PlanManager::_handleMissionItem(), CameraSection::cameraModeSupported(), VehicleSupports::changeHeading(), MissionController::currentMissionIndex(), CompInfoParam::factMetaDataForName(), MissionManager::generateResumeMission(), StandardModes::gotMessage(), VehicleSupports::guidedMode(), VehicleSupports::guidedTakeoffWithAltitude(), VehicleSupports::guidedTakeoffWithoutAltitude(), MissionController::insertCancelROIMissionItem(), MissionController::insertROIMissionItem(), VehicleSupports::jsButton(), VehicleSupports::motorInterference(), VehicleSupports::negativeThrust(), VehicleSupports::orbitMode(), VehicleSupports::pauseVehicle(), VehicleSupports::radio(), MissionController::resumeMission(), MissionController::resumeMissionIndex(), VehicleSupports::roiMode(), VehicleSupports::smartRTL(), VehicleSupports::takeoffMissionCommand(), APMAutoPilotPlugin::vehicleComponents(), and PlanManager::writeMissionItems().
|
inline |
Definition at line 726 of file Vehicle.h.
Referenced by _MAV_CMD_DO_REPOSITION_ResultHandler(), _sendMavCommandWithLambdaFallbackHandler(), APMFirmwarePlugin::adjustIncomingMavlinkMessage(), APMFirmwarePlugin::guidedModeGotoLocation(), APMFirmwarePlugin::initializeStreamRates(), sendMavCommandWithLambdaFallback(), and setFirmwarePluginInstanceData().
|
inline |
Definition at line 427 of file Vehicle.h.
Referenced by MissionController::save(), and MissionController::sendToVehiclePreCheck().
|
signal |
Referenced by _offlineFirmwareTypeSettingChanged(), and VehicleSupports::VehicleSupports().
| QString Vehicle::firmwareTypeString | ( | ) | const |
Definition at line 451 of file Vehicle.cc.
References QGCMAVLink::firmwareClassToString().
Referenced by ParameterManager::writeParametersToStream().
|
signal |
Referenced by setFirmwareVersion().
|
inline |
Definition at line 693 of file Vehicle.h.
Referenced by FirmwarePlugin::_versionFileDownloadFinished().
| QString Vehicle::firmwareVersionTypeString | ( | ) | const |
Definition at line 3182 of file Vehicle.cc.
References QGCMAVLink::firmwareVersionTypeToString().
Referenced by ParameterManager::writeParametersToStream().
| bool Vehicle::fixedWing | ( | ) | const |
Definition at line 1844 of file Vehicle.cc.
References QGCMAVLink::isFixedWing(), and vehicleType().
Referenced by PX4FirmwarePlugin::flightModes(), inFwdFlight(), MissionController::insertLandItem(), APMFirmwarePlugin::isCapable(), PX4FirmwarePlugin::isCapable(), SpeedSection::scanForSection(), SensorsComponent::SensorsComponent(), SpeedSection::setAvailable(), SensorsComponent::setupComplete(), SimpleMissionItem::showLoiterRadius(), APMFirmwarePlugin::startMission(), and SensorsComponent::summaryQmlSource().
| void Vehicle::flashBootloader | ( | ) |
Definition at line 4383 of file Vehicle.cc.
References apmFirmware(), defaultComponentId(), and sendMavCommand().
| QString Vehicle::flightMode | ( | ) | const |
Definition at line 1549 of file Vehicle.cc.
References FirmwarePlugin::flightMode().
Referenced by FirmwarePlugin::_setFlightModeAndValidate(), APMFirmwarePlugin::isGuidedMode(), PX4FirmwarePlugin::isGuidedMode(), MissionController::sendToVehiclePreCheck(), and setFlightMode().
|
signal |
Referenced by Vehicle().
| QStringList Vehicle::flightModes | ( | ) |
Definition at line 1543 of file Vehicle.cc.
References flightModes(), and FirmwarePlugin::flightModes().
Referenced by flightModes().
|
signal |
| bool Vehicle::flightModeSetAvailable | ( | ) |
Definition at line 1538 of file Vehicle.cc.
References FirmwarePlugin::isCapable(), and FirmwarePlugin::SetFlightModeCapability.
| uint32_t Vehicle::flowImageIndex | ( | ) | const |
Definition at line 4531 of file Vehicle.cc.
References ImageProtocolManager::flowImageIndex().
|
signal |
|
inline |
Definition at line 501 of file Vehicle.h.
Referenced by _setFlying(), APMFirmwarePlugin::startCompensatingBaro(), APMFirmwarePlugin::startMission(), APMFirmwarePlugin::startTakeoff(), and Vehicle().
|
signal |
Referenced by _setFlying(), and Vehicle().
| QString Vehicle::followFlightMode | ( | ) | const |
Definition at line 3466 of file Vehicle.cc.
References FirmwarePlugin::followFlightMode().
| void Vehicle::forceArm | ( | void | ) |
Definition at line 1529 of file Vehicle.cc.
References sendMavCommand().
| void Vehicle::forceInitialPlanRequestComplete | ( | ) |
Definition at line 3610 of file Vehicle.cc.
References initialPlanRequestCompleteChanged().
|
signal |
|
inline |
Definition at line 581 of file Vehicle.h.
Referenced by ParameterManager::refreshAllParameters().
|
signal |
|
inline |
|
inline |
Definition at line 415 of file Vehicle.h.
Referenced by APMFirmwarePlugin::startCompensatingBaro().
|
inline |
Definition at line 416 of file Vehicle.h.
Referenced by APMFirmwarePlugin::startCompensatingBaro().
| int32_t Vehicle::getMessageRate | ( | uint8_t | compId, |
| uint16_t | msgId | ||
| ) |
Definition at line 4291 of file Vehicle.cc.
References compId().
|
inline |
|
inline |
Definition at line 704 of file Vehicle.h.
Referenced by ParameterManager::writeParametersToStream().
|
signal |
| QString Vehicle::gotoFlightMode | ( | ) | const |
Definition at line 1926 of file Vehicle.cc.
References FirmwarePlugin::gotoFlightMode().
| bool Vehicle::guidedMode | ( | ) | const |
Definition at line 2228 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 2013 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeChangeAltitude(), pauseVehicle(), and qgcApp.
|
signal |
| void Vehicle::guidedModeChangeEquivalentAirspeedMetersSecond | ( | double | airspeed | ) |
Command vehicle to change equivalent airspeed
| airspeed | Target equivalent airspeed |
Definition at line 2033 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), and qgcApp.
| void Vehicle::guidedModeChangeGroundSpeedMetersSecond | ( | double | groundspeed | ) |
Command vehicle to change groundspeed
| groundspeed | Target horizontal groundspeed |
Definition at line 2023 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), and qgcApp.
| void Vehicle::guidedModeChangeHeading | ( | const QGeoCoordinate & | headingCoord | ) |
Command vehicle to change yaw
| coordinate | to rotate towards |
Definition at line 2200 of file Vehicle.cc.
References VehicleSupports::changeHeading(), FirmwarePlugin::guidedModeChangeHeading(), and qgcApp.
| void Vehicle::guidedModeGotoLocation | ( | const QGeoCoordinate & | gotoCoord, |
| double | forwardFlightLoiterRadius = 0.0f |
||
| ) |
Command vehicle to move to specified location (altitude is ignored)
Definition at line 1996 of file Vehicle.cc.
References FactMetaData::appSettingsHorizontalDistanceUnitsString(), coordinate(), guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeGotoLocation(), FlyViewSettings::maxGoToLocationDistance(), FactMetaData::metersToAppSettingsHorizontalDistanceUnits(), and qgcApp.
| void Vehicle::guidedModeLand | ( | ) |
Command vehicle to land at current location.
Definition at line 1940 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeLand(), and qgcApp.
| 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 2042 of file Vehicle.cc.
References capabilityBits(), defaultComponentId(), VehicleSupports::orbitMode(), qgcApp, sendMavCommand(), and sendMavCommandInt().
| void Vehicle::guidedModeROI | ( | const QGeoCoordinate & | centerCoord | ) |
Command vehicle to keep given point as ROI
| centerCoord | ROI coordinates |
Definition at line 2074 of file Vehicle.cc.
References _roiCoordinate, _roiTerrainAtCoordinateQuery, px4Firmware(), qgcApp, TerrainAtCoordinateQuery::requestData(), roiCoordChanged(), VehicleSupports::roiMode(), and TerrainAtCoordinateQuery::terrainDataReceived().
| void Vehicle::guidedModeRTL | ( | bool | smartRTL | ) |
Command vehicle to return to launch.
Definition at line 1931 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeRTL(), and qgcApp.
| void Vehicle::guidedModeTakeoff | ( | double | altitudeRelative | ) |
Command vehicle to takeoff from current location.
Definition at line 1949 of file Vehicle.cc.
References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeTakeoff(), and qgcApp.
| bool Vehicle::hasGripper | ( | ) | const |
Definition at line 1980 of file Vehicle.cc.
References FirmwarePlugin::hasGripper().
|
signal |
|
signal |
|
signal |
|
inline |
|
inline |
Definition at line 543 of file Vehicle.h.
Referenced by PX4AutoPilotPlugin::vehicleComponents().
| QString Vehicle::hobbsMeter | ( | ) |
Definition at line 3621 of file Vehicle.cc.
References FirmwarePlugin::getHobbsMeter().
|
signal |
| QGeoCoordinate Vehicle::homePosition | ( | ) |
Definition at line 1515 of file Vehicle.cc.
Referenced by PX4FirmwarePlugin::guidedModeChangeAltitude(), APMFirmwarePlugin::sendGCSMotionReport(), and MissionSettingsItem::setHomePositionFromVehicle().
|
signal |
Referenced by _setHomePosition(), and MissionSettingsItem::MissionSettingsItem().
|
inline |
Definition at line 425 of file Vehicle.h.
Referenced by VehicleFactGroup::_handleAttitude(), VehicleFactGroup::_handleAttitudeQuaternion(), PlanManager::_handleMissionRequest(), VehicleCameraControl::_mavCommandResult(), PlanManager::_readTransactionComplete(), PlanManager::_removeAllWorker(), VehicleCameraControl::_requestAllParameters(), PlanManager::_requestList(), PlanManager::_requestNextMissionItem(), PlanManager::_writeMissionCount(), APMFirmwarePlugin::adjustIncomingMavlinkMessage(), LogDownloadController::eraseAll(), APMFirmwarePlugin::guidedModeChangeAltitude(), QGCCameraParamIO::paramRequest(), ParameterManager::readParametersFromStream(), ParameterManager::refreshAllParameters(), RemoteIDManager::RemoteIDManager(), requestDataStream(), sendSetupSigning(), MissionManager::writeArduPilotGuidedMissionItem(), and ParameterManager::writeParametersToStream().
| bool Vehicle::inFwdFlight | ( | ) | const |
Definition at line 2238 of file Vehicle.cc.
References fixedWing().
|
signal |
|
signal |
|
inline |
The vehicle is responsible for making the initial request for the Plan.
Definition at line 744 of file Vehicle.h.
Referenced by GeoFenceController::showPlanFromManagerVehicle(), MissionController::showPlanFromManagerVehicle(), and RallyPointController::showPlanFromManagerVehicle().
|
signal |
Referenced by forceInitialPlanRequestComplete().
| bool Vehicle::isInitialConnectComplete | ( | ) | const |
Definition at line 3707 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 2460 of file Vehicle.cc.
References _findMavCommandListEntryIndex().
Referenced by _sendMavCommandWorker().
|
inline |
Definition at line 508 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 3456 of file Vehicle.cc.
References FirmwarePlugin::landFlightMode().
|
inline |
Definition at line 502 of file Vehicle.h.
Referenced by _setLanding().
|
signal |
Referenced by _setLanding().
| void Vehicle::landingGearDeploy | ( | ) |
Command vichecle to deploy landing gear.
Definition at line 2254 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
| void Vehicle::landingGearRetract | ( | ) |
Command vichecle to retract landing gear.
Definition at line 2264 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
|
signal |
|
inline |
|
signal |
|
signal |
|
signal |
|
static |
Definition at line 4364 of file Vehicle.cc.
References MavCmdResultCommandResultOnly, MavCmdResultFailureDuplicateCommand, and MavCmdResultFailureNoResponseToCommand.
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(), _sendMavCommandFromList(), _sendMavCommandWorker(), SendMavlinkCommandState::connectWaitSignal(), SendMavlinkCommandState::disconnectWaitSignal(), and PX4FirmwarePlugin::guidedModeTakeoff().
|
signal |
| MAVLinkLogManager * Vehicle::mavlinkLogManager | ( | ) | const |
Definition at line 4546 of file Vehicle.cc.
|
signal |
|
inline |
|
inline |
|
signal |
|
signal |
|
inline |
|
signal |
|
signal |
|
signal |
| double Vehicle::maximumEquivalentAirspeed | ( | ) |
Definition at line 1969 of file Vehicle.cc.
References FirmwarePlugin::maximumEquivalentAirspeed().
| double Vehicle::maximumHorizontalSpeedMultirotor | ( | ) |
Definition at line 1963 of file Vehicle.cc.
References FirmwarePlugin::maximumHorizontalSpeedMultirotor().
|
signal |
|
signal |
|
signal |
|
signal |
Referenced by sendMessageOnLinkThreadSafe().
|
signal |
| double Vehicle::minimumEquivalentAirspeed | ( | ) |
Definition at line 1975 of file Vehicle.cc.
References FirmwarePlugin::minimumEquivalentAirspeed().
| double Vehicle::minimumTakeoffAltitudeMeters | ( | ) |
Definition at line 1958 of file Vehicle.cc.
References FirmwarePlugin::minimumTakeoffAltitudeMeters().
| QString Vehicle::missionFlightMode | ( | ) | const |
Definition at line 3436 of file Vehicle.cc.
References FirmwarePlugin::missionFlightMode().
Referenced by MissionController::sendToVehiclePreCheck().
|
inline |
Definition at line 575 of file Vehicle.h.
Referenced by APMFirmwarePlugin::guidedModeGotoLocation(), MissionController::loadFromVehicle(), and MissionController::sendItemsToVehicle().
| int Vehicle::motorCount | ( | ) |
Definition at line 1491 of file Vehicle.cc.
References ParameterManager::getParameter(), QGCMAVLink::motorCount(), and parameterManager().
| QString Vehicle::motorDetectionFlightMode | ( | ) | const |
Definition at line 3471 of file Vehicle.cc.
References FirmwarePlugin::motorDetectionFlightMode().
| void Vehicle::motorInterlock | ( | bool | enable | ) |
Command vehicle to Enable/Disable Motor Interlock.
Definition at line 4395 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 3336 of file Vehicle.cc.
References sendMavCommand().
| bool Vehicle::multiRotor | ( | ) | const |
Definition at line 1864 of file Vehicle.cc.
References QGCMAVLink::isMultiRotor(), and vehicleType().
Referenced by SpeedSection::appendSectionItems(), MissionController::complexMissionItemNames(), APMFirmwarePlugin::expandedToolbarIndicatorSource(), PX4FirmwarePlugin::flightModes(), TransectStyleComplexItem::hoverAndCaptureAllowed(), APMFirmwarePlugin::isCapable(), PX4FirmwarePlugin::isCapable(), SpeedSection::scanForSection(), SpeedSection::setAvailable(), SpeedSection::SpeedSection(), and startCalibration().
|
signal |
|
inline |
|
signal |
|
inline |
| void Vehicle::pairRX | ( | int | rxType, |
| int | rxSubType | ||
| ) |
Definition at line 4090 of file Vehicle.cc.
References sendMavCommand().
Referenced by RadioComponentController::crsfBindMode(), and RadioComponentController::spektrumBindMode().
|
inline |
Definition at line 578 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(), APMFirmwarePlugin::guidedModeChangeHeading(), APMFirmwarePlugin::hasGripper(), PX4FirmwarePlugin::hasGripper(), Actuators::init(), APMFirmwarePlugin::maximumEquivalentAirspeed(), PX4FirmwarePlugin::maximumEquivalentAirspeed(), APMFirmwarePlugin::maximumHorizontalSpeedMultirotor(), PX4FirmwarePlugin::maximumHorizontalSpeedMultirotor(), APMFirmwarePlugin::minimumEquivalentAirspeed(), PX4FirmwarePlugin::minimumEquivalentAirspeed(), APMFirmwarePlugin::minimumTakeoffAltitudeMeters(), motorCount(), APMFirmwarePlugin::mulirotorSpeedLimitsAvailable(), PX4FirmwarePlugin::mulirotorSpeedLimitsAvailable(), ArduCopterFirmwarePlugin::multiRotorXConfig(), GeoFenceController::paramCircularFence(), PX4AutoPilotPlugin::parametersReadyPreChecks(), PX4AutoPilotPlugin::prerequisiteSetup(), PX4RadioComponent::requiresSetup(), APMRadioComponent::setupComplete(), AirframeComponent::setupComplete(), PX4RadioComponent::setupComplete(), PowerComponent::setupComplete(), SensorsComponent::setupComplete(), VehicleObjectAvoidance::stop(), APMAutoPilotPlugin::vehicleComponents(), and PX4AutoPilotPlugin::vehicleComponents().
|
inline |
| QString Vehicle::pauseFlightMode | ( | ) | const |
Definition at line 3441 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 2210 of file Vehicle.cc.
References VehicleSupports::pauseVehicle(), FirmwarePlugin::pauseVehicle(), and qgcApp.
Referenced by guidedModeChangeAltitude().
|
inline |
Definition at line 473 of file Vehicle.h.
Referenced by setPrearmError().
|
signal |
Referenced by setPrearmError().
| void Vehicle::prepareDelete | ( | ) |
Vehicle is about to be deleted.
|
inline |
Definition at line 495 of file Vehicle.h.
Referenced by _sendMavCommandFromList(), guidedModeROI(), MissionController::multipleLandPatternsAllowed(), GeoFenceController::paramCircularFence(), ParameterManager::refreshAllParameters(), VehicleSupports::terrainFrame(), and RadioComponentController::~RadioComponentController().
|
inline |
|
signal |
New RC channel values coming from RC_CHANNELS message
| channelValues | The current values for rc channels |
Referenced by PX4SimpleFlightModesController::PX4SimpleFlightModesController(), and RadioComponentController::start().
|
signal |
|
signal |
|
signal |
| void Vehicle::rebootVehicle | ( | ) |
Reboot vehicle.
Definition at line 3209 of file Vehicle.cc.
References Vehicle::MavCmdAckHandlerInfo_s::resultHandler, Vehicle::MavCmdAckHandlerInfo_s::resultHandlerData, and sendMavCommandWithHandler().
|
signal |
Remote control RSSI changed (0% - 100%)
Referenced by Vehicle().
|
inline |
| 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 1610 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), id(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageMultiple(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
Referenced by APMFirmwarePlugin::initializeStreamRates(), ArduSubFirmwarePlugin::initializeStreamRates(), and APMMavlinkStreamRateSettings::streamRateExtra3().
| 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 3099 of file Vehicle.cc.
References compId(), and RequestMessageFailureDuplicate.
Referenced by _requestCameraInfoHelper(), and RequestMessageState::onWaitEntered().
|
static |
Definition at line 4345 of file Vehicle.cc.
References RequestMessageFailureCommandError, RequestMessageFailureCommandNotAcked, RequestMessageFailureDuplicate, RequestMessageFailureMessageNotReceived, and RequestMessageNoFailure.
Referenced by _requestCameraInfoMessageResultHandler().
| void Vehicle::requestOperatorControl | ( | bool | allowOverride, |
| int | requestTimeoutSecs = 0 |
||
| ) |
Definition at line 4130 of file Vehicle.cc.
References FlyViewSettings::requestControlTimeout(), and sendMavCommandWithHandler().
Referenced by startTimerRevertAllowTakeover().
|
signal |
|
inline |
Definition at line 542 of file Vehicle.h.
References QGCMAVLink::SysStatusSensorGPS.
|
signal |
|
signal |
Referenced by guidedModeROI().
| bool Vehicle::rover | ( | ) | const |
Definition at line 1849 of file Vehicle.cc.
References QGCMAVLink::isRoverBoat(), and vehicleType().
Referenced by startCalibration().
| QString Vehicle::rtlFlightMode | ( | ) | const |
Definition at line 3446 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 2325 of file Vehicle.cc.
References compId(), and sendMavCommand().
|
signal |
|
slot |
Definition at line 4057 of file Vehicle.cc.
References sendMavCommand().
| 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 3990 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), 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 2309 of file Vehicle.cc.
References _sendMavCommandWorker(), and compId().
Referenced by PX4FirmwarePlugin::_changeAltAfterPause(), VehicleCameraControl::_requestCameraSettings(), VehicleCameraControl::_requestCaptureStatus(), VehicleCameraControl::_requestStorageInfo(), VehicleCameraControl::_requestStreamInfo(), VehicleCameraControl::_requestStreamStatus(), VehicleCameraControl::_requestTrackingStatus(), abortLanding(), 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(), ParameterManager::resetAllParametersToDefaults(), SensorsComponentController::resetFactoryParameters(), VehicleCameraControl::resetSettings(), VehicleCameraControl::resumeStream(), sendCommand(), sendGripperAction(), sendMavCommandDelayed(), sendMavCommandWithLambdaFallback(), setArmed(), VehicleCameraControl::setCameraMode(), VehicleCameraControl::setCurrentStream(), setEventsMetadata(), setFlightMode(), VehicleCameraControl::setFocusLevel(), setVtolInFwdFlight(), VehicleCameraControl::setZoomLevel(), startMavlinkLog(), APMFirmwarePlugin::startMission(), VehicleCameraControl::startTracking(), VehicleCameraControl::startTracking(), startUAVCANBusConfig(), VehicleCameraControl::startVideoRecording(), VehicleCameraControl::startZoom(), VehicleCameraControl::stepZoom(), stopCalibration(), stopGuidedModeROI(), stopMavlinkLog(), VehicleCameraControl::stopStream(), VehicleCameraControl::stopTakePhoto(), VehicleCameraControl::stopTracking(), stopUAVCANBusConfig(), 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 2320 of file Vehicle.cc.
References compId(), and sendMavCommand().
| 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 2350 of file Vehicle.cc.
References _sendMavCommandWorker(), and compId().
Referenced by 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 2361 of file Vehicle.cc.
References _sendMavCommandWorker(), and compId().
Referenced by APMFirmwarePlugin::guidedModeGotoLocation().
| 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 2339 of file Vehicle.cc.
References _sendMavCommandWorker(), and compId().
Referenced by PX4FirmwarePlugin::guidedModeChangeAltitude(), rebootVehicle(), requestOperatorControl(), sendMavCommandWithLambdaFallback(), Autotune::sendMavlinkRequest(), and setMessageRate().
| 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 2403 of file Vehicle.cc.
References _sendMavCommandWithLambdaFallbackHandler(), compId(), firmwarePluginInstanceData(), sendMavCommand(), sendMavCommandWithHandler(), FirmwarePluginInstanceData::SUPPORTED, FirmwarePluginInstanceData::UNKNOWN, and FirmwarePluginInstanceData::UNSUPPORTED.
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 1668 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 1470 of file Vehicle.cc.
References FirmwarePlugin::adjustOutgoingMavlinkMessageThreadSafe(), LinkInterface::isConnected(), messagesSentChanged(), and LinkInterface::writeBytesThreadSafe().
Referenced by PlanManager::_handleMissionRequest(), PlanManager::_readTransactionComplete(), PlanManager::_removeAllWorker(), VehicleCameraControl::_requestAllParameters(), PlanManager::_requestList(), PlanManager::_requestNextMissionItem(), _sendMavCommandFromList(), PlanManager::_writeMissionCount(), clearAllParamMapRC(), LogDownloadController::eraseAll(), APMFirmwarePlugin::guidedModeChangeAltitude(), QGCCameraParamIO::paramRequest(), ParameterManager::refreshAllParameters(), requestDataStream(), APMFirmwarePlugin::sendGCSMotionReport(), FirmwarePlugin::sendGCSMotionReport(), sendJoystickDataThreadSafe(), sendParamMapRC(), sendSetupSigning(), setCurrentMissionSequence(), setEstimatorOrigin(), 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 3930 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
| void Vehicle::sendPlan | ( | QString | planFile | ) |
Definition at line 3616 of file Vehicle.cc.
References PlanMasterController::sendPlanToVehicle().
| void Vehicle::sendSetupSigning | ( | ) |
Definition at line 4490 of file Vehicle.cc.
References MAVLinkSigning::createSetupSigning(), defaultComponentId(), MAVLinkProtocol::getComponentId(), MAVLinkProtocol::getSystemId(), id(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
|
signal |
|
signal |
|
signal |
Referenced by SensorsComponentController::SensorsComponentController().
|
signal |
|
signal |
| void Vehicle::setActuatorsMetadata | ( | uint8_t | compid, |
| const QString & | metadataJsonFileName | ||
| ) |
Definition at line 1293 of file Vehicle.cc.
References _actuators, and Actuators::load().
Referenced by CompInfoActuators::setJson().
| void Vehicle::setArmed | ( | bool | armed, |
| bool | showError | ||
| ) |
Definition at line 1520 of file Vehicle.cc.
References armed(), and sendMavCommand().
Referenced by FirmwarePlugin::_armVehicleAndValidate().
| void Vehicle::setCurrentMissionSequence | ( | int | seq | ) |
Alter the current mission item on the vehicle.
Definition at line 2274 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 4067 of file Vehicle.cc.
References MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().
| void Vehicle::setEventsMetadata | ( | uint8_t | compid, |
| const QString & | metadataJsonFileName | ||
| ) |
Definition at line 1268 of file Vehicle.cc.
References EventHandler::getModeGroup(), FirmwarePlugin::missionFlightMode(), sendMavCommand(), EventHandler::setMetadata(), HealthAndArmingCheckReport::setModeGroups(), and FirmwarePlugin::takeOffFlightMode().
Referenced by CompInfoEvents::setJson().
| void Vehicle::setFirmwareCustomVersion | ( | int | majorVersion, |
| int | minorVersion, | ||
| int | patchVersion | ||
| ) |
Definition at line 3174 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 3430 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 3165 of file Vehicle.cc.
References firmwareVersionChanged().
Referenced by APMFirmwarePlugin::initializeVehicle().
| void Vehicle::setFlightMode | ( | const QString & | flightMode | ) |
Definition at line 1559 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 2233 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 4319 of file Vehicle.cc.
References compId(), and sendMavCommandWithHandler().
Referenced by MAVLinkInspectorController::setMessageInterval().
| void Vehicle::setOfflineEditingDefaultComponentId | ( | int | defaultComponentId | ) |
Sets the default component id for an offline editing vehicle.
Definition at line 3351 of file Vehicle.cc.
References defaultComponentId().
| void Vehicle::setPIDTuningTelemetryMode | ( | PIDTuningTelemetryMode | mode | ) |
Definition at line 3656 of file Vehicle.cc.
References VehicleFactGroup::_altitudeTuningFact, _altitudeTuningOffset, VehicleFactGroup::_altitudeTuningSetpointFact, _localPositionFactGroup, _localPositionSetpointFactGroup, _setpointFactGroup, ModeAltitudeAndAirspeed, ModeDisabled, ModeRateAndAttitude, ModeVelocityAndPosition, MAVLinkStreamConfig::restoreDefaults(), MAVLinkStreamConfig::setHighRateAltAirspeed(), MAVLinkStreamConfig::setHighRateRateAndAttitude(), and MAVLinkStreamConfig::setHighRateVelAndPos().
|
inline |
Definition at line 561 of file Vehicle.h.
Referenced by VehicleObjectAvoidance::update().
| void Vehicle::setPrearmError | ( | const QString & | prearmError | ) |
Definition at line 3151 of file Vehicle.cc.
References prearmError(), and prearmErrorChanged().
| void Vehicle::setSoloFirmware | ( | bool | soloFirmware | ) |
Definition at line 3328 of file Vehicle.cc.
References soloFirmware(), and soloFirmwareChanged().
|
slot |
Definition at line 3360 of file Vehicle.cc.
References sendMavCommand(), and vtolInFwdFlight().
|
static |
Definition at line 2731 of file Vehicle.cc.
References MissionCommandTree::friendlyName(), MissionCommandTree::instance(), qgcApp, and MissionCommandTree::rawName().
Referenced by _sendMavCommandWithLambdaFallbackHandler().
| QString Vehicle::smartRTLFlightMode | ( | ) | const |
Definition at line 3451 of file Vehicle.cc.
References FirmwarePlugin::smartRTLFlightMode().
|
inline |
Definition at line 708 of file Vehicle.h.
Referenced by setSoloFirmware().
|
signal |
Referenced by setSoloFirmware().
| bool Vehicle::spacecraft | ( | ) | const |
Definition at line 1859 of file Vehicle.cc.
References QGCMAVLink::isSpacecraft(), and vehicleType().
| QString Vehicle::stabilizedFlightMode | ( | ) | const |
Definition at line 3476 of file Vehicle.cc.
References FirmwarePlugin::stabilizedFlightMode().
| void Vehicle::startCalibration | ( | QGCMAVLink::CalibrationType | calType | ) |
Definition at line 3218 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 SensorsComponentController::calibrateAccel(), SensorsComponentController::calibrateAirspeed(), PowerComponentController::calibrateEsc(), SensorsComponentController::calibrateGyro(), and SensorsComponentController::calibrateLevel().
| void Vehicle::startMavlinkLog | ( | ) |
Definition at line 3371 of file Vehicle.cc.
References sendMavCommand().
| void Vehicle::startMission | ( | ) |
Definition at line 1991 of file Vehicle.cc.
References FirmwarePlugin::startMission().
| void Vehicle::startTakeoff | ( | ) |
Definition at line 1985 of file Vehicle.cc.
References FirmwarePlugin::startTakeoff().
| void Vehicle::startTimerRevertAllowTakeover | ( | ) |
Definition at line 4114 of file Vehicle.cc.
References MAVLinkProtocol::instance(), and requestOperatorControl().
| void Vehicle::startUAVCANBusConfig | ( | void | ) |
Definition at line 3312 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
Referenced by PowerComponentController::startBusConfigureActuators().
| void Vehicle::stopCalibration | ( | bool | showError | ) |
Definition at line 3298 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
Referenced by SensorsComponentController::cancelCalibration(), and RadioComponentController::~RadioComponentController().
| void Vehicle::stopGuidedModeROI | ( | ) |
Definition at line 2166 of file Vehicle.cc.
References capabilityBits(), defaultComponentId(), qgcApp, VehicleSupports::roiMode(), sendMavCommand(), and sendMavCommandInt().
| void Vehicle::stopMavlinkLog | ( | ) |
Definition at line 3376 of file Vehicle.cc.
References sendMavCommand().
| void Vehicle::stopTrackingFirmwareVehicleTypeChanges | ( | void | ) |
Definition at line 223 of file Vehicle.cc.
References _offlineFirmwareTypeSettingChanged(), _offlineVehicleTypeSettingChanged(), and Fact::rawValueChanged().
| void Vehicle::stopUAVCANBusConfig | ( | void | ) |
Definition at line 3320 of file Vehicle.cc.
References defaultComponentId(), and sendMavCommand().
Referenced by PowerComponentController::stopBusConfigureActuators().
| bool Vehicle::sub | ( | ) | const |
Definition at line 1854 of file Vehicle.cc.
References QGCMAVLink::isSub(), and vehicleType().
Referenced by APMFirmwarePlugin::isCapable(), Vehicle(), and APMAutoPilotPlugin::vehicleComponents().
|
inline |
Definition at line 405 of file Vehicle.h.
Referenced by MissionController::setCurrentPlanViewSeqNum(), and APMAutoPilotPlugin::vehicleComponents().
| QString Vehicle::takeControlFlightMode | ( | ) | const |
Definition at line 3461 of file Vehicle.cc.
References FirmwarePlugin::takeControlFlightMode().
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
| const QVariantList & Vehicle::toolIndicators | ( | ) |
Definition at line 3497 of file Vehicle.cc.
References FirmwarePlugin::toolIndicators().
|
signal |
| void Vehicle::trackFirmwareVehicleTypeChanges | ( | void | ) |
Definition at line 214 of file Vehicle.cc.
References _offlineFirmwareTypeSettingChanged(), _offlineVehicleTypeSettingChanged(), and Fact::rawValueChanged().
Referenced by Vehicle().
| void Vehicle::triggerSimpleCamera | ( | void | ) |
Trigger camera using MAV_CMD_DO_DIGICAM_CONTROL command.
Definition at line 4048 of file Vehicle.cc.
References sendMavCommand().
Referenced by SimulatedCameraControl::takePhoto().
| void Vehicle::updateFlightDistance | ( | double | distance | ) |
Definition at line 3925 of file Vehicle.cc.
References VehicleFactGroup::_flightDistanceFact.
|
inline |
Definition at line 429 of file Vehicle.h.
References QGCMAVLink::vehicleClass().
Referenced by MissionManager::generateResumeMission(), and vehicleClassInternalName().
| QString Vehicle::vehicleClassInternalName | ( | ) | const |
Definition at line 1879 of file Vehicle.cc.
References vehicleClass(), and QGCMAVLink::vehicleClassToInternalString().
| QString Vehicle::vehicleImageOpaque | ( | ) | const |
Definition at line 3481 of file Vehicle.cc.
References FirmwarePlugin::vehicleImageOpaque().
| QString Vehicle::vehicleImageOutline | ( | ) | const |
Definition at line 3489 of file Vehicle.cc.
References FirmwarePlugin::vehicleImageOutline().
|
inline |
Definition at line 580 of file Vehicle.h.
Referenced by PlanManager::_handleMissionRequest(), PlanManager::_readTransactionComplete(), PlanManager::_removeAllWorker(), VehicleCameraControl::_requestAllParameters(), PlanManager::_requestList(), PlanManager::_requestNextMissionItem(), _sendMavCommandFromList(), _sendMavCommandWorker(), PlanManager::_writeMissionCount(), clearAllParamMapRC(), LogDownloadController::eraseAll(), APMFirmwarePlugin::guidedModeChangeAltitude(), PlanMasterController::loadFromVehicle(), RequestMessageState::onWaitEntered(), QGCCameraParamIO::paramRequest(), ParameterManager::refreshAllParameters(), requestDataStream(), APMFirmwarePlugin::sendGCSMotionReport(), FirmwarePlugin::sendGCSMotionReport(), sendJoystickDataThreadSafe(), sendParamMapRC(), sendSetupSigning(), PlanMasterController::sendToVehicle(), setCurrentMissionSequence(), setEstimatorOrigin(), setFlightMode(), startCalibration(), SensorsComponentController::usingUDPLink(), and MissionManager::writeArduPilotGuidedMissionItem().
|
inline |
Definition at line 428 of file Vehicle.h.
Referenced by APMFirmwarePlugin::_internalParameterMetaDataFile(), airship(), APMAirframeComponent::APMAirframeComponent(), APMSafetyComponent::description(), CompInfoParam::factMetaDataForName(), fixedWing(), multiRotor(), rover(), MissionController::save(), MissionController::sendToVehiclePreCheck(), APMMotorComponent::setupSource(), APMSafetyComponent::setupSource(), APMTuningComponent::setupSource(), PX4FlightBehavior::setupSource(), PX4TuningComponent::setupSource(), spacecraft(), sub(), APMSafetyComponent::summaryQmlSource(), PX4FirmwarePlugin::supportsNegativeThrust(), Vehicle(), APMAutoPilotPlugin::vehicleComponents(), and vtol().
|
signal |
Referenced by _offlineVehicleTypeSettingChanged().
| QString Vehicle::vehicleTypeString | ( | ) | const |
Definition at line 1874 of file Vehicle.cc.
References QGCMAVLink::mavTypeToString().
Referenced by ParameterManager::writeParametersToStream().
|
signal |
| QString Vehicle::vehicleUIDStr | ( | ) |
Definition at line 907 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 3646 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 3651 of file Vehicle.cc.
References FirmwarePlugin::versionCompare().
| void Vehicle::virtualTabletJoystickValue | ( | double | roll, |
| double | pitch, | ||
| double | yaw, | ||
| double | thrust | ||
| ) |
Definition at line 1818 of file Vehicle.cc.
References sendJoystickDataThreadSafe().
| bool Vehicle::vtol | ( | ) | const |
Definition at line 1869 of file Vehicle.cc.
References QGCMAVLink::isVTOL(), and vehicleType().
Referenced by MissionController::complexMissionItemNames(), TransectStyleComplexItem::hoverAndCaptureAllowed(), MissionController::insertLandItem(), MissionController::insertTakeoffItem(), APMFirmwarePlugin::isCapable(), PX4FirmwarePlugin::isCapable(), APMFirmwarePlugin::minimumTakeoffAltitudeMeters(), SensorsComponent::SensorsComponent(), SensorsComponent::setupComplete(), SimpleMissionItem::showLoiterRadius(), and SensorsComponent::summaryQmlSource().
|
inline |
Definition at line 505 of file Vehicle.h.
Referenced by setVtolInFwdFlight().
|
signal |
| bool Vehicle::xConfigMotors | ( | ) |
Definition at line 1505 of file Vehicle.cc.
References FirmwarePlugin::multiRotorXConfig().
|
friend |
|
friend |
|
friend |
|
friend |
| Actuators* Vehicle::_actuators = nullptr |
Definition at line 1251 of file Vehicle.h.
Referenced by setActuatorsMetadata().
| QElapsedTimer Vehicle::_altitudeAboveTerrQueryTimer |
| TerrainAtCoordinateQuery* Vehicle::_altitudeAboveTerrTerrainAtCoordinateQuery = nullptr |
| float Vehicle::_altitudeTuningOffset = qQNaN() |
Definition at line 1193 of file Vehicle.h.
Referenced by setPIDTuningTelemetryMode().
| BatteryFactGroupListModel Vehicle::_batteryFactGroupListModel |
| VehicleClockFactGroup Vehicle::_clockFactGroup |
| const QString Vehicle::_clockFactGroupName = QStringLiteral("clock") |
| TerrainAtCoordinateQuery* Vehicle::_currentDoSetHomeTerrainAtCoordinateQuery = nullptr |
Definition at line 1256 of file Vehicle.h.
Referenced by doSetHome().
| VehicleDistanceSensorFactGroup Vehicle::_distanceSensorFactGroup |
| const QString Vehicle::_distanceSensorFactGroupName = QStringLiteral("distanceSensor") |
| QGeoCoordinate Vehicle::_doSetHomeCoordinate |
Definition at line 1257 of file Vehicle.h.
Referenced by doSetHome().
| VehicleEFIFactGroup Vehicle::_efiFactGroup |
| const QString Vehicle::_efiFactGroupName = QStringLiteral("efi") |
| EscStatusFactGroupListModel Vehicle::_escStatusFactGroupListModel |
| VehicleEstimatorStatusFactGroup Vehicle::_estimatorStatusFactGroup |
| const QString Vehicle::_estimatorStatusFactGroupName = QStringLiteral("estimatorStatus") |
| bool Vehicle::_fixed_wing_airspeed_limits_available = false |
| FTPManager* Vehicle::_ftpManager = nullptr |
| VehicleGeneratorFactGroup Vehicle::_generatorFactGroup |
| const QString Vehicle::_generatorFactGroupName = QStringLiteral("generator") |
| GeoFenceManager* Vehicle::_geoFenceManager = nullptr |
| VehicleGPS2FactGroup Vehicle::_gps2FactGroup |
| const QString Vehicle::_gps2FactGroupName = QStringLiteral("gps2") |
| VehicleGPSAggregateFactGroup Vehicle::_gpsAggregateFactGroup |
| const QString Vehicle::_gpsAggregateFactGroupName = QStringLiteral("gpsAggregate") |
| VehicleGPSFactGroup Vehicle::_gpsFactGroup |
| const QString Vehicle::_gpsFactGroupName = QStringLiteral("gps") |
| VehicleHygrometerFactGroup Vehicle::_hygrometerFactGroup |
| const QString Vehicle::_hygrometerFactGroupName = QStringLiteral("hygrometer") |
| InitialConnectStateMachine* Vehicle::_initialConnectStateMachine = nullptr |
Definition at line 1250 of file Vehicle.h.
Referenced by isInitialConnectComplete(), and Vehicle().
| VehicleLocalPositionFactGroup Vehicle::_localPositionFactGroup |
Definition at line 1230 of file Vehicle.h.
Referenced by setPIDTuningTelemetryMode().
| const QString Vehicle::_localPositionFactGroupName = QStringLiteral("localPosition") |
| VehicleLocalPositionSetpointFactGroup Vehicle::_localPositionSetpointFactGroup |
Definition at line 1231 of file Vehicle.h.
Referenced by setPIDTuningTelemetryMode().
| const QString Vehicle::_localPositionSetpointFactGroupName = QStringLiteral("localPositionSetpoint") |
| QMap<uint8_t , uint8_t > Vehicle::_lowestBatteryChargeStateAnnouncedMap |
| MissionManager* Vehicle::_missionManager = nullptr |
Definition at line 1245 of file Vehicle.h.
Referenced by ~Vehicle().
| RallyPointManager* Vehicle::_rallyPointManager = nullptr |
| RemoteIDManager* Vehicle::_remoteIDManager = nullptr |
| QGeoCoordinate Vehicle::_roiCoordinate |
Definition at line 1261 of file Vehicle.h.
Referenced by guidedModeROI().
| TerrainAtCoordinateQuery* Vehicle::_roiTerrainAtCoordinateQuery = nullptr |
Definition at line 1260 of file Vehicle.h.
Referenced by guidedModeROI().
| VehicleRPMFactGroup Vehicle::_rpmFactGroup |
| const QString Vehicle::_rpmFactGroupName = QStringLiteral("rpm") |
| VehicleSetpointFactGroup Vehicle::_setpointFactGroup |
Definition at line 1228 of file Vehicle.h.
Referenced by setPIDTuningTelemetryMode().
| const QString Vehicle::_setpointFactGroupName = QStringLiteral("setpoint") |
| StandardModes* Vehicle::_standardModes = nullptr |
| VehicleTemperatureFactGroup Vehicle::_temperatureFactGroup |
| const QString Vehicle::_temperatureFactGroupName = QStringLiteral("temperature") |
| TerrainFactGroup Vehicle::_terrainFactGroup |
| const QString Vehicle::_terrainFactGroupName = QStringLiteral("terrain") |
| TerrainProtocolHandler* Vehicle::_terrainProtocolHandler = nullptr |
| VehicleFactGroup* Vehicle::_vehicleFactGroup |
| const QString Vehicle::_vehicleFactGroupName = QStringLiteral("vehicle") |
| VehicleLinkManager* Vehicle::_vehicleLinkManager = nullptr |
| VehicleVibrationFactGroup Vehicle::_vibrationFactGroup |
| const QString Vehicle::_vibrationFactGroupName = QStringLiteral("vibration") |
| VehicleWindFactGroup Vehicle::_windFactGroup |
| const QString Vehicle::_windFactGroupName = QStringLiteral("wind") |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
static |
|
static |
Definition at line 702 of file Vehicle.h.
Referenced by ArduCopterFirmwarePlugin::remapParamNameHigestMinorVersionNumber(), ArduPlaneFirmwarePlugin::remapParamNameHigestMinorVersionNumber(), ArduRoverFirmwarePlugin::remapParamNameHigestMinorVersionNumber(), and ArduSubFirmwarePlugin::remapParamNameHigestMinorVersionNumber().