QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
Vehicle Class Reference

#include <Vehicle.h>

+ Inheritance diagram for Vehicle:
+ Collaboration diagram for Vehicle:

Classes

struct  MavCmdAckHandlerInfo_s
 

Public Types

enum  CheckList { CheckListNotSetup = 0 , CheckListPassed , CheckListFailed }
 
enum  PIDTuningTelemetryMode { ModeDisabled , ModeRateAndAttitude , ModeVelocityAndPosition , ModeAltitudeAndAirspeed }
 
enum  MavCmdResultFailureCode_t { MavCmdResultCommandResultOnly , MavCmdResultFailureNoResponseToCommand , MavCmdResultFailureDuplicateCommand }
 
enum  RequestMessageResultHandlerFailureCode_t {
  RequestMessageNoFailure , RequestMessageFailureCommandError , RequestMessageFailureCommandNotAcked , RequestMessageFailureMessageNotReceived ,
  RequestMessageFailureDuplicate
}
 
typedef void(* MavCmdProgressHandler) (void *progressHandlerData, int compId, const mavlink_command_ack_t &ack)
 
typedef void(* MavCmdResultHandler) (void *resultHandlerData, int compId, const mavlink_command_ack_t &ack, MavCmdResultFailureCode_t failureCode)
 
typedef struct Vehicle::MavCmdAckHandlerInfo_s MavCmdAckHandlerInfo_t
 
typedef void(* RequestMessageResultHandler) (void *resultHandlerData, MAV_RESULT commandResult, RequestMessageResultHandlerFailureCode_t failureCode, const mavlink_message_t &message)
 

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 &centerCoord)
 
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 &centerCoord, double radius, double amslAltitude)
 
void guidedModeROI (const QGeoCoordinate &centerCoord)
 
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 &centerCoord)
 
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 &paramName, 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
 
VehicleSupportssupports ()
 
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)
 
AutoPilotPluginautopilotPlugin ()
 Provides access to AutoPilotPlugin for this vehicle.
 
FirmwarePluginfirmwarePlugin ()
 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)
 
QmlObjectListModelcameraTriggerPoints ()
 
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
 
QGCMapCircleorbitMapCircle ()
 
bool readyToFlyAvailable () const
 
bool readyToFly () const
 
bool allSensorsHealthy () const
 
QObject * sysStatusSensorInfo ()
 
bool requiresGpsFix () const
 
bool hilMode () const
 
Actuatorsactuators () const
 
bool mavlinkSigning () const
 
void startCalibration (QGCMAVLink::CalibrationType calType)
 
void stopCalibration (bool showError)
 
void startUAVCANBusConfig (void)
 
void stopUAVCANBusConfig (void)
 
FactGroupvehicleFactGroup ()
 
FactGroupgpsFactGroup ()
 
FactGroupgps2FactGroup ()
 
FactGroupgpsAggregateFactGroup ()
 
FactGroupwindFactGroup ()
 
FactGroupvibrationFactGroup ()
 
FactGrouptemperatureFactGroup ()
 
FactGroupclockFactGroup ()
 
FactGroupsetpointFactGroup ()
 
FactGroupdistanceSensorFactGroup ()
 
FactGrouplocalPositionFactGroup ()
 
FactGrouplocalPositionSetpointFactGroup ()
 
FactGroupestimatorStatusFactGroup ()
 
FactGroupterrainFactGroup ()
 
FactGrouphygrometerFactGroup ()
 
FactGroupgeneratorFactGroup ()
 
FactGroupefiFactGroup ()
 
FactGrouprpmFactGroup ()
 
QmlObjectListModelbatteries ()
 
QmlObjectListModelescs ()
 
MissionManagermissionManager ()
 
GeoFenceManagergeoFenceManager ()
 
RallyPointManagerrallyPointManager ()
 
ParameterManagerparameterManager ()
 
ParameterManagerparameterManager () const
 
VehicleLinkManagervehicleLinkManager ()
 
FTPManagerftpManager ()
 
ComponentInformationManagercompInfoManager ()
 
VehicleObjectAvoidanceobjectAvoidance ()
 
Autotuneautotune () const
 
RemoteIDManagerremoteIDManager ()
 
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 FirmwarePluginInstanceDatafirmwarePluginInstanceData ()
 
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)
 
HealthAndArmingCheckReporthealthAndArmingCheckReport ()
 
GimbalControllergimbalController ()
 
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
 
MAVLinkLogManagermavlinkLogManager () 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)
 

Public Attributes

QMap< uint8_t, uint8_t > _lowestBatteryChargeStateAnnouncedMap
 
float _altitudeTuningOffset = qQNaN()
 
bool _multirotor_speed_limits_available = false
 
bool _fixed_wing_airspeed_limits_available = false
 
const QString _vehicleFactGroupName = QStringLiteral("vehicle")
 
const QString _gpsFactGroupName = QStringLiteral("gps")
 
const QString _gps2FactGroupName = QStringLiteral("gps2")
 
const QString _gpsAggregateFactGroupName = QStringLiteral("gpsAggregate")
 
const QString _windFactGroupName = QStringLiteral("wind")
 
const QString _vibrationFactGroupName = QStringLiteral("vibration")
 
const QString _temperatureFactGroupName = QStringLiteral("temperature")
 
const QString _clockFactGroupName = QStringLiteral("clock")
 
const QString _setpointFactGroupName = QStringLiteral("setpoint")
 
const QString _distanceSensorFactGroupName = QStringLiteral("distanceSensor")
 
const QString _localPositionFactGroupName = QStringLiteral("localPosition")
 
const QString _localPositionSetpointFactGroupName = QStringLiteral("localPositionSetpoint")
 
const QString _estimatorStatusFactGroupName = QStringLiteral("estimatorStatus")
 
const QString _terrainFactGroupName = QStringLiteral("terrain")
 
const QString _hygrometerFactGroupName = QStringLiteral("hygrometer")
 
const QString _generatorFactGroupName = QStringLiteral("generator")
 
const QString _efiFactGroupName = QStringLiteral("efi")
 
const QString _rpmFactGroupName = QStringLiteral("rpm")
 
VehicleFactGroup_vehicleFactGroup
 
VehicleGPSFactGroup _gpsFactGroup
 
VehicleGPS2FactGroup _gps2FactGroup
 
VehicleGPSAggregateFactGroup _gpsAggregateFactGroup
 
VehicleWindFactGroup _windFactGroup
 
VehicleVibrationFactGroup _vibrationFactGroup
 
VehicleTemperatureFactGroup _temperatureFactGroup
 
VehicleClockFactGroup _clockFactGroup
 
VehicleSetpointFactGroup _setpointFactGroup
 
VehicleDistanceSensorFactGroup _distanceSensorFactGroup
 
VehicleLocalPositionFactGroup _localPositionFactGroup
 
VehicleLocalPositionSetpointFactGroup _localPositionSetpointFactGroup
 
VehicleEstimatorStatusFactGroup _estimatorStatusFactGroup
 
VehicleHygrometerFactGroup _hygrometerFactGroup
 
VehicleGeneratorFactGroup _generatorFactGroup
 
VehicleEFIFactGroup _efiFactGroup
 
VehicleRPMFactGroup _rpmFactGroup
 
TerrainFactGroup _terrainFactGroup
 
BatteryFactGroupListModel _batteryFactGroupListModel
 
EscStatusFactGroupListModel _escStatusFactGroupListModel
 
TerrainProtocolHandler_terrainProtocolHandler = nullptr
 
MissionManager_missionManager = nullptr
 
GeoFenceManager_geoFenceManager = nullptr
 
RallyPointManager_rallyPointManager = nullptr
 
VehicleLinkManager_vehicleLinkManager = nullptr
 
FTPManager_ftpManager = nullptr
 
InitialConnectStateMachine_initialConnectStateMachine = nullptr
 
Actuators_actuators = nullptr
 
RemoteIDManager_remoteIDManager = nullptr
 
StandardModes_standardModes = nullptr
 
TerrainAtCoordinateQuery_currentDoSetHomeTerrainAtCoordinateQuery = nullptr
 
QGeoCoordinate _doSetHomeCoordinate
 
TerrainAtCoordinateQuery_roiTerrainAtCoordinateQuery = nullptr
 
QGeoCoordinate _roiCoordinate
 
QElapsedTimer _altitudeAboveTerrQueryTimer
 
TerrainAtCoordinateQuery_altitudeAboveTerrTerrainAtCoordinateQuery = nullptr
 
QGeoCoordinate _altitudeAboveTerrLastCoord
 
float _altitudeAboveTerrLastRelAlt = qQNaN()
 

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
 

Additional Inherited Members

- Protected Slots inherited from FactGroup
virtual void _updateAllValues ()
 
- Protected Member Functions inherited from VehicleFactGroup
void _handleAttitude (Vehicle *vehicle, const mavlink_message_t &message)
 
void _handleAttitudeQuaternion (Vehicle *vehicle, const mavlink_message_t &message)
 
void _handleAltitude (const mavlink_message_t &message)
 
void _handleVfrHud (const mavlink_message_t &message)
 
void _handleRawImuTemp (const mavlink_message_t &message)
 
void _handleNavControllerOutput (const mavlink_message_t &message)
 
void _handleRangefinder (const mavlink_message_t &message)
 
- Protected Member Functions inherited from FactGroup
void _addFact (Fact *fact, const QString &name)
 
void _addFact (Fact *fact)
 
void _addFactGroup (FactGroup *factGroup, const QString &name)
 
void _addFactGroup (FactGroup *factGroup)
 
void _loadFromJsonArray (const QJsonArray &jsonArray)
 
void _setTelemetryAvailable (bool telemetryAvailable)
 
- Protected Attributes inherited from VehicleFactGroup
Fact _rollFact = Fact(0, QStringLiteral("roll"), FactMetaData::valueTypeDouble)
 
Fact _pitchFact = Fact(0, QStringLiteral("pitch"), FactMetaData::valueTypeDouble)
 
Fact _headingFact = Fact(0, QStringLiteral("heading"), FactMetaData::valueTypeDouble)
 
Fact _rollRateFact = Fact(0, QStringLiteral("rollRate"), FactMetaData::valueTypeDouble)
 
Fact _pitchRateFact = Fact(0, QStringLiteral("pitchRate"), FactMetaData::valueTypeDouble)
 
Fact _yawRateFact = Fact(0, QStringLiteral("yawRate"), FactMetaData::valueTypeDouble)
 
Fact _groundSpeedFact = Fact(0, QStringLiteral("groundSpeed"), FactMetaData::valueTypeDouble)
 
Fact _airSpeedFact = Fact(0, QStringLiteral("airSpeed"), FactMetaData::valueTypeDouble)
 
Fact _airSpeedSetpointFact = Fact(0, QStringLiteral("airSpeedSetpoint"), FactMetaData::valueTypeDouble)
 
Fact _climbRateFact = Fact(0, QStringLiteral("climbRate"), FactMetaData::valueTypeDouble)
 
Fact _altitudeRelativeFact = Fact(0, QStringLiteral("altitudeRelative"), FactMetaData::valueTypeDouble)
 
Fact _altitudeAMSLFact = Fact(0, QStringLiteral("altitudeAMSL"), FactMetaData::valueTypeDouble)
 
Fact _altitudeAboveTerrFact = Fact(0, QStringLiteral("altitudeAboveTerr"), FactMetaData::valueTypeDouble)
 
Fact _altitudeTuningFact = Fact(0, QStringLiteral("altitudeTuning"), FactMetaData::valueTypeDouble)
 
Fact _altitudeTuningSetpointFact = Fact(0, QStringLiteral("altitudeTuningSetpoint"), FactMetaData::valueTypeDouble)
 
Fact _xTrackErrorFact = Fact(0, QStringLiteral("xTrackError"), FactMetaData::valueTypeDouble)
 
Fact _rangeFinderDistFact = Fact(0, QStringLiteral("rangeFinderDist"), FactMetaData::valueTypeFloat)
 
Fact _flightDistanceFact = Fact(0, QStringLiteral("flightDistance"), FactMetaData::valueTypeDouble)
 
Fact _flightTimeFact = Fact(0, QStringLiteral("flightTime"), FactMetaData::valueTypeElapsedTimeInSeconds)
 
Fact _distanceToHomeFact = Fact(0, QStringLiteral("distanceToHome"), FactMetaData::valueTypeDouble)
 
Fact _timeToHomeFact = Fact(0, QStringLiteral("timeToHome"), FactMetaData::valueTypeDouble)
 
Fact _missionItemIndexFact = Fact(0, QStringLiteral("missionItemIndex"), FactMetaData::valueTypeUint16)
 
Fact _headingToNextWPFact = Fact(0, QStringLiteral("headingToNextWP"), FactMetaData::valueTypeDouble)
 
Fact _distanceToNextWPFact = Fact(0, QStringLiteral("distanceToNextWP"), FactMetaData::valueTypeDouble)
 
Fact _headingToHomeFact = Fact(0, QStringLiteral("headingToHome"), FactMetaData::valueTypeDouble)
 
Fact _headingFromHomeFact = Fact(0, QStringLiteral("headingFromHome"),FactMetaData::valueTypeDouble)
 
Fact _headingFromGCSFact = Fact(0, QStringLiteral("headingFromGCS"),FactMetaData::valueTypeDouble)
 
Fact _distanceToGCSFact = Fact(0, QStringLiteral("distanceToGCS"), FactMetaData::valueTypeDouble)
 
Fact _hobbsFact = Fact(0, QStringLiteral("hobbs"), FactMetaData::valueTypeString)
 
Fact _throttlePctFact = Fact(0, QStringLiteral("throttlePct"), FactMetaData::valueTypeUint16)
 
Fact _imuTempFact = Fact(0, QStringLiteral("imuTemp"), FactMetaData::valueTypeInt16)
 
float _altitudeTuningOffset = qQNaN()
 
bool _altitudeMessageAvailable = false
 
- Protected Attributes inherited from FactGroup
const int _updateRateMSecs = 0
 Update rate for Fact::valueChanged signals, 0: immediate update.
 
QMap< QString, Fact * > _nameToFactMap
 
QMap< QString, FactGroup * > _nameToFactGroupMap
 
QMap< QString, FactMetaData * > _nameToFactMetaDataMap
 
QStringList _factNames
 

Detailed Description

Definition at line 81 of file Vehicle.h.

Member Typedef Documentation

◆ MavCmdAckHandlerInfo_t

◆ MavCmdProgressHandler

typedef void(* Vehicle::MavCmdProgressHandler) (void *progressHandlerData, int compId, const mavlink_command_ack_t &ack)

Callback for sendMavCommandWithHandler which handles MAV_RESULT_IN_PROGRESS acks

Parameters
progressHandlerDataOpaque data passed in to sendMavCommand call
ackReceived COMMAND_ACK

Definition at line 629 of file Vehicle.h.

◆ MavCmdResultHandler

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

Parameters
resultHandlerDataOpaque data passed in to sendMavCommand call
ackReceived COMMAND_ACK
failureCodeFailure reason. If not MavCmdResultCommandResultOnly only ack.result == MAV_RESULT_FAILED is valid.

Definition at line 635 of file Vehicle.h.

◆ RequestMessageResultHandler

typedef void(* Vehicle::RequestMessageResultHandler) (void *resultHandlerData, MAV_RESULT commandResult, RequestMessageResultHandlerFailureCode_t failureCode, const mavlink_message_t &message)

Callback for requestMessage

Parameters
resultHandlerDataOpaque data which was passed in to requestMessage call
commandResultResult from ack to REQUEST_MESSAGE command
failureCodeFailure code
messageReceived message which was requested

Definition at line 683 of file Vehicle.h.

Member Enumeration Documentation

◆ CheckList

Enumerator
CheckListNotSetup 
CheckListPassed 
CheckListFailed 

Definition at line 129 of file Vehicle.h.

◆ MavCmdResultFailureCode_t

Enumerator
MavCmdResultCommandResultOnly 

commandResult specifies full success/fail info

MavCmdResultFailureNoResponseToCommand 

No response from vehicle to command.

MavCmdResultFailureDuplicateCommand 

Unable to send command since duplicate is already being waited on for response.

Definition at line 618 of file Vehicle.h.

◆ PIDTuningTelemetryMode

Enumerator
ModeDisabled 
ModeRateAndAttitude 
ModeVelocityAndPosition 
ModeAltitudeAndAirspeed 

Definition at line 371 of file Vehicle.h.

◆ RequestMessageResultHandlerFailureCode_t

Enumerator
RequestMessageNoFailure 
RequestMessageFailureCommandError 
RequestMessageFailureCommandNotAcked 
RequestMessageFailureMessageNotReceived 
RequestMessageFailureDuplicate 

Exact duplicate request already active or queued for this component/message id.

Definition at line 668 of file Vehicle.h.

Constructor & Destructor Documentation

◆ Vehicle() [1/2]

◆ Vehicle() [2/2]

Vehicle::Vehicle ( MAV_AUTOPILOT  firmwareType,
MAV_TYPE  vehicleType,
QObject *  parent = nullptr 
)

◆ ~Vehicle()

Vehicle::~Vehicle ( )

Definition at line 351 of file Vehicle.cc.

References _missionManager.

Member Function Documentation

◆ _commandCanBeDuplicated()

bool Vehicle::_commandCanBeDuplicated ( MAV_CMD  command)

Definition at line 2522 of file Vehicle.cc.

Referenced by _sendMavCommandWorker().

◆ _findMavCommandListEntryIndex()

int Vehicle::_findMavCommandListEntryIndex ( int  targetCompId,
MAV_CMD  command 
)

Definition at line 2467 of file Vehicle.cc.

Referenced by isMavCommandPending().

◆ _offlineFirmwareTypeSettingChanged

void Vehicle::_offlineFirmwareTypeSettingChanged ( QVariant  varFirmwareType)
slot

◆ _offlineVehicleTypeSettingChanged

void Vehicle::_offlineVehicleTypeSettingChanged ( QVariant  varVehicleType)
slot

◆ _sendMavCommandFromList()

◆ _sendMavCommandShouldRetry()

◆ _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 
)

◆ _setFlying()

void Vehicle::_setFlying ( bool  flying)

Definition at line 1910 of file Vehicle.cc.

References flying(), and flyingChanged().

◆ _setHomePosition()

void Vehicle::_setHomePosition ( QGeoCoordinate &  homeCoord)

Definition at line 1079 of file Vehicle.cc.

References homePositionChanged().

Referenced by PlanManager::_handleMissionItem().

◆ _setLanding()

void Vehicle::_setLanding ( bool  landing)

Definition at line 1918 of file Vehicle.cc.

References armed(), landing(), and landingChanged().

◆ abortLanding()

void Vehicle::abortLanding ( double  climbOutAltitude)

Command vehicle to abort landing.

Definition at line 2219 of file Vehicle.cc.

References defaultComponentId(), and sendMavCommand().

◆ actuators()

Actuators * Vehicle::actuators ( ) const
inline

Definition at line 544 of file Vehicle.h.

Referenced by PX4AutoPilotPlugin::vehicleComponents().

◆ airship()

bool Vehicle::airship ( ) const

◆ allSensorsHealthy()

bool Vehicle::allSensorsHealthy ( ) const
inline

Definition at line 540 of file Vehicle.h.

◆ allSensorsHealthyChanged

void Vehicle::allSensorsHealthyChanged ( bool  allSensorsHealthy)
signal

◆ apmFirmware()

◆ armed()

◆ armedChanged

void Vehicle::armedChanged ( bool  armed)
signal

Referenced by Vehicle().

◆ armedPosition()

QGeoCoordinate Vehicle::armedPosition ( )
inline

Definition at line 413 of file Vehicle.h.

◆ armedPositionChanged

void Vehicle::armedPositionChanged ( )
signal

◆ autoDisarm()

bool Vehicle::autoDisarm ( )

◆ autoDisarmChanged

void Vehicle::autoDisarmChanged ( )
signal

◆ autopilotPlugin()

AutoPilotPlugin * Vehicle::autopilotPlugin ( )
inline

Provides access to AutoPilotPlugin for this vehicle.

Definition at line 441 of file Vehicle.h.

◆ autotune()

Autotune * Vehicle::autotune ( ) const
inline

Definition at line 584 of file Vehicle.h.

◆ baseMode()

uint8_t Vehicle::baseMode ( ) const
inline

Definition at line 506 of file Vehicle.h.

◆ batteries()

QmlObjectListModel * Vehicle::batteries ( )
inline

Definition at line 572 of file Vehicle.h.

◆ brandImageIndoor()

QString Vehicle::brandImageIndoor ( ) const

Definition at line 3341 of file Vehicle.cc.

References FirmwarePlugin::brandImageIndoor().

◆ brandImageOutdoor()

QString Vehicle::brandImageOutdoor ( ) const

Definition at line 3346 of file Vehicle.cc.

References FirmwarePlugin::brandImageOutdoor().

◆ calibrationEventReceived

void Vehicle::calibrationEventReceived ( int  uasid,
int  componentid,
int  severity,
QSharedPointer< events::parser::ParsedEvent >  event 
)
signal

◆ cameraManagerChanged

void Vehicle::cameraManagerChanged ( )
signal

◆ cameraTriggerPoints()

QmlObjectListModel * Vehicle::cameraTriggerPoints ( )
inline

Definition at line 476 of file Vehicle.h.

◆ capabilitiesKnown()

bool Vehicle::capabilitiesKnown ( ) const
inline

Definition at line 737 of file Vehicle.h.

◆ capabilitiesKnownChanged

void Vehicle::capabilitiesKnownChanged ( bool  capabilitiesKnown)
signal

◆ capabilityBits()

◆ capabilityBitsChanged

void Vehicle::capabilityBitsChanged ( uint64_t  capabilityBits)
signal

◆ checkListState()

CheckList Vehicle::checkListState ( )
inline

Definition at line 765 of file Vehicle.h.

◆ checkListStateChanged

void Vehicle::checkListStateChanged ( )
signal

◆ clearAllParamMapRC()

void Vehicle::clearAllParamMapRC ( void  )

◆ clockFactGroup()

FactGroup * Vehicle::clockFactGroup ( )
inline

Definition at line 560 of file Vehicle.h.

◆ closeVehicle()

void Vehicle::closeVehicle ( void  )
inline

Removes the vehicle from the system.

Definition at line 390 of file Vehicle.h.

◆ coaxialMotors()

bool Vehicle::coaxialMotors ( )
Returns
true: Motors are coaxial like an X8 config, false: Quadcopter for example

Definition at line 1500 of file Vehicle.cc.

References FirmwarePlugin::multiRotorCoaxialMotors().

◆ compId()

◆ compInfoManager()

ComponentInformationManager * Vehicle::compInfoManager ( )
inline

Definition at line 582 of file Vehicle.h.

◆ CONSTANT()

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

◆ coordinate()

QGeoCoordinate Vehicle::coordinate ( )
inline

◆ coordinateChanged

void Vehicle::coordinateChanged ( QGeoCoordinate  coordinate)
signal

◆ currentConfigChanged

void Vehicle::currentConfigChanged ( )
signal

◆ customMode()

uint32_t Vehicle::customMode ( ) const
inline

Definition at line 507 of file Vehicle.h.

◆ defaultComponentId()

◆ defaultCruiseSpeed()

double Vehicle::defaultCruiseSpeed ( ) const
inline

Definition at line 524 of file Vehicle.h.

Referenced by MissionController::save(), and SpeedSection::SpeedSection().

◆ defaultCruiseSpeedChanged

void Vehicle::defaultCruiseSpeedChanged ( double  cruiseSpeed)
signal

◆ defaultHoverSpeed()

double Vehicle::defaultHoverSpeed ( ) const
inline

Definition at line 525 of file Vehicle.h.

Referenced by MissionController::save(), and SpeedSection::SpeedSection().

◆ defaultHoverSpeedChanged

void Vehicle::defaultHoverSpeedChanged ( double  hoverSpeed)
signal

◆ deleteGimbalController()

void Vehicle::deleteGimbalController ( )

Delete gimbal controller, handy for RequestMessageTest.cc, otherwise gimbal controller message requests will mess with this test.

◆ distanceSensorFactGroup()

FactGroup * Vehicle::distanceSensorFactGroup ( )
inline

Definition at line 562 of file Vehicle.h.

◆ doSetHome()

void Vehicle::doSetHome ( const QGeoCoordinate &  coord)

◆ efiFactGroup()

FactGroup * Vehicle::efiFactGroup ( )
inline

Definition at line 569 of file Vehicle.h.

◆ emergencyStop()

void Vehicle::emergencyStop ( )

Command vehicle to kill all motors no matter what state.

Definition at line 2244 of file Vehicle.cc.

References sendMavCommand().

◆ escs()

QmlObjectListModel * Vehicle::escs ( )
inline

Definition at line 573 of file Vehicle.h.

◆ estimatorStatusFactGroup()

FactGroup * Vehicle::estimatorStatusFactGroup ( )
inline

Definition at line 565 of file Vehicle.h.

◆ expandedToolbarIndicatorSource()

QVariant Vehicle::expandedToolbarIndicatorSource ( const QString &  indicatorName)

Definition at line 4340 of file Vehicle.cc.

References FirmwarePlugin::expandedToolbarIndicatorSource().

◆ firmwareBoardProductId()

int Vehicle::firmwareBoardProductId ( ) const
inline

Definition at line 698 of file Vehicle.h.

◆ firmwareBoardVendorId()

int Vehicle::firmwareBoardVendorId ( ) const
inline

Definition at line 697 of file Vehicle.h.

◆ firmwareCustomMajorVersion()

int Vehicle::firmwareCustomMajorVersion ( ) const
inline

Definition at line 694 of file Vehicle.h.

◆ firmwareCustomMinorVersion()

int Vehicle::firmwareCustomMinorVersion ( ) const
inline

Definition at line 695 of file Vehicle.h.

◆ firmwareCustomPatchVersion()

int Vehicle::firmwareCustomPatchVersion ( ) const
inline

Definition at line 696 of file Vehicle.h.

◆ firmwareCustomVersionChanged

void Vehicle::firmwareCustomVersionChanged ( )
signal

◆ firmwareMajorVersion()

◆ firmwareMinorVersion()

◆ firmwarePatchVersion()

int Vehicle::firmwarePatchVersion ( ) const
inline

◆ firmwarePlugin()

◆ firmwarePluginInstanceData()

◆ firmwareType()

MAV_AUTOPILOT Vehicle::firmwareType ( ) const
inline

Definition at line 427 of file Vehicle.h.

Referenced by MissionController::save(), and MissionController::sendToVehiclePreCheck().

◆ firmwareTypeChanged

void Vehicle::firmwareTypeChanged ( )
signal

◆ firmwareTypeString()

QString Vehicle::firmwareTypeString ( ) const

◆ firmwareVersionChanged

void Vehicle::firmwareVersionChanged ( )
signal

Referenced by setFirmwareVersion().

◆ firmwareVersionType()

int Vehicle::firmwareVersionType ( ) const
inline

Definition at line 693 of file Vehicle.h.

Referenced by FirmwarePlugin::_versionFileDownloadFinished().

◆ firmwareVersionTypeString()

QString Vehicle::firmwareVersionTypeString ( ) const

◆ fixedWing()

◆ flashBootloader()

void Vehicle::flashBootloader ( )

Definition at line 4383 of file Vehicle.cc.

References apmFirmware(), defaultComponentId(), and sendMavCommand().

◆ flightMode()

◆ flightModeChanged

void Vehicle::flightModeChanged ( const QString &  flightMode)
signal

Referenced by Vehicle().

◆ flightModes()

QStringList Vehicle::flightModes ( )

Definition at line 1543 of file Vehicle.cc.

References flightModes(), and FirmwarePlugin::flightModes().

Referenced by flightModes().

◆ flightModesChanged

void Vehicle::flightModesChanged ( )
signal

◆ flightModeSetAvailable()

bool Vehicle::flightModeSetAvailable ( )

◆ flowImageIndex()

uint32_t Vehicle::flowImageIndex ( ) const

Definition at line 4531 of file Vehicle.cc.

References ImageProtocolManager::flowImageIndex().

◆ flowImageIndexChanged

void Vehicle::flowImageIndexChanged ( )
signal

◆ flying()

bool Vehicle::flying ( ) const
inline

◆ flyingChanged

void Vehicle::flyingChanged ( bool  flying)
signal

Referenced by _setFlying(), and Vehicle().

◆ followFlightMode()

QString Vehicle::followFlightMode ( ) const

Definition at line 3466 of file Vehicle.cc.

References FirmwarePlugin::followFlightMode().

◆ forceArm()

void Vehicle::forceArm ( void  )

Definition at line 1529 of file Vehicle.cc.

References sendMavCommand().

◆ forceInitialPlanRequestComplete()

void Vehicle::forceInitialPlanRequestComplete ( )

Definition at line 3610 of file Vehicle.cc.

References initialPlanRequestCompleteChanged().

◆ formattedMessagesChanged

void Vehicle::formattedMessagesChanged ( )
signal

◆ ftpManager()

FTPManager * Vehicle::ftpManager ( )
inline

Definition at line 581 of file Vehicle.h.

Referenced by ParameterManager::refreshAllParameters().

◆ gcsControlStatusChanged

void Vehicle::gcsControlStatusChanged ( )
signal

◆ generatorFactGroup()

FactGroup * Vehicle::generatorFactGroup ( )
inline

Definition at line 568 of file Vehicle.h.

◆ genericFirmware()

bool Vehicle::genericFirmware ( ) const
inline

Definition at line 497 of file Vehicle.h.

◆ geoFenceManager()

GeoFenceManager * Vehicle::geoFenceManager ( )
inline

Definition at line 576 of file Vehicle.h.

◆ getInitialGCSPressure()

qreal Vehicle::getInitialGCSPressure ( ) const
inline

Definition at line 415 of file Vehicle.h.

Referenced by APMFirmwarePlugin::startCompensatingBaro().

◆ getInitialGCSTemperature()

qreal Vehicle::getInitialGCSTemperature ( ) const
inline

Definition at line 416 of file Vehicle.h.

Referenced by APMFirmwarePlugin::startCompensatingBaro().

◆ getMessageRate()

int32_t Vehicle::getMessageRate ( uint8_t  compId,
uint16_t  msgId 
)

Definition at line 4291 of file Vehicle.cc.

References compId().

◆ gimbalController()

GimbalController * Vehicle::gimbalController ( )
inline

Definition at line 775 of file Vehicle.h.

◆ gitHash()

QString Vehicle::gitHash ( ) const
inline

Definition at line 704 of file Vehicle.h.

Referenced by ParameterManager::writeParametersToStream().

◆ gitHashChanged

void Vehicle::gitHashChanged ( QString  hash)
signal

◆ gotoFlightMode()

QString Vehicle::gotoFlightMode ( ) const

Definition at line 1926 of file Vehicle.cc.

References FirmwarePlugin::gotoFlightMode().

◆ gps2FactGroup()

FactGroup * Vehicle::gps2FactGroup ( )
inline

Definition at line 555 of file Vehicle.h.

◆ gpsAggregateFactGroup()

FactGroup * Vehicle::gpsAggregateFactGroup ( )
inline

Definition at line 556 of file Vehicle.h.

◆ gpsFactGroup()

FactGroup * Vehicle::gpsFactGroup ( )
inline

Definition at line 554 of file Vehicle.h.

◆ guidedMode()

bool Vehicle::guidedMode ( ) const

Definition at line 2228 of file Vehicle.cc.

References FirmwarePlugin::isGuidedMode().

Referenced by setGuidedMode().

◆ guidedModeChangeAltitude()

void Vehicle::guidedModeChangeAltitude ( double  altitudeChange,
bool  pauseVehicle 
)

Command vehicle to change altitude

Parameters
altitudeChangeIf > 0, go up by amount specified, if < 0, go down by amount specified
pauseVehicletrue: 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.

◆ guidedModeChanged

void Vehicle::guidedModeChanged ( bool  guidedMode)
signal

◆ guidedModeChangeEquivalentAirspeedMetersSecond()

void Vehicle::guidedModeChangeEquivalentAirspeedMetersSecond ( double  airspeed)

Command vehicle to change equivalent airspeed

Parameters
airspeedTarget equivalent airspeed

Definition at line 2033 of file Vehicle.cc.

References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), and qgcApp.

◆ guidedModeChangeGroundSpeedMetersSecond()

void Vehicle::guidedModeChangeGroundSpeedMetersSecond ( double  groundspeed)

Command vehicle to change groundspeed

Parameters
groundspeedTarget horizontal groundspeed

Definition at line 2023 of file Vehicle.cc.

References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), and qgcApp.

◆ guidedModeChangeHeading()

void Vehicle::guidedModeChangeHeading ( const QGeoCoordinate &  headingCoord)

Command vehicle to change yaw

Parameters
coordinateto rotate towards

Definition at line 2200 of file Vehicle.cc.

References VehicleSupports::changeHeading(), FirmwarePlugin::guidedModeChangeHeading(), and qgcApp.

◆ guidedModeGotoLocation()

void Vehicle::guidedModeGotoLocation ( const QGeoCoordinate &  gotoCoord,
double  forwardFlightLoiterRadius = 0.0f 
)

◆ guidedModeLand()

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.

◆ guidedModeOrbit()

void Vehicle::guidedModeOrbit ( const QGeoCoordinate &  centerCoord,
double  radius,
double  amslAltitude 
)

Command vehicle to orbit given center point

Parameters
centerCoordOrbit around this point
radiusDistance from vehicle to centerCoord
amslAltitudeDesired vehicle altitude

Definition at line 2042 of file Vehicle.cc.

References capabilityBits(), defaultComponentId(), VehicleSupports::orbitMode(), qgcApp, sendMavCommand(), and sendMavCommandInt().

◆ guidedModeROI()

void Vehicle::guidedModeROI ( const QGeoCoordinate &  centerCoord)

Command vehicle to keep given point as ROI

Parameters
centerCoordROI coordinates

Definition at line 2074 of file Vehicle.cc.

References _roiCoordinate, _roiTerrainAtCoordinateQuery, px4Firmware(), qgcApp, TerrainAtCoordinateQuery::requestData(), roiCoordChanged(), VehicleSupports::roiMode(), and TerrainAtCoordinateQuery::terrainDataReceived().

◆ guidedModeRTL()

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.

◆ guidedModeTakeoff()

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.

◆ hasGripper()

bool Vehicle::hasGripper ( ) const

Definition at line 1980 of file Vehicle.cc.

References FirmwarePlugin::hasGripper().

◆ hasGripperChanged

void Vehicle::hasGripperChanged ( )
signal

◆ haveFWSpeedLimChanged

void Vehicle::haveFWSpeedLimChanged ( )
signal

◆ haveFWSpeedLimits()

bool Vehicle::haveFWSpeedLimits ( ) const
inline

Definition at line 408 of file Vehicle.h.

◆ haveMRSpeedLimChanged

void Vehicle::haveMRSpeedLimChanged ( )
signal

◆ haveMRSpeedLimits()

bool Vehicle::haveMRSpeedLimits ( ) const
inline

Definition at line 407 of file Vehicle.h.

◆ healthAndArmingCheckReport()

HealthAndArmingCheckReport * Vehicle::healthAndArmingCheckReport ( )
inline

Definition at line 773 of file Vehicle.h.

◆ hilMode()

bool Vehicle::hilMode ( ) const
inline

Definition at line 543 of file Vehicle.h.

Referenced by PX4AutoPilotPlugin::vehicleComponents().

◆ hobbsMeter()

QString Vehicle::hobbsMeter ( )

Definition at line 3621 of file Vehicle.cc.

References FirmwarePlugin::getHobbsMeter().

◆ hobbsMeterChanged

void Vehicle::hobbsMeterChanged ( )
signal

◆ homePosition()

◆ homePositionChanged

void Vehicle::homePositionChanged ( const QGeoCoordinate &  homePosition)
signal

◆ hygrometerFactGroup()

FactGroup * Vehicle::hygrometerFactGroup ( )
inline

Definition at line 567 of file Vehicle.h.

◆ id()

◆ inFwdFlight()

bool Vehicle::inFwdFlight ( ) const

Definition at line 2238 of file Vehicle.cc.

References fixedWing().

◆ inFwdFlightChanged

void Vehicle::inFwdFlightChanged ( )
signal

◆ initialConnectComplete

void Vehicle::initialConnectComplete ( )
signal

◆ initialPlanRequestComplete()

bool Vehicle::initialPlanRequestComplete ( ) const
inline

The vehicle is responsible for making the initial request for the Plan.

Returns
: true: initial request is complete, false: initial request is still in progress;

Definition at line 744 of file Vehicle.h.

Referenced by GeoFenceController::showPlanFromManagerVehicle(), MissionController::showPlanFromManagerVehicle(), and RallyPointController::showPlanFromManagerVehicle().

◆ initialPlanRequestCompleteChanged

void Vehicle::initialPlanRequestCompleteChanged ( bool  initialPlanRequestComplete)
signal

◆ isInitialConnectComplete()

bool Vehicle::isInitialConnectComplete ( ) const

Definition at line 3707 of file Vehicle.cc.

References _initialConnectStateMachine.

◆ isMavCommandPending()

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?

Parameters
targetCompId
command
Returns

Definition at line 2460 of file Vehicle.cc.

References _findMavCommandListEntryIndex().

Referenced by _sendMavCommandWorker().

◆ isOfflineEditingVehicle()

◆ isROIEnabled()

bool Vehicle::isROIEnabled ( ) const
inline

Running loss rate.

Definition at line 763 of file Vehicle.h.

◆ isROIEnabledChanged

void Vehicle::isROIEnabledChanged ( )
signal

◆ landFlightMode()

QString Vehicle::landFlightMode ( ) const

Definition at line 3456 of file Vehicle.cc.

References FirmwarePlugin::landFlightMode().

◆ landing()

bool Vehicle::landing ( ) const
inline

Definition at line 502 of file Vehicle.h.

Referenced by _setLanding().

◆ landingChanged

void Vehicle::landingChanged ( bool  landing)
signal

Referenced by _setLanding().

◆ landingGearDeploy()

void Vehicle::landingGearDeploy ( )

Command vichecle to deploy landing gear.

Definition at line 2254 of file Vehicle.cc.

References defaultComponentId(), and sendMavCommand().

◆ landingGearRetract()

void Vehicle::landingGearRetract ( )

Command vichecle to retract landing gear.

Definition at line 2264 of file Vehicle.cc.

References defaultComponentId(), and sendMavCommand().

◆ latitude()

float Vehicle::latitude ( )
inline

Definition at line 492 of file Vehicle.h.

◆ loadProgress()

double Vehicle::loadProgress ( ) const
inline

Definition at line 768 of file Vehicle.h.

◆ loadProgressChanged

void Vehicle::loadProgressChanged ( float  value)
signal

◆ localPositionFactGroup()

FactGroup * Vehicle::localPositionFactGroup ( )
inline

Definition at line 563 of file Vehicle.h.

◆ localPositionSetpointFactGroup()

FactGroup * Vehicle::localPositionSetpointFactGroup ( )
inline

Definition at line 564 of file Vehicle.h.

◆ logData

void Vehicle::logData ( uint32_t  ofs,
uint16_t  id,
uint8_t  count,
const uint8_t *  data 
)
signal

◆ logEntry

void Vehicle::logEntry ( uint32_t  time_utc,
uint32_t  size,
uint16_t  id,
uint16_t  num_logs,
uint16_t  last_log_num 
)
signal

◆ longitude()

float Vehicle::longitude ( )
inline

Definition at line 493 of file Vehicle.h.

◆ longitudeChanged

void Vehicle::longitudeChanged ( )
signal

◆ mavCmdResultFailureCodeToString()

QString Vehicle::mavCmdResultFailureCodeToString ( MavCmdResultFailureCode_t  failureCode)
static

◆ mavCommandResult

void Vehicle::mavCommandResult ( int  vehicleId,
int  targetComponent,
int  command,
int  ackResult,
int  failureCode 
)
signal

Signalled in response to usage of sendMavCommand

Parameters
vehicleIdVehicle which command was sent to
targetComponentComponent which command was sent to
commandCommand which was sent
ackResultMAV_RESULT returned in ack
failureCodeMore detailed failure code Vehicle::MavCmdResultFailureCode_t

Referenced by VehicleCameraControl::_initWhenReady(), _sendMavCommandFromList(), _sendMavCommandWorker(), SendMavlinkCommandState::connectWaitSignal(), SendMavlinkCommandState::disconnectWaitSignal(), and PX4FirmwarePlugin::guidedModeTakeoff().

◆ mavlinkLogData

void Vehicle::mavlinkLogData ( Vehicle vehicle,
uint8_t  target_system,
uint8_t  target_component,
uint16_t  sequence,
uint8_t  first_message,
QByteArray  data,
bool  acked 
)
signal

◆ mavlinkLogManager()

MAVLinkLogManager * Vehicle::mavlinkLogManager ( ) const

Definition at line 4546 of file Vehicle.cc.

◆ mavlinkLogManagerChanged

void Vehicle::mavlinkLogManagerChanged ( )
signal

◆ mavlinkLossCount()

quint64 Vehicle::mavlinkLossCount ( ) const
inline

Total number of sucessful messages received.

Definition at line 760 of file Vehicle.h.

◆ mavlinkLossPercent()

float Vehicle::mavlinkLossPercent ( ) const
inline

Total number of lost messages.

Definition at line 761 of file Vehicle.h.

◆ mavlinkMessageReceived

◆ mavlinkMsgIntervalsChanged

void Vehicle::mavlinkMsgIntervalsChanged ( uint8_t  compid,
uint16_t  msgId,
int32_t  rate 
)
signal

◆ mavlinkReceivedCount()

quint64 Vehicle::mavlinkReceivedCount ( ) const
inline

Calculated total number of messages sent to us.

Definition at line 759 of file Vehicle.h.

◆ mavlinkSentCount()

quint64 Vehicle::mavlinkSentCount ( ) const
inline

Definition at line 758 of file Vehicle.h.

◆ mavlinkSerialControl

void Vehicle::mavlinkSerialControl ( uint8_t  device,
uint8_t  flags,
uint16_t  timeout,
uint32_t  baudrate,
QByteArray  data 
)
signal

◆ mavlinkSigning()

bool Vehicle::mavlinkSigning ( ) const
inline

Definition at line 545 of file Vehicle.h.

◆ mavlinkSigningChanged

void Vehicle::mavlinkSigningChanged ( )
signal

◆ mavlinkStatusChanged

void Vehicle::mavlinkStatusChanged ( )
signal

◆ maximumEquivalentAirspeed()

double Vehicle::maximumEquivalentAirspeed ( )
Returns
Maximum equivalent airspeed.

Definition at line 1969 of file Vehicle.cc.

References FirmwarePlugin::maximumEquivalentAirspeed().

◆ maximumHorizontalSpeedMultirotor()

double Vehicle::maximumHorizontalSpeedMultirotor ( )
Returns
Maximum horizontal speed multirotor.

Definition at line 1963 of file Vehicle.cc.

References FirmwarePlugin::maximumHorizontalSpeedMultirotor().

◆ messageCountChanged

void Vehicle::messageCountChanged ( )
signal

◆ messagesLost()

uint Vehicle::messagesLost ( ) const
inline

Definition at line 500 of file Vehicle.h.

◆ messagesLostChanged

void Vehicle::messagesLostChanged ( )
signal

◆ messagesReceived()

uint Vehicle::messagesReceived ( ) const
inline

Definition at line 498 of file Vehicle.h.

◆ messagesReceivedChanged

void Vehicle::messagesReceivedChanged ( )
signal

◆ messagesSent()

uint Vehicle::messagesSent ( ) const
inline

Definition at line 499 of file Vehicle.h.

◆ messagesSentChanged

void Vehicle::messagesSentChanged ( )
signal

◆ messageTypeChanged

void Vehicle::messageTypeChanged ( )
signal

◆ minimumEquivalentAirspeed()

double Vehicle::minimumEquivalentAirspeed ( )
Returns
Minimum equivalent airspeed.

Definition at line 1975 of file Vehicle.cc.

References FirmwarePlugin::minimumEquivalentAirspeed().

◆ minimumTakeoffAltitudeMeters()

double Vehicle::minimumTakeoffAltitudeMeters ( )
Returns
The minimum takeoff altitude (relative) for guided takeoff.

Definition at line 1958 of file Vehicle.cc.

References FirmwarePlugin::minimumTakeoffAltitudeMeters().

◆ missionFlightMode()

QString Vehicle::missionFlightMode ( ) const

◆ missionManager()

◆ motorCount()

int Vehicle::motorCount ( )
Returns
-1 = Unknown, Number of motors on vehicle

Definition at line 1491 of file Vehicle.cc.

References ParameterManager::getParameter(), QGCMAVLink::motorCount(), and parameterManager().

◆ motorDetectionFlightMode()

QString Vehicle::motorDetectionFlightMode ( ) const

Definition at line 3471 of file Vehicle.cc.

References FirmwarePlugin::motorDetectionFlightMode().

◆ motorInterlock()

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().

◆ motorTest()

void Vehicle::motorTest ( int  motor,
int  percent,
int  timeoutSecs,
bool  showError 
)

Test motor

Parameters
motorMotor number, 1-based
percent0-no power, 100-full power
timeoutSecDisabled motor after this amount of time

Definition at line 3336 of file Vehicle.cc.

References sendMavCommand().

◆ multiRotor()

◆ newFormattedMessage

void Vehicle::newFormattedMessage ( QString  formattedMessage)
signal

◆ objectAvoidance()

VehicleObjectAvoidance * Vehicle::objectAvoidance ( )
inline

Definition at line 583 of file Vehicle.h.

◆ orbitActive()

bool Vehicle::orbitActive ( ) const
inline

Definition at line 536 of file Vehicle.h.

◆ orbitActiveChanged

void Vehicle::orbitActiveChanged ( bool  orbitActive)
signal

◆ orbitMapCircle()

QGCMapCircle * Vehicle::orbitMapCircle ( )
inline

Definition at line 537 of file Vehicle.h.

◆ pairRX()

void Vehicle::pairRX ( int  rxType,
int  rxSubType 
)

◆ parameterManager() [1/2]

ParameterManager * Vehicle::parameterManager ( )
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().

◆ parameterManager() [2/2]

ParameterManager * Vehicle::parameterManager ( ) const
inline

Definition at line 579 of file Vehicle.h.

◆ pauseFlightMode()

QString Vehicle::pauseFlightMode ( ) const

Definition at line 3441 of file Vehicle.cc.

References FirmwarePlugin::pauseFlightMode().

◆ pauseVehicle()

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().

◆ prearmError()

QString Vehicle::prearmError ( ) const
inline

Definition at line 473 of file Vehicle.h.

Referenced by setPrearmError().

◆ prearmErrorChanged

void Vehicle::prearmErrorChanged ( const QString &  prearmError)
signal

Referenced by setPrearmError().

◆ prepareDelete()

void Vehicle::prepareDelete ( )

Vehicle is about to be deleted.

◆ px4Firmware()

◆ rallyPointManager()

RallyPointManager * Vehicle::rallyPointManager ( )
inline

Definition at line 577 of file Vehicle.h.

◆ rcChannelsChanged

void Vehicle::rcChannelsChanged ( QVector< int >  channelValues)
signal

New RC channel values coming from RC_CHANNELS message

Parameters
channelValuesThe current values for rc channels

Referenced by PX4SimpleFlightModesController::PX4SimpleFlightModesController(), and RadioComponentController::start().

◆ rcRSSI()

int Vehicle::rcRSSI ( ) const
inline

Definition at line 494 of file Vehicle.h.

◆ rcRSSIChanged

void Vehicle::rcRSSIChanged ( int  rcRSSI)
signal

◆ readyToFly()

bool Vehicle::readyToFly ( ) const
inline

Definition at line 539 of file Vehicle.h.

◆ readyToFlyAvailable()

bool Vehicle::readyToFlyAvailable ( ) const
inline

Definition at line 538 of file Vehicle.h.

◆ readyToFlyAvailableChanged

void Vehicle::readyToFlyAvailableChanged ( bool  readyToFlyAvailable)
signal

◆ readyToFlyChanged

void Vehicle::readyToFlyChanged ( bool  readyToFy)
signal

◆ rebootVehicle()

void Vehicle::rebootVehicle ( )

◆ remoteControlRSSIChanged

void Vehicle::remoteControlRSSIChanged ( uint8_t  rssi)
signal

Remote control RSSI changed (0% - 100%)

Referenced by Vehicle().

◆ remoteIDManager()

RemoteIDManager * Vehicle::remoteIDManager ( )
inline

Definition at line 585 of file Vehicle.h.

◆ requestDataStream()

void Vehicle::requestDataStream ( MAV_DATA_STREAM  stream,
uint16_t  rate,
bool  sendMultiple = true 
)

Requests the specified data stream from the vehicle

Parameters
streamStream which is being requested
rateRate at which to send stream in Hz
sendMultipleSend 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().

◆ requestMessage()

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.

Parameters
resultHandlerCallback for result
resultHandlerDataOpaque data passed back to resultHandler

Definition at line 3099 of file Vehicle.cc.

References compId(), and RequestMessageFailureDuplicate.

Referenced by _requestCameraInfoHelper(), and RequestMessageState::onWaitEntered().

◆ requestMessageResultHandlerFailureCodeToString()

◆ requestOperatorControl()

void Vehicle::requestOperatorControl ( bool  allowOverride,
int  requestTimeoutSecs = 0 
)

◆ requestOperatorControlReceived

void Vehicle::requestOperatorControlReceived ( int  sysIdRequestingControl,
int  allowTakeover,
int  requestTimeoutSecs 
)
signal

◆ requiresGpsFix()

bool Vehicle::requiresGpsFix ( ) const
inline

Definition at line 542 of file Vehicle.h.

References QGCMAVLink::SysStatusSensorGPS.

◆ requiresGpsFixChanged

void Vehicle::requiresGpsFixChanged ( )
signal

◆ roiCoordChanged

void Vehicle::roiCoordChanged ( const QGeoCoordinate &  centerCoord)
signal

Referenced by guidedModeROI().

◆ rover()

bool Vehicle::rover ( ) const

Definition at line 1849 of file Vehicle.cc.

References QGCMAVLink::isRoverBoat(), and vehicleType().

Referenced by startCalibration().

◆ rpmFactGroup()

FactGroup * Vehicle::rpmFactGroup ( )
inline

Definition at line 570 of file Vehicle.h.

◆ rtlFlightMode()

QString Vehicle::rtlFlightMode ( ) const

Definition at line 3446 of file Vehicle.cc.

References FirmwarePlugin::rtlFlightMode().

◆ sendCommand()

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().

◆ sendControlRequestAllowedChanged

void Vehicle::sendControlRequestAllowedChanged ( bool  sendControlRequestAllowed)
signal

◆ sendGripperAction

void Vehicle::sendGripperAction ( QGCMAVLink::GripperActions  gripperOption)
slot

Definition at line 4057 of file Vehicle.cc.

References sendMavCommand().

◆ sendJoystickDataThreadSafe()

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 
)

◆ sendMavCommand()

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.

Parameters
compIdComponent to send to.
commandMAV_CMD to send
showErrortrue: 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().

◆ sendMavCommandDelayed()

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().

◆ sendMavCommandInt()

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 
)

◆ sendMavCommandIntWithHandler()

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

Parameters
resultHandlerCallback for result, nullptr for no callback
resultHandleDataOpaque data passed through callback
Parameters
compId

‍nullptr to signale no handlers

Definition at line 2361 of file Vehicle.cc.

References _sendMavCommandWorker(), and compId().

Referenced by APMFirmwarePlugin::guidedModeGotoLocation().

◆ sendMavCommandWithHandler()

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.

Parameters
compId

‍nullptr to signale no handlers

Definition at line 2339 of file Vehicle.cc.

References _sendMavCommandWorker(), and compId().

Referenced by PX4FirmwarePlugin::guidedModeChangeAltitude(), rebootVehicle(), requestOperatorControl(), sendMavCommandWithLambdaFallback(), Autotune::sendMavlinkRequest(), and setMessageRate().

◆ sendMavCommandWithLambdaFallback()

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 
)

◆ sendMessageMultiple()

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().

◆ sendMessageOnLinkThreadSafe()

◆ sendParamMapRC()

void Vehicle::sendParamMapRC ( const QString &  paramName,
double  scale,
double  centerValue,
int  tuningID,
double  minValue,
double  maxValue 
)

◆ sendPlan()

void Vehicle::sendPlan ( QString  planFile)

Definition at line 3616 of file Vehicle.cc.

References PlanMasterController::sendPlanToVehicle().

◆ sendSetupSigning()

◆ sensorsEnabledBits()

int Vehicle::sensorsEnabledBits ( ) const
inline

Definition at line 512 of file Vehicle.h.

◆ sensorsEnabledBitsChanged

void Vehicle::sensorsEnabledBitsChanged ( int  sensorsEnabledBits)
signal

◆ sensorsHealthBits()

int Vehicle::sensorsHealthBits ( ) const
inline

Definition at line 513 of file Vehicle.h.

◆ sensorsHealthBitsChanged

void Vehicle::sensorsHealthBitsChanged ( int  sensorsHealthBits)
signal

◆ sensorsParametersResetAck

void Vehicle::sensorsParametersResetAck ( bool  success)
signal

◆ sensorsPresentBits()

int Vehicle::sensorsPresentBits ( ) const
inline

Definition at line 511 of file Vehicle.h.

◆ sensorsPresentBitsChanged

void Vehicle::sensorsPresentBitsChanged ( int  sensorsPresentBits)
signal

◆ sensorsUnhealthyBits()

int Vehicle::sensorsUnhealthyBits ( ) const
inline

Definition at line 514 of file Vehicle.h.

◆ sensorsUnhealthyBitsChanged

void Vehicle::sensorsUnhealthyBitsChanged ( int  sensorsUnhealthyBits)
signal

◆ setActuatorsMetadata()

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().

◆ setArmed()

void Vehicle::setArmed ( bool  armed,
bool  showError 
)

Definition at line 1520 of file Vehicle.cc.

References armed(), and sendMavCommand().

Referenced by FirmwarePlugin::_armVehicleAndValidate().

◆ setArmedShowError()

void Vehicle::setArmedShowError ( bool  armed)
inline

Definition at line 451 of file Vehicle.h.

◆ setCheckListState()

void Vehicle::setCheckListState ( CheckList  cl)
inline

Definition at line 766 of file Vehicle.h.

◆ setCurrentMissionSequence()

◆ setEstimatorOrigin()

void Vehicle::setEstimatorOrigin ( const QGeoCoordinate &  centerCoord)

◆ setEventsMetadata()

void Vehicle::setEventsMetadata ( uint8_t  compid,
const QString &  metadataJsonFileName 
)

◆ setFirmwareCustomVersion()

void Vehicle::setFirmwareCustomVersion ( int  majorVersion,
int  minorVersion,
int  patchVersion 
)

Definition at line 3174 of file Vehicle.cc.

References firmwareCustomVersionChanged().

◆ setFirmwarePluginInstanceData()

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().

◆ setFirmwareVersion()

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().

◆ setFlightMode()

◆ setGuidedMode()

void Vehicle::setGuidedMode ( bool  guidedMode)

Definition at line 2233 of file Vehicle.cc.

References guidedMode(), and FirmwarePlugin::setGuidedMode().

◆ setInitialGCSPressure()

void Vehicle::setInitialGCSPressure ( qreal  pressure)
inline

Definition at line 417 of file Vehicle.h.

Referenced by Vehicle().

◆ setInitialGCSTemperature()

void Vehicle::setInitialGCSTemperature ( qreal  temperature)
inline

Definition at line 418 of file Vehicle.h.

Referenced by Vehicle().

◆ setMessageRate()

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().

◆ setOfflineEditingDefaultComponentId()

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().

◆ setPIDTuningTelemetryMode()

◆ setpointFactGroup()

FactGroup * Vehicle::setpointFactGroup ( )
inline

Definition at line 561 of file Vehicle.h.

Referenced by VehicleObjectAvoidance::update().

◆ setPrearmError()

void Vehicle::setPrearmError ( const QString &  prearmError)

Definition at line 3151 of file Vehicle.cc.

References prearmError(), and prearmErrorChanged().

◆ setSoloFirmware()

void Vehicle::setSoloFirmware ( bool  soloFirmware)

Definition at line 3328 of file Vehicle.cc.

References soloFirmware(), and soloFirmwareChanged().

◆ setVtolInFwdFlight

void Vehicle::setVtolInFwdFlight ( bool  vtolInFwdFlight)
slot

Definition at line 3360 of file Vehicle.cc.

References sendMavCommand(), and vtolInFwdFlight().

◆ showCommandAckError()

void Vehicle::showCommandAckError ( const mavlink_command_ack_t &  ack)
static

◆ smartRTLFlightMode()

QString Vehicle::smartRTLFlightMode ( ) const

Definition at line 3451 of file Vehicle.cc.

References FirmwarePlugin::smartRTLFlightMode().

◆ soloFirmware()

bool Vehicle::soloFirmware ( ) const
inline

Definition at line 708 of file Vehicle.h.

Referenced by setSoloFirmware().

◆ soloFirmwareChanged

void Vehicle::soloFirmwareChanged ( bool  soloFirmware)
signal

Referenced by setSoloFirmware().

◆ spacecraft()

bool Vehicle::spacecraft ( ) const

Definition at line 1859 of file Vehicle.cc.

References QGCMAVLink::isSpacecraft(), and vehicleType().

◆ stabilizedFlightMode()

QString Vehicle::stabilizedFlightMode ( ) const

Definition at line 3476 of file Vehicle.cc.

References FirmwarePlugin::stabilizedFlightMode().

◆ startCalibration()

◆ startMavlinkLog()

void Vehicle::startMavlinkLog ( )

Definition at line 3371 of file Vehicle.cc.

References sendMavCommand().

◆ startMission()

void Vehicle::startMission ( )

Definition at line 1991 of file Vehicle.cc.

References FirmwarePlugin::startMission().

◆ startTakeoff()

void Vehicle::startTakeoff ( )

Definition at line 1985 of file Vehicle.cc.

References FirmwarePlugin::startTakeoff().

◆ startTimerRevertAllowTakeover()

void Vehicle::startTimerRevertAllowTakeover ( )

Definition at line 4114 of file Vehicle.cc.

References MAVLinkProtocol::instance(), and requestOperatorControl().

◆ startUAVCANBusConfig()

void Vehicle::startUAVCANBusConfig ( void  )

◆ stopCalibration()

void Vehicle::stopCalibration ( bool  showError)

◆ stopGuidedModeROI()

void Vehicle::stopGuidedModeROI ( )

◆ stopMavlinkLog()

void Vehicle::stopMavlinkLog ( )

Definition at line 3376 of file Vehicle.cc.

References sendMavCommand().

◆ stopTrackingFirmwareVehicleTypeChanges()

void Vehicle::stopTrackingFirmwareVehicleTypeChanges ( void  )

◆ stopUAVCANBusConfig()

void Vehicle::stopUAVCANBusConfig ( void  )

◆ sub()

bool Vehicle::sub ( ) const

◆ supports()

VehicleSupports * Vehicle::supports ( )
inline

◆ sysStatusSensorInfo()

QObject * Vehicle::sysStatusSensorInfo ( )
inline

Definition at line 541 of file Vehicle.h.

◆ takeControlFlightMode()

QString Vehicle::takeControlFlightMode ( ) const

Definition at line 3461 of file Vehicle.cc.

References FirmwarePlugin::takeControlFlightMode().

◆ telemetryFixed()

unsigned int Vehicle::telemetryFixed ( ) const
inline

Definition at line 531 of file Vehicle.h.

◆ telemetryFixedChanged

void Vehicle::telemetryFixedChanged ( unsigned int  value)
signal

◆ telemetryLNoise()

int Vehicle::telemetryLNoise ( ) const
inline

Definition at line 533 of file Vehicle.h.

◆ telemetryLNoiseChanged

void Vehicle::telemetryLNoiseChanged ( int  value)
signal

◆ telemetryLRSSI()

int Vehicle::telemetryLRSSI ( ) const
inline

Definition at line 529 of file Vehicle.h.

◆ telemetryLRSSIChanged

void Vehicle::telemetryLRSSIChanged ( int  value)
signal

◆ telemetryRNoise()

int Vehicle::telemetryRNoise ( ) const
inline

Definition at line 534 of file Vehicle.h.

◆ telemetryRNoiseChanged

void Vehicle::telemetryRNoiseChanged ( int  value)
signal

◆ telemetryRRSSI()

int Vehicle::telemetryRRSSI ( ) const
inline

Definition at line 528 of file Vehicle.h.

◆ telemetryRRSSIChanged

void Vehicle::telemetryRRSSIChanged ( int  value)
signal

◆ telemetryRXErrors()

unsigned int Vehicle::telemetryRXErrors ( ) const
inline

Definition at line 530 of file Vehicle.h.

◆ telemetryRXErrorsChanged

void Vehicle::telemetryRXErrorsChanged ( unsigned int  value)
signal

◆ telemetryTXBuffer()

unsigned int Vehicle::telemetryTXBuffer ( ) const
inline

Definition at line 532 of file Vehicle.h.

◆ telemetryTXBufferChanged

void Vehicle::telemetryTXBufferChanged ( unsigned int  value)
signal

◆ temperatureFactGroup()

FactGroup * Vehicle::temperatureFactGroup ( )
inline

Definition at line 559 of file Vehicle.h.

◆ terrainFactGroup()

FactGroup * Vehicle::terrainFactGroup ( )
inline

Definition at line 566 of file Vehicle.h.

◆ textMessageReceived

void Vehicle::textMessageReceived ( int  sysid,
int  componentid,
int  severity,
QString  text,
QString  description 
)
signal

◆ toolIndicators()

const QVariantList & Vehicle::toolIndicators ( )

Definition at line 3497 of file Vehicle.cc.

References FirmwarePlugin::toolIndicators().

◆ toolIndicatorsChanged

void Vehicle::toolIndicatorsChanged ( )
signal

◆ trackFirmwareVehicleTypeChanges()

void Vehicle::trackFirmwareVehicleTypeChanges ( void  )

◆ triggerSimpleCamera()

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().

◆ updateFlightDistance()

void Vehicle::updateFlightDistance ( double  distance)

Definition at line 3925 of file Vehicle.cc.

References VehicleFactGroup::_flightDistanceFact.

◆ vehicleClass()

QGCMAVLink::VehicleClass_t Vehicle::vehicleClass ( void  ) const
inline

◆ vehicleClassInternalName()

QString Vehicle::vehicleClassInternalName ( ) const

Definition at line 1879 of file Vehicle.cc.

References vehicleClass(), and QGCMAVLink::vehicleClassToInternalString().

◆ vehicleFactGroup()

FactGroup * Vehicle::vehicleFactGroup ( )
inline

Definition at line 553 of file Vehicle.h.

◆ vehicleImageOpaque()

QString Vehicle::vehicleImageOpaque ( ) const

Definition at line 3481 of file Vehicle.cc.

References FirmwarePlugin::vehicleImageOpaque().

◆ vehicleImageOutline()

QString Vehicle::vehicleImageOutline ( ) const

Definition at line 3489 of file Vehicle.cc.

References FirmwarePlugin::vehicleImageOutline().

◆ vehicleLinkManager()

◆ vehicleType()

◆ vehicleTypeChanged

void Vehicle::vehicleTypeChanged ( )
signal

◆ vehicleTypeString()

QString Vehicle::vehicleTypeString ( ) const

Definition at line 1874 of file Vehicle.cc.

References QGCMAVLink::mavTypeToString().

Referenced by ParameterManager::writeParametersToStream().

◆ vehicleUID()

quint64 Vehicle::vehicleUID ( ) const
inline

Definition at line 705 of file Vehicle.h.

◆ vehicleUIDChanged

void Vehicle::vehicleUIDChanged ( )
signal

◆ vehicleUIDStr()

QString Vehicle::vehicleUIDStr ( )

Definition at line 907 of file Vehicle.cc.

◆ versionCompare() [1/2]

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().

◆ versionCompare() [2/2]

int Vehicle::versionCompare ( int  major,
int  minor,
int  patch 
) const

Definition at line 3651 of file Vehicle.cc.

References FirmwarePlugin::versionCompare().

◆ vibrationFactGroup()

FactGroup * Vehicle::vibrationFactGroup ( )
inline

Definition at line 558 of file Vehicle.h.

◆ virtualTabletJoystickValue()

void Vehicle::virtualTabletJoystickValue ( double  roll,
double  pitch,
double  yaw,
double  thrust 
)

Definition at line 1818 of file Vehicle.cc.

References sendJoystickDataThreadSafe().

◆ vtol()

◆ vtolInFwdFlight()

bool Vehicle::vtolInFwdFlight ( ) const
inline

Definition at line 505 of file Vehicle.h.

Referenced by setVtolInFwdFlight().

◆ vtolInFwdFlightChanged

void Vehicle::vtolInFwdFlightChanged ( bool  vtolInFwdFlight)
signal

◆ windFactGroup()

FactGroup * Vehicle::windFactGroup ( )
inline

Definition at line 557 of file Vehicle.h.

◆ xConfigMotors()

bool Vehicle::xConfigMotors ( )
Returns
true: X confiuration, false: Plus configuration

Definition at line 1505 of file Vehicle.cc.

References FirmwarePlugin::multiRotorXConfig().

Friends And Related Symbol Documentation

◆ FactGroupListModel

friend class FactGroupListModel
friend

Definition at line 99 of file Vehicle.h.

◆ GimbalController

friend class GimbalController
friend

Definition at line 106 of file Vehicle.h.

◆ InitialConnectStateMachine

friend class InitialConnectStateMachine
friend

Definition at line 97 of file Vehicle.h.

◆ VehicleLinkManager

friend class VehicleLinkManager
friend

Definition at line 98 of file Vehicle.h.

Member Data Documentation

◆ _actuators

Actuators* Vehicle::_actuators = nullptr

Definition at line 1251 of file Vehicle.h.

Referenced by setActuatorsMetadata().

◆ _altitudeAboveTerrLastCoord

QGeoCoordinate Vehicle::_altitudeAboveTerrLastCoord

Definition at line 1267 of file Vehicle.h.

◆ _altitudeAboveTerrLastRelAlt

float Vehicle::_altitudeAboveTerrLastRelAlt = qQNaN()

Definition at line 1268 of file Vehicle.h.

◆ _altitudeAboveTerrQueryTimer

QElapsedTimer Vehicle::_altitudeAboveTerrQueryTimer

Definition at line 1264 of file Vehicle.h.

Referenced by Vehicle().

◆ _altitudeAboveTerrTerrainAtCoordinateQuery

TerrainAtCoordinateQuery* Vehicle::_altitudeAboveTerrTerrainAtCoordinateQuery = nullptr

Definition at line 1265 of file Vehicle.h.

◆ _altitudeTuningOffset

float Vehicle::_altitudeTuningOffset = qQNaN()

Definition at line 1193 of file Vehicle.h.

Referenced by setPIDTuningTelemetryMode().

◆ _batteryFactGroupListModel

BatteryFactGroupListModel Vehicle::_batteryFactGroupListModel

Definition at line 1240 of file Vehicle.h.

◆ _clockFactGroup

VehicleClockFactGroup Vehicle::_clockFactGroup

Definition at line 1227 of file Vehicle.h.

◆ _clockFactGroupName

const QString Vehicle::_clockFactGroupName = QStringLiteral("clock")

Definition at line 1208 of file Vehicle.h.

◆ _currentDoSetHomeTerrainAtCoordinateQuery

TerrainAtCoordinateQuery* Vehicle::_currentDoSetHomeTerrainAtCoordinateQuery = nullptr

Definition at line 1256 of file Vehicle.h.

Referenced by doSetHome().

◆ _distanceSensorFactGroup

VehicleDistanceSensorFactGroup Vehicle::_distanceSensorFactGroup

Definition at line 1229 of file Vehicle.h.

◆ _distanceSensorFactGroupName

const QString Vehicle::_distanceSensorFactGroupName = QStringLiteral("distanceSensor")

Definition at line 1210 of file Vehicle.h.

◆ _doSetHomeCoordinate

QGeoCoordinate Vehicle::_doSetHomeCoordinate

Definition at line 1257 of file Vehicle.h.

Referenced by doSetHome().

◆ _efiFactGroup

VehicleEFIFactGroup Vehicle::_efiFactGroup

Definition at line 1235 of file Vehicle.h.

◆ _efiFactGroupName

const QString Vehicle::_efiFactGroupName = QStringLiteral("efi")

Definition at line 1217 of file Vehicle.h.

◆ _escStatusFactGroupListModel

EscStatusFactGroupListModel Vehicle::_escStatusFactGroupListModel

Definition at line 1241 of file Vehicle.h.

◆ _estimatorStatusFactGroup

VehicleEstimatorStatusFactGroup Vehicle::_estimatorStatusFactGroup

Definition at line 1232 of file Vehicle.h.

◆ _estimatorStatusFactGroupName

const QString Vehicle::_estimatorStatusFactGroupName = QStringLiteral("estimatorStatus")

Definition at line 1213 of file Vehicle.h.

◆ _fixed_wing_airspeed_limits_available

bool Vehicle::_fixed_wing_airspeed_limits_available = false

Definition at line 1197 of file Vehicle.h.

◆ _ftpManager

FTPManager* Vehicle::_ftpManager = nullptr

Definition at line 1249 of file Vehicle.h.

◆ _generatorFactGroup

VehicleGeneratorFactGroup Vehicle::_generatorFactGroup

Definition at line 1234 of file Vehicle.h.

◆ _generatorFactGroupName

const QString Vehicle::_generatorFactGroupName = QStringLiteral("generator")

Definition at line 1216 of file Vehicle.h.

◆ _geoFenceManager

GeoFenceManager* Vehicle::_geoFenceManager = nullptr

Definition at line 1246 of file Vehicle.h.

◆ _gps2FactGroup

VehicleGPS2FactGroup Vehicle::_gps2FactGroup

Definition at line 1222 of file Vehicle.h.

◆ _gps2FactGroupName

const QString Vehicle::_gps2FactGroupName = QStringLiteral("gps2")

Definition at line 1203 of file Vehicle.h.

◆ _gpsAggregateFactGroup

VehicleGPSAggregateFactGroup Vehicle::_gpsAggregateFactGroup

Definition at line 1223 of file Vehicle.h.

◆ _gpsAggregateFactGroupName

const QString Vehicle::_gpsAggregateFactGroupName = QStringLiteral("gpsAggregate")

Definition at line 1204 of file Vehicle.h.

◆ _gpsFactGroup

VehicleGPSFactGroup Vehicle::_gpsFactGroup

Definition at line 1221 of file Vehicle.h.

◆ _gpsFactGroupName

const QString Vehicle::_gpsFactGroupName = QStringLiteral("gps")

Definition at line 1202 of file Vehicle.h.

◆ _hygrometerFactGroup

VehicleHygrometerFactGroup Vehicle::_hygrometerFactGroup

Definition at line 1233 of file Vehicle.h.

◆ _hygrometerFactGroupName

const QString Vehicle::_hygrometerFactGroupName = QStringLiteral("hygrometer")

Definition at line 1215 of file Vehicle.h.

◆ _initialConnectStateMachine

InitialConnectStateMachine* Vehicle::_initialConnectStateMachine = nullptr

Definition at line 1250 of file Vehicle.h.

Referenced by isInitialConnectComplete(), and Vehicle().

◆ _localPositionFactGroup

VehicleLocalPositionFactGroup Vehicle::_localPositionFactGroup

Definition at line 1230 of file Vehicle.h.

Referenced by setPIDTuningTelemetryMode().

◆ _localPositionFactGroupName

const QString Vehicle::_localPositionFactGroupName = QStringLiteral("localPosition")

Definition at line 1211 of file Vehicle.h.

◆ _localPositionSetpointFactGroup

VehicleLocalPositionSetpointFactGroup Vehicle::_localPositionSetpointFactGroup

Definition at line 1231 of file Vehicle.h.

Referenced by setPIDTuningTelemetryMode().

◆ _localPositionSetpointFactGroupName

const QString Vehicle::_localPositionSetpointFactGroupName = QStringLiteral("localPositionSetpoint")

Definition at line 1212 of file Vehicle.h.

◆ _lowestBatteryChargeStateAnnouncedMap

QMap<uint8_t , uint8_t > Vehicle::_lowestBatteryChargeStateAnnouncedMap

Definition at line 1191 of file Vehicle.h.

◆ _missionManager

MissionManager* Vehicle::_missionManager = nullptr

Definition at line 1245 of file Vehicle.h.

Referenced by ~Vehicle().

◆ _multirotor_speed_limits_available

bool Vehicle::_multirotor_speed_limits_available = false

Definition at line 1196 of file Vehicle.h.

◆ _rallyPointManager

RallyPointManager* Vehicle::_rallyPointManager = nullptr

Definition at line 1247 of file Vehicle.h.

◆ _remoteIDManager

RemoteIDManager* Vehicle::_remoteIDManager = nullptr

Definition at line 1252 of file Vehicle.h.

◆ _roiCoordinate

QGeoCoordinate Vehicle::_roiCoordinate

Definition at line 1261 of file Vehicle.h.

Referenced by guidedModeROI().

◆ _roiTerrainAtCoordinateQuery

TerrainAtCoordinateQuery* Vehicle::_roiTerrainAtCoordinateQuery = nullptr

Definition at line 1260 of file Vehicle.h.

Referenced by guidedModeROI().

◆ _rpmFactGroup

VehicleRPMFactGroup Vehicle::_rpmFactGroup

Definition at line 1236 of file Vehicle.h.

◆ _rpmFactGroupName

const QString Vehicle::_rpmFactGroupName = QStringLiteral("rpm")

Definition at line 1218 of file Vehicle.h.

◆ _setpointFactGroup

VehicleSetpointFactGroup Vehicle::_setpointFactGroup

Definition at line 1228 of file Vehicle.h.

Referenced by setPIDTuningTelemetryMode().

◆ _setpointFactGroupName

const QString Vehicle::_setpointFactGroupName = QStringLiteral("setpoint")

Definition at line 1209 of file Vehicle.h.

◆ _standardModes

StandardModes* Vehicle::_standardModes = nullptr

Definition at line 1253 of file Vehicle.h.

◆ _temperatureFactGroup

VehicleTemperatureFactGroup Vehicle::_temperatureFactGroup

Definition at line 1226 of file Vehicle.h.

◆ _temperatureFactGroupName

const QString Vehicle::_temperatureFactGroupName = QStringLiteral("temperature")

Definition at line 1207 of file Vehicle.h.

◆ _terrainFactGroup

TerrainFactGroup Vehicle::_terrainFactGroup

Definition at line 1237 of file Vehicle.h.

◆ _terrainFactGroupName

const QString Vehicle::_terrainFactGroupName = QStringLiteral("terrain")

Definition at line 1214 of file Vehicle.h.

◆ _terrainProtocolHandler

TerrainProtocolHandler* Vehicle::_terrainProtocolHandler = nullptr

Definition at line 1243 of file Vehicle.h.

◆ _vehicleFactGroup

VehicleFactGroup* Vehicle::_vehicleFactGroup

Definition at line 1220 of file Vehicle.h.

◆ _vehicleFactGroupName

const QString Vehicle::_vehicleFactGroupName = QStringLiteral("vehicle")

Definition at line 1201 of file Vehicle.h.

◆ _vehicleLinkManager

VehicleLinkManager* Vehicle::_vehicleLinkManager = nullptr

Definition at line 1248 of file Vehicle.h.

◆ _vibrationFactGroup

VehicleVibrationFactGroup Vehicle::_vibrationFactGroup

Definition at line 1225 of file Vehicle.h.

◆ _vibrationFactGroupName

const QString Vehicle::_vibrationFactGroupName = QStringLiteral("vibration")

Definition at line 1206 of file Vehicle.h.

◆ _windFactGroup

VehicleWindFactGroup Vehicle::_windFactGroup

Definition at line 1224 of file Vehicle.h.

◆ _windFactGroupName

const QString Vehicle::_windFactGroupName = QStringLiteral("wind")

Definition at line 1205 of file Vehicle.h.

◆ kTestMavCommandAckTimeoutMs

constexpr int Vehicle::kTestMavCommandAckTimeoutMs = 500
staticconstexpr

Ack timeout used in unit tests. Increased from 100ms to accommodate ASan/UBSan scheduling jitter which can delay ack processing by >100ms on loaded CI runners.

Definition at line 1177 of file Vehicle.h.

◆ kTestMavCommandMaxWaitMs

constexpr int Vehicle::kTestMavCommandMaxWaitMs = kTestMavCommandAckTimeoutMs * _mavCommandMaxRetryCount * 2
staticconstexpr

Maximum wait time for mav command in unit tests (all retries + overhead)

Definition at line 1179 of file Vehicle.h.

◆ MAV_AUTOPILOT_TRACK

const MAV_AUTOPILOT Vehicle::MAV_AUTOPILOT_TRACK = MAV_AUTOPILOT_ENUM_END
static

Definition at line 119 of file Vehicle.h.

Referenced by Vehicle().

◆ MAV_TYPE_TRACK

const MAV_TYPE Vehicle::MAV_TYPE_TRACK = MAV_TYPE_ENUM_END
static

Definition at line 120 of file Vehicle.h.

◆ versionNotSetValue


The documentation for this class was generated from the following files: