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:

Public Types

enum  CheckList { CheckListNotSetup = 0 , CheckListPassed , CheckListFailed }
 
enum  PIDTuningTelemetryMode { ModeDisabled , ModeRateAndAttitude , ModeVelocityAndPosition , ModeAltitudeAndAirspeed }
 
- Public Types inherited from VehicleTypes
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)
 Callback for sendMavCommandWithHandler which handles MAV_RESULT_IN_PROGRESS acks.
 
typedef void(* MavCmdResultHandler) (void *resultHandlerData, int compId, const mavlink_command_ack_t &ack, MavCmdResultFailureCode_t failureCode)
 Callback for sendMavCommandWithHandler which handles all non-IN_PROGRESS acks.
 
typedef struct VehicleTypes::MavCmdAckHandlerInfo_s MavCmdAckHandlerInfo_t
 Callback info bundle for sendMavCommandWithHandler.
 
typedef void(* RequestMessageResultHandler) (void *resultHandlerData, MAV_RESULT commandResult, RequestMessageResultHandlerFailureCode_t failureCode, const mavlink_message_t &message)
 Callback for requestMessage — delivered when the ack/message pair resolves or a failure occurs.
 

Public Slots

void setVtolInFwdFlight (bool vtolInFwdFlight)
 
void _offlineFirmwareTypeSettingChanged (QVariant varFirmwareType)
 
void _offlineVehicleTypeSettingChanged (QVariant varVehicleType)
 
Q_INVOKABLE void sendGripperAction (GRIPPER_ACTIONS 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 checkListStateChanged ()
 
void longitudeChanged ()
 
void currentConfigChanged ()
 
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 rcChannelsRawChanged (QVector< int > channelValues)
 
void rcChannelsClampedChanged (QVector< int > channelValues)
 
void servoOutputsChanged (QVector< int > servoValues)
 
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 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 ()
 
Q_INVOKABLE void resetCounters ()
 < Flight mode vehicle is in while performing goto
 
Q_INVOKABLE void virtualTabletJoystickValue (double roll, double pitch, double yaw, double thrust)
 
Q_INVOKABLE void guidedModeRTL (bool smartRTL)
 Command vehicle to return to launch.
 
Q_INVOKABLE void guidedModeLand ()
 Command vehicle to land at current location.
 
Q_INVOKABLE void guidedModeTakeoff (double altitudeRelative)
 Command vehicle to takeoff from current location.
 
Q_INVOKABLE double minimumTakeoffAltitudeMeters ()
 
Q_INVOKABLE double maximumHorizontalSpeedMultirotorMetersSecond ()
 
Q_INVOKABLE double maximumEquivalentAirspeed ()
 
Q_INVOKABLE double minimumEquivalentAirspeed ()
 
Q_INVOKABLE bool guidedModeGotoLocation (const QGeoCoordinate &gotoCoord, double forwardFlightLoiterRadius=0.0f)
 
Q_INVOKABLE void guidedModeChangeAltitude (double altitudeChange, bool pauseVehicle)
 
Q_INVOKABLE void guidedModeChangeHeading (const QGeoCoordinate &headingCoord)
 
Q_INVOKABLE void guidedModeChangeGroundSpeedMetersSecond (double groundspeed)
 
Q_INVOKABLE void guidedModeChangeEquivalentAirspeedMetersSecond (double airspeed)
 
Q_INVOKABLE void guidedModeOrbit (const QGeoCoordinate &centerCoord, double radius, double amslAltitude)
 
Q_INVOKABLE void guidedModeROI (const QGeoCoordinate &centerCoord)
 
Q_INVOKABLE void stopGuidedModeROI ()
 
Q_INVOKABLE void pauseVehicle ()
 
Q_INVOKABLE void emergencyStop ()
 Command vehicle to kill all motors no matter what state.
 
Q_INVOKABLE void abortLanding (double climbOutAltitude)
 Command vehicle to abort landing.
 
Q_INVOKABLE void landingGearDeploy ()
 Command vichecle to deploy landing gear.
 
Q_INVOKABLE void landingGearRetract ()
 Command vichecle to retract landing gear.
 
Q_INVOKABLE void startTakeoff ()
 
Q_INVOKABLE void startMission ()
 
Q_INVOKABLE void setCurrentMissionSequence (int seq)
 Alter the current mission item on the vehicle.
 
Q_INVOKABLE void rebootVehicle ()
 Reboot vehicle.
 
Q_INVOKABLE void sendPlan (QString planFile)
 
Q_INVOKABLE void setEstimatorOrigin (const QGeoCoordinate &centerCoord)
 
Q_INVOKABLE int versionCompare (const QString &compare) const
 Used to check if running current version is equal or higher than the one being compared.
 
Q_INVOKABLE int versionCompare (int major, int minor, int patch) const
 
Q_INVOKABLE void motorTest (int motor, int percent, int timeoutSecs, bool showError)
 
Q_INVOKABLE void setPIDTuningTelemetryMode (PIDTuningTelemetryMode mode)
 
Q_INVOKABLE void forceArm ()
 
Q_INVOKABLE void sendParamMapRC (const QString &paramName, double scale, double centerValue, int tuningID, double minValue, double maxValue)
 Sends PARAM_MAP_RC message to vehicle.
 
Q_INVOKABLE void clearAllParamMapRC (void)
 Clears all PARAM_MAP_RC settings from vehicle.
 
Q_INVOKABLE void closeVehicle ()
 Removes the vehicle from the system.
 
Q_INVOKABLE void triggerSimpleCamera (void)
 Trigger camera using MAV_CMD_DO_DIGICAM_CONTROL command.
 
Q_INVOKABLE void doSetHome (const QGeoCoordinate &coord)
 Set home from flight map coordinate.
 
Q_INVOKABLE QVariant expandedToolbarIndicatorSource (const QString &indicatorName)
 
bool isInitialConnectComplete () const
 
QString gotoFlightMode () const
 
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)
 
void sendJoystickAuxRcOverrideThreadSafe (const std::array< uint16_t, kAuxRcOverrideChannelCount > &channelValues, const std::array< bool, kAuxRcOverrideChannelCount > &channelEnabled, bool useRcOverride)
 
int id () const
 
int compId () const
 
MAV_AUTOPILOT firmwareType () const
 
MAV_TYPE vehicleType () const
 
QGCMAVLink::VehicleClass_t vehicleClass (void) const
 
Q_INVOKABLE QString vehicleClassInternalName () const
 
bool sendMessageOnLinkThreadSafe (LinkInterface *link, mavlink_message_t message)
 
void sendMessageMultiple (mavlink_message_t message)
 
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 ()
 
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
 
uint32_t effectiveCustomMode () const
 
bool isOfflineEditingVehicle () const
 
int sensorsPresentBits () const
 
int sensorsEnabledBits () const
 
int sensorsHealthBits () const
 
int sensorsUnhealthyBits () const
 
QString missionFlightMode () const
 
QString pauseFlightMode () const
 
QString rtlFlightMode () const
 
QString smartRTLFlightMode () const
 
QString landFlightMode () const
 
QString takeControlFlightMode () const
 
QString followFlightMode () const
 
QString motorDetectionFlightMode () const
 
QString stabilizedFlightMode () const
 
double defaultCruiseSpeed () const
 
double defaultHoverSpeed () const
 
QString firmwareTypeString () const
 
QString vehicleTypeString () const
 
bool autoDisarm ()
 
bool orbitActive () const
 
QGCMapCircleorbitMapCircle ()
 
bool readyToFlyAvailable () const
 
bool readyToFly () const
 
bool allSensorsHealthy () const
 
QObject * sysStatusSensorInfo ()
 
bool requiresGpsFix () const
 
bool hilMode () const
 
Actuatorsactuators () const
 
VehicleSigningControllersigningController ()
 
const VehicleSigningControllersigningController () 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 ()
 
FactGroupradioStatusFactGroup ()
 
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.
 
Q_INVOKABLE void sendCommand (int compId, int command, bool showError, double param1=0.0, double param2=0.0, double param3=0.0, double param4=0.0, double param5=0.0, double param6=0.0, double param7=0.0)
 Same as sendMavCommand but available from Qml.
 
void sendMavCommandWithHandler (const MavCmdAckHandlerInfo_t *ackHandlerInfo, int compId, MAV_CMD command, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, float param5=0.0f, float param6=0.0f, float param7=0.0f)
 Sends the command and calls the callback with the result.
 
void sendMavCommandIntWithHandler (const MavCmdAckHandlerInfo_t *ackHandlerInfo, int compId, MAV_CMD command, MAV_FRAME frame, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, double param5=0.0f, double param6=0.0f, float param7=0.0f)
 
void sendMavCommandWithLambdaFallback (std::function< void()> lambda, int compId, MAV_CMD command, bool showError, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, float param5=0.0f, float param6=0.0f, float param7=0.0f)
 
void 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 setActuatorsMetadata (uint8_t compid, const QString &metadataJsonFileName)
 
GimbalControllergimbalController ()
 
int _findMavCommandListEntryIndex (int targetCompId, MAV_CMD command)
 Test-only helper: forwards to MavCommandQueue::findEntryIndex.
 
int32_t getMessageRate (uint8_t compId, uint16_t msgId)
 
void setMessageRate (uint8_t compId, uint16_t msgId, int32_t rate)
 
Q_INVOKABLE void flashBootloader ()
 
Q_INVOKABLE void motorInterlock (bool enable)
 Command vehicle to Enable/Disable Motor Interlock.
 
Q_INVOKABLE void startTimerRevertAllowTakeover ()
 
Q_INVOKABLE void requestOperatorControl (bool allowOverride, int requestTimeoutSecs=0)
 
Q_INVOKABLE void resetAllMessages ()
 
Q_INVOKABLE void resetErrorLevelMessages ()
 
Q_INVOKABLE void clearMessages ()
 
bool messageTypeNone () const
 
bool messageTypeNormal () const
 
bool messageTypeWarning () const
 
bool messageTypeError () const
 
int messageCount () const
 
QString formattedMessages () const
 
uint32_t flowImageIndex () const
 
MAVLinkLogManagermavlinkLogManager () const
 
QGCCameraManagercameraManager ()
 
const QVariantList & staticCameraList () const
 
HealthAndArmingCheckReporthealthAndArmingCheckReport ()
 
void setEventsMetadata (uint8_t compid, const QString &metadataJsonFileName)
 
- Public Member Functions inherited from VehicleFactGroup
 VehicleFactGroup (QObject *parent=nullptr)
 
Factroll ()
 
Factpitch ()
 
Factheading ()
 
FactrollRate ()
 
FactpitchRate ()
 
FactyawRate ()
 
FactairSpeed ()
 
FactairSpeedSetpoint ()
 
FactgroundSpeed ()
 
FactclimbRate ()
 
FactaltitudeRelative ()
 
FactaltitudeAMSL ()
 
FactaltitudeAboveTerr ()
 
FactaltitudeTuning ()
 
FactaltitudeTuningSetpoint ()
 
FactxTrackError ()
 
FactrangeFinderDist ()
 
FactflightDistance ()
 
FactdistanceToHome ()
 
FacttimeToHome ()
 
FactmissionItemIndex ()
 
FactheadingToNextWP ()
 
FactdistanceToNextWP ()
 
FactheadingToHome ()
 
FactheadingFromHome ()
 
FactheadingFromGCS ()
 
FactdistanceToGCS ()
 
Facthobbs ()
 
FactthrottlePct ()
 
FactimuTemp ()
 
FactrcRSSI ()
 
void handleMessage (Vehicle *vehicle, const mavlink_message_t &message) override
 Allows a FactGroup to parse incoming messages and fill in values.
 
void updateRCRSSI (uint8_t rssi)
 
- Public Member Functions inherited from FactGroup
 FactGroup (int updateRateMsecs, const QString &metaDataFile, QObject *parent=nullptr, bool ignoreCamelCase=false)
 < false: No telemetry for these values has been received
 
 FactGroup (int updateRateMsecs, QObject *parent=nullptr, bool ignoreCamelCase=false)
 
virtual ~FactGroup ()
 
Q_INVOKABLE bool factExists (const QString &name) const
 @ return true: if the fact exists in the group
 
Q_INVOKABLE FactgetFact (const QString &name) const
 
Q_INVOKABLE FactGroupgetFactGroup (const QString &name) const
 
Q_INVOKABLE void setLiveUpdates (bool liveUpdates)
 Turning on live updates will allow value changes to flow through as they are received.
 
QStringList factNames () const
 
QStringList factGroupNames () const
 
bool telemetryAvailable () const
 
const QMap< QString, FactGroup * > & factGroups () const
 

Static Public Member Functions

static void showCommandAckError (const mavlink_command_ack_t &ack)
 
static QString mavCmdResultFailureCodeToString (MavCmdResultFailureCode_t failureCode)
 
static QString requestMessageResultHandlerFailureCodeToString (RequestMessageResultHandlerFailureCode_t failureCode)
 

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")
 
const QString _radioStatusFactGroupName = QStringLiteral("radioStatus")
 
VehicleFactGroup_vehicleFactGroup
 
VehicleGPSFactGroup_gpsFactGroup = nullptr
 
VehicleGPS2FactGroup_gps2FactGroup = nullptr
 
VehicleGPSAggregateFactGroup_gpsAggregateFactGroup = nullptr
 
VehicleWindFactGroup_windFactGroup = nullptr
 
VehicleVibrationFactGroup_vibrationFactGroup = nullptr
 
VehicleTemperatureFactGroup_temperatureFactGroup = nullptr
 
VehicleClockFactGroup_clockFactGroup = nullptr
 
VehicleSetpointFactGroup_setpointFactGroup = nullptr
 
VehicleDistanceSensorFactGroup_distanceSensorFactGroup = nullptr
 
VehicleLocalPositionFactGroup_localPositionFactGroup = nullptr
 
VehicleLocalPositionSetpointFactGroup_localPositionSetpointFactGroup = nullptr
 
VehicleEstimatorStatusFactGroup_estimatorStatusFactGroup = nullptr
 
VehicleHygrometerFactGroup_hygrometerFactGroup = nullptr
 
VehicleGeneratorFactGroup_generatorFactGroup = nullptr
 
VehicleEFIFactGroup_efiFactGroup = nullptr
 
VehicleRPMFactGroup_rpmFactGroup = nullptr
 
TerrainFactGroup_terrainFactGroup = nullptr
 
RadioStatusFactGroup_radioStatusFactGroup = nullptr
 
QVector< int > _servoOutputRawValues = QVector<int>(16, -1)
 
BatteryFactGroupListModel_batteryFactGroupListModel = nullptr
 
EscStatusFactGroupListModel_escStatusFactGroupListModel = nullptr
 
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
 
TerrainQueryCoordinator_terrainQueryCoordinator = nullptr
 

Static Public Attributes

static const MAV_AUTOPILOT MAV_AUTOPILOT_TRACK = MAV_AUTOPILOT_ENUM_END
 
static const MAV_TYPE MAV_TYPE_TRACK = MAV_TYPE_ENUM_END
 
static constexpr int kAuxRcOverrideChannelCount = 6
 Sends RC_CHANNELS_OVERRIDE for joystick aux axes mapped to RC channels 5–10 only.
 
static constexpr int _mavCommandMaxRetryCount = 3
 
static constexpr int kTestMavCommandAckTimeoutMs = 500
 
static constexpr int kTestMavCommandMaxWaitMs = kTestMavCommandAckTimeoutMs * _mavCommandMaxRetryCount * 2
 
- Static Public Attributes inherited from VehicleTypes
static const int versionNotSetValue = -1
 

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)
 
Fact _rcRSSIFact = Fact(0, QStringLiteral("rcRSSI"), FactMetaData::valueTypeUint8)
 
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 85 of file Vehicle.h.

Member Enumeration Documentation

◆ CheckList

Enumerator
CheckListNotSetup 
CheckListPassed 
CheckListFailed 

Definition at line 137 of file Vehicle.h.

◆ PIDTuningTelemetryMode

Enumerator
ModeDisabled 
ModeRateAndAttitude 
ModeVelocityAndPosition 
ModeAltitudeAndAirspeed 

Definition at line 370 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 388 of file Vehicle.cc.

References _missionManager, and MavCommandQueue::stop().

Member Function Documentation

◆ _findMavCommandListEntryIndex()

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

Test-only helper: forwards to MavCommandQueue::findEntryIndex.

Definition at line 2195 of file Vehicle.cc.

References MavCommandQueue::findEntryIndex().

◆ _offlineFirmwareTypeSettingChanged

void Vehicle::_offlineFirmwareTypeSettingChanged ( QVariant  varFirmwareType)
slot

◆ _offlineVehicleTypeSettingChanged

void Vehicle::_offlineVehicleTypeSettingChanged ( QVariant  varVehicleType)
slot

◆ _setFlying()

void Vehicle::_setFlying ( bool  flying)

Definition at line 1807 of file Vehicle.cc.

References flying(), and flyingChanged().

◆ _setHomePosition()

void Vehicle::_setHomePosition ( QGeoCoordinate &  homeCoord)

Definition at line 1188 of file Vehicle.cc.

References homePositionChanged().

Referenced by PlanManager::_handleMissionItem().

◆ _setLanding()

void Vehicle::_setLanding ( bool  landing)

Definition at line 1815 of file Vehicle.cc.

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

◆ abortLanding()

void Vehicle::abortLanding ( double  climbOutAltitude)

Command vehicle to abort landing.

Definition at line 2056 of file Vehicle.cc.

References defaultComponentId(), and sendMavCommand().

◆ actuators()

Actuators * Vehicle::actuators ( ) const
inline

Definition at line 537 of file Vehicle.h.

References _actuators.

Referenced by PX4AutoPilotPlugin::vehicleComponents().

◆ airship()

◆ allSensorsHealthy()

bool Vehicle::allSensorsHealthy ( ) const
inline

Definition at line 533 of file Vehicle.h.

◆ allSensorsHealthyChanged

void Vehicle::allSensorsHealthyChanged ( bool  allSensorsHealthy)
signal

◆ apmFirmware()

◆ armed()

◆ armedChanged

void Vehicle::armedChanged ( bool  armed)
signal

◆ armedPosition()

QGeoCoordinate Vehicle::armedPosition ( )
inline

Definition at line 410 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 579 of file Vehicle.h.

◆ baseMode()

uint8_t Vehicle::baseMode ( ) const
inline

Definition at line 505 of file Vehicle.h.

◆ batteries()

QmlObjectListModel * Vehicle::batteries ( )

Definition at line 430 of file Vehicle.cc.

References _batteryFactGroupListModel.

◆ cameraManager()

◆ cameraManagerChanged

void Vehicle::cameraManagerChanged ( )
signal

◆ cameraTriggerPoints()

QmlObjectListModel * Vehicle::cameraTriggerPoints ( )

Definition at line 434 of file Vehicle.cc.

◆ capabilitiesKnown()

bool Vehicle::capabilitiesKnown ( ) const
inline

Definition at line 696 of file Vehicle.h.

Referenced by OnboardLogFtpController::refresh().

◆ capabilitiesKnownChanged

void Vehicle::capabilitiesKnownChanged ( bool  capabilitiesKnown)
signal

◆ capabilityBits()

◆ capabilityBitsChanged

void Vehicle::capabilityBitsChanged ( uint64_t  capabilityBits)
signal

◆ checkListState()

CheckList Vehicle::checkListState ( )
inline

Definition at line 724 of file Vehicle.h.

◆ checkListStateChanged

void Vehicle::checkListStateChanged ( )
signal

Referenced by setCheckListState().

◆ clearAllParamMapRC()

void Vehicle::clearAllParamMapRC ( void  )

◆ clearMessages()

void Vehicle::clearMessages ( )

Definition at line 3390 of file Vehicle.cc.

References StatusTextHandler::clearMessages().

◆ clockFactGroup()

FactGroup * Vehicle::clockFactGroup ( )

Definition at line 417 of file Vehicle.cc.

References _clockFactGroup.

◆ closeVehicle()

void Vehicle::closeVehicle ( )

Removes the vehicle from the system.

Definition at line 435 of file Vehicle.cc.

References _vehicleLinkManager, and VehicleLinkManager::closeVehicle().

◆ coaxialMotors()

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

Definition at line 1419 of file Vehicle.cc.

References FirmwarePlugin::multiRotorCoaxialMotors().

◆ compId()

◆ compInfoManager()

ComponentInformationManager * Vehicle::compInfoManager ( )
inline

Definition at line 577 of file Vehicle.h.

◆ coordinate()

◆ coordinateChanged

void Vehicle::coordinateChanged ( QGeoCoordinate  coordinate)
signal

◆ currentConfigChanged

void Vehicle::currentConfigChanged ( )
signal

◆ customMode()

uint32_t Vehicle::customMode ( ) const
inline

Definition at line 506 of file Vehicle.h.

◆ defaultComponentId()

◆ defaultCruiseSpeed()

double Vehicle::defaultCruiseSpeed ( ) const
inline

◆ defaultCruiseSpeedChanged

void Vehicle::defaultCruiseSpeedChanged ( double  cruiseSpeed)
signal

◆ defaultHoverSpeed()

double Vehicle::defaultHoverSpeed ( ) const
inline

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

Definition at line 419 of file Vehicle.cc.

References _distanceSensorFactGroup.

◆ doSetHome()

void Vehicle::doSetHome ( const QGeoCoordinate &  coord)

Set home from flight map coordinate.

Definition at line 2867 of file Vehicle.cc.

References _terrainQueryCoordinator, and TerrainQueryCoordinator::doSetHomeWithTerrain().

◆ effectiveCustomMode()

uint32_t Vehicle::effectiveCustomMode ( ) const
inline

Custom mode used for health/arming-check mode-group lookups: prefers the user-intention mode reported via CURRENT_MODE, falling back to HEARTBEAT.

Definition at line 509 of file Vehicle.h.

◆ efiFactGroup()

FactGroup * Vehicle::efiFactGroup ( )

Definition at line 426 of file Vehicle.cc.

References _efiFactGroup.

◆ emergencyStop()

void Vehicle::emergencyStop ( )

Command vehicle to kill all motors no matter what state.

Definition at line 2081 of file Vehicle.cc.

References sendMavCommand().

◆ escs()

QmlObjectListModel * Vehicle::escs ( )

Definition at line 431 of file Vehicle.cc.

References _escStatusFactGroupListModel.

◆ estimatorStatusFactGroup()

FactGroup * Vehicle::estimatorStatusFactGroup ( )

Definition at line 422 of file Vehicle.cc.

References _estimatorStatusFactGroup.

◆ expandedToolbarIndicatorSource()

QVariant Vehicle::expandedToolbarIndicatorSource ( const QString &  indicatorName)

Definition at line 3340 of file Vehicle.cc.

References FirmwarePlugin::expandedToolbarIndicatorSource().

◆ firmwareBoardProductId()

int Vehicle::firmwareBoardProductId ( ) const
inline

Definition at line 657 of file Vehicle.h.

◆ firmwareBoardVendorId()

int Vehicle::firmwareBoardVendorId ( ) const
inline

Definition at line 656 of file Vehicle.h.

◆ firmwareCustomMajorVersion()

int Vehicle::firmwareCustomMajorVersion ( ) const
inline

Definition at line 653 of file Vehicle.h.

◆ firmwareCustomMinorVersion()

int Vehicle::firmwareCustomMinorVersion ( ) const
inline

Definition at line 654 of file Vehicle.h.

◆ firmwareCustomPatchVersion()

int Vehicle::firmwareCustomPatchVersion ( ) const
inline

Definition at line 655 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

◆ firmwareTypeChanged

void Vehicle::firmwareTypeChanged ( )
signal

◆ firmwareTypeString()

QString Vehicle::firmwareTypeString ( ) const

Definition at line 505 of file Vehicle.cc.

References QGCMAVLink::firmwareClassToString().

◆ firmwareVersionChanged

void Vehicle::firmwareVersionChanged ( )
signal

Referenced by setFirmwareVersion().

◆ firmwareVersionType()

int Vehicle::firmwareVersionType ( ) const
inline

Definition at line 652 of file Vehicle.h.

Referenced by FirmwarePlugin::_versionFileDownloadFinished().

◆ firmwareVersionTypeString()

QString Vehicle::firmwareVersionTypeString ( ) const

◆ fixedWing()

◆ flashBootloader()

void Vehicle::flashBootloader ( )

Definition at line 3359 of file Vehicle.cc.

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

◆ flightMode()

◆ flightModeChanged

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

◆ flightModes()

QStringList Vehicle::flightModes ( )

Definition at line 1462 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 3491 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 2563 of file Vehicle.cc.

References FirmwarePlugin::followFlightMode().

◆ forceArm()

void Vehicle::forceArm ( void  )

Definition at line 1448 of file Vehicle.cc.

References sendMavCommand().

◆ forceInitialPlanRequestComplete()

void Vehicle::forceInitialPlanRequestComplete ( )

Definition at line 2707 of file Vehicle.cc.

References initialPlanRequestCompleteChanged().

◆ formattedMessages()

QString Vehicle::formattedMessages ( ) const

Definition at line 3396 of file Vehicle.cc.

References StatusTextHandler::formattedMessages().

◆ formattedMessagesChanged

void Vehicle::formattedMessagesChanged ( )
signal

◆ ftpManager()

FTPManager * Vehicle::ftpManager ( )
inline

Definition at line 576 of file Vehicle.h.

References _ftpManager.

Referenced by OnboardLogFtpController::cancel().

◆ gcsControlStatusChanged

void Vehicle::gcsControlStatusChanged ( )
signal

◆ generatorFactGroup()

FactGroup * Vehicle::generatorFactGroup ( )

Definition at line 425 of file Vehicle.cc.

References _generatorFactGroup.

◆ genericFirmware()

bool Vehicle::genericFirmware ( ) const
inline

Definition at line 496 of file Vehicle.h.

References apmFirmware(), and px4Firmware().

◆ geoFenceManager()

GeoFenceManager * Vehicle::geoFenceManager ( )
inline

Definition at line 571 of file Vehicle.h.

References _geoFenceManager.

◆ getInitialGCSPressure()

qreal Vehicle::getInitialGCSPressure ( ) const
inline

Definition at line 412 of file Vehicle.h.

Referenced by APMFirmwarePlugin::startCompensatingBaro().

◆ getInitialGCSTemperature()

qreal Vehicle::getInitialGCSTemperature ( ) const
inline

Definition at line 413 of file Vehicle.h.

Referenced by APMFirmwarePlugin::startCompensatingBaro().

◆ getMessageRate()

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

Definition at line 3330 of file Vehicle.cc.

References compId(), and MessageIntervalManager::getMessageRate().

◆ gimbalController()

GimbalController * Vehicle::gimbalController ( )
inline

Definition at line 731 of file Vehicle.h.

◆ gitHash()

QString Vehicle::gitHash ( ) const
inline

Definition at line 663 of file Vehicle.h.

Referenced by ParameterManager::writeParametersToStream().

◆ gitHashChanged

void Vehicle::gitHashChanged ( QString  hash)
signal

◆ gotoFlightMode()

QString Vehicle::gotoFlightMode ( ) const

Definition at line 1823 of file Vehicle.cc.

References FirmwarePlugin::gotoFlightMode().

◆ gps2FactGroup()

FactGroup * Vehicle::gps2FactGroup ( )

Definition at line 412 of file Vehicle.cc.

References _gps2FactGroup.

◆ gpsAggregateFactGroup()

FactGroup * Vehicle::gpsAggregateFactGroup ( )

Definition at line 413 of file Vehicle.cc.

References _gpsAggregateFactGroup.

◆ gpsFactGroup()

FactGroup * Vehicle::gpsFactGroup ( )

Definition at line 411 of file Vehicle.cc.

References _gpsFactGroup.

◆ guidedMode()

bool Vehicle::guidedMode ( ) const

Definition at line 2065 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 1914 of file Vehicle.cc.

References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeChangeAltitude(), pauseVehicle(), and QGC::showAppMessage().

◆ 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 1934 of file Vehicle.cc.

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

◆ guidedModeChangeGroundSpeedMetersSecond()

void Vehicle::guidedModeChangeGroundSpeedMetersSecond ( double  groundspeed)

Command vehicle to change groundspeed

Parameters
groundspeedTarget horizontal groundspeed

Definition at line 1924 of file Vehicle.cc.

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

◆ guidedModeChangeHeading()

void Vehicle::guidedModeChangeHeading ( const QGeoCoordinate &  headingCoord)

Command vehicle to change yaw

Parameters
coordinateto rotate towards

Definition at line 2037 of file Vehicle.cc.

References VehicleSupports::changeHeading(), FirmwarePlugin::guidedModeChangeHeading(), and QGC::showAppMessage().

◆ guidedModeGotoLocation()

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

◆ guidedModeLand()

void Vehicle::guidedModeLand ( )

Command vehicle to land at current location.

Definition at line 1837 of file Vehicle.cc.

References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeLand(), and QGC::showAppMessage().

◆ 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 1943 of file Vehicle.cc.

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

◆ guidedModeROI()

void Vehicle::guidedModeROI ( const QGeoCoordinate &  centerCoord)

Command vehicle to keep given point as ROI

Parameters
centerCoordROI coordinates

Definition at line 1975 of file Vehicle.cc.

References _terrainQueryCoordinator, px4Firmware(), roiCoordChanged(), VehicleSupports::roiMode(), TerrainQueryCoordinator::roiWithTerrain(), TerrainQueryCoordinator::sendROICommand(), and QGC::showAppMessage().

◆ guidedModeRTL()

void Vehicle::guidedModeRTL ( bool  smartRTL)

Command vehicle to return to launch.

Definition at line 1828 of file Vehicle.cc.

References guided_mode_not_supported_by_vehicle, VehicleSupports::guidedMode(), FirmwarePlugin::guidedModeRTL(), and QGC::showAppMessage().

◆ guidedModeTakeoff()

void Vehicle::guidedModeTakeoff ( double  altitudeRelative)

◆ hasGripper()

bool Vehicle::hasGripper ( ) const

Definition at line 1877 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 405 of file Vehicle.h.

References _fixed_wing_airspeed_limits_available.

◆ haveMRSpeedLimChanged

void Vehicle::haveMRSpeedLimChanged ( )
signal

◆ haveMRSpeedLimits()

bool Vehicle::haveMRSpeedLimits ( ) const
inline

Definition at line 404 of file Vehicle.h.

References _multirotor_speed_limits_available.

◆ healthAndArmingCheckReport()

HealthAndArmingCheckReport * Vehicle::healthAndArmingCheckReport ( )

Definition at line 3556 of file Vehicle.cc.

◆ hilMode()

bool Vehicle::hilMode ( ) const
inline

Definition at line 536 of file Vehicle.h.

Referenced by PX4AutoPilotPlugin::vehicleComponents().

◆ hobbsMeter()

QString Vehicle::hobbsMeter ( )

Definition at line 2718 of file Vehicle.cc.

References FirmwarePlugin::getHobbsMeter().

◆ hobbsMeterChanged

void Vehicle::hobbsMeterChanged ( )
signal

◆ homePosition()

QGeoCoordinate Vehicle::homePosition ( )

◆ homePositionChanged

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

◆ hygrometerFactGroup()

FactGroup * Vehicle::hygrometerFactGroup ( )

Definition at line 424 of file Vehicle.cc.

References _hygrometerFactGroup.

◆ id()

◆ inFwdFlight()

bool Vehicle::inFwdFlight ( ) const

Definition at line 2075 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 703 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 2804 of file Vehicle.cc.

References _initialConnectStateMachine, and QGCStateMachine::active().

◆ 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 2190 of file Vehicle.cc.

References MavCommandQueue::isPending().

◆ isOfflineEditingVehicle()

◆ isROIEnabled()

bool Vehicle::isROIEnabled ( ) const
inline

Running loss rate.

Definition at line 722 of file Vehicle.h.

◆ isROIEnabledChanged

void Vehicle::isROIEnabledChanged ( )
signal

◆ landFlightMode()

QString Vehicle::landFlightMode ( ) const

Definition at line 2553 of file Vehicle.cc.

References FirmwarePlugin::landFlightMode().

◆ landing()

bool Vehicle::landing ( ) const
inline

Definition at line 501 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 2091 of file Vehicle.cc.

References defaultComponentId(), and sendMavCommand().

◆ landingGearRetract()

void Vehicle::landingGearRetract ( )

Command vichecle to retract landing gear.

Definition at line 2101 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 727 of file Vehicle.h.

◆ loadProgressChanged

void Vehicle::loadProgressChanged ( float  value)
signal

◆ localPositionFactGroup()

FactGroup * Vehicle::localPositionFactGroup ( )

Definition at line 420 of file Vehicle.cc.

References _localPositionFactGroup.

◆ localPositionSetpointFactGroup()

FactGroup * Vehicle::localPositionSetpointFactGroup ( )

Definition at line 421 of file Vehicle.cc.

References _localPositionSetpointFactGroup.

◆ 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(), APMSensorsComponentController::calibrateCompass(), APMSensorsComponentController::calibrateCompassNorth(), SendMavlinkCommandState::connectWaitSignal(), SendMavlinkCommandState::disconnectWaitSignal(), ESP8266ComponentController::ESP8266ComponentController(), PX4FirmwarePlugin::guidedModeTakeoff(), and MAVLinkLogManager::MAVLinkLogManager().

◆ 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 3506 of file Vehicle.cc.

◆ mavlinkLogManagerChanged

void Vehicle::mavlinkLogManagerChanged ( )
signal

◆ mavlinkLossCount()

quint64 Vehicle::mavlinkLossCount ( ) const
inline

Total number of sucessful messages received.

Definition at line 719 of file Vehicle.h.

◆ mavlinkLossPercent()

float Vehicle::mavlinkLossPercent ( ) const
inline

Total number of lost messages.

Definition at line 720 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 718 of file Vehicle.h.

◆ mavlinkSentCount()

quint64 Vehicle::mavlinkSentCount ( ) const
inline

Definition at line 717 of file Vehicle.h.

◆ mavlinkSerialControl

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

◆ mavlinkStatusChanged

void Vehicle::mavlinkStatusChanged ( )
signal

◆ maximumEquivalentAirspeed()

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

Definition at line 1866 of file Vehicle.cc.

References FirmwarePlugin::maximumEquivalentAirspeed().

◆ maximumHorizontalSpeedMultirotorMetersSecond()

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

Definition at line 1860 of file Vehicle.cc.

References FirmwarePlugin::maximumHorizontalSpeedMultirotorMetersSecond().

◆ messageCount()

int Vehicle::messageCount ( ) const

Definition at line 3395 of file Vehicle.cc.

References StatusTextHandler::messageCount().

◆ messageCountChanged

void Vehicle::messageCountChanged ( )
signal

◆ messagesLost()

uint Vehicle::messagesLost ( ) const
inline

Definition at line 499 of file Vehicle.h.

◆ messagesLostChanged

void Vehicle::messagesLostChanged ( )
signal

◆ messagesReceived()

uint Vehicle::messagesReceived ( ) const
inline

Definition at line 497 of file Vehicle.h.

◆ messagesReceivedChanged

void Vehicle::messagesReceivedChanged ( )
signal

◆ messagesSent()

uint Vehicle::messagesSent ( ) const
inline

Definition at line 498 of file Vehicle.h.

◆ messagesSentChanged

void Vehicle::messagesSentChanged ( )
signal

◆ messageTypeChanged

void Vehicle::messageTypeChanged ( )
signal

◆ messageTypeError()

bool Vehicle::messageTypeError ( ) const

Definition at line 3394 of file Vehicle.cc.

References StatusTextHandler::messageTypeError().

◆ messageTypeNone()

bool Vehicle::messageTypeNone ( ) const

Definition at line 3391 of file Vehicle.cc.

References StatusTextHandler::messageTypeNone().

◆ messageTypeNormal()

bool Vehicle::messageTypeNormal ( ) const

Definition at line 3392 of file Vehicle.cc.

References StatusTextHandler::messageTypeNormal().

◆ messageTypeWarning()

bool Vehicle::messageTypeWarning ( ) const

Definition at line 3393 of file Vehicle.cc.

References StatusTextHandler::messageTypeWarning().

◆ minimumEquivalentAirspeed()

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

Definition at line 1872 of file Vehicle.cc.

References FirmwarePlugin::minimumEquivalentAirspeed().

◆ minimumTakeoffAltitudeMeters()

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

Definition at line 1855 of file Vehicle.cc.

References FirmwarePlugin::minimumTakeoffAltitudeMeters().

◆ missionFlightMode()

QString Vehicle::missionFlightMode ( ) const

◆ missionManager()

MissionManager * Vehicle::missionManager ( )
inline

◆ motorCount()

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

Definition at line 1410 of file Vehicle.cc.

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

◆ motorDetectionFlightMode()

QString Vehicle::motorDetectionFlightMode ( ) const

Definition at line 2568 of file Vehicle.cc.

References FirmwarePlugin::motorDetectionFlightMode().

◆ motorInterlock()

void Vehicle::motorInterlock ( bool  enable)

Command vehicle to Enable/Disable Motor Interlock.

Definition at line 3371 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 2443 of file Vehicle.cc.

References sendMavCommand().

◆ multiRotor()

◆ newFormattedMessage

void Vehicle::newFormattedMessage ( QString  formattedMessage)
signal

◆ objectAvoidance()

VehicleObjectAvoidance * Vehicle::objectAvoidance ( )
inline

Definition at line 578 of file Vehicle.h.

◆ orbitActive()

bool Vehicle::orbitActive ( ) const
inline

Definition at line 529 of file Vehicle.h.

◆ orbitActiveChanged

void Vehicle::orbitActiveChanged ( bool  orbitActive)
signal

◆ orbitMapCircle()

QGCMapCircle * Vehicle::orbitMapCircle ( )
inline

Definition at line 530 of file Vehicle.h.

◆ pairRX()

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

◆ parameterManager() [1/2]

ParameterManager * Vehicle::parameterManager ( )
inline

Definition at line 573 of file Vehicle.h.

Referenced by FactPanelController::_allParametersExists(), APMSensorsComponent::accelSetupNeeded(), APMAirframeComponent::APMAirframeComponent(), APMRadioComponent::APMRadioComponent(), APMSensorsComponent::compassSetupNeeded(), VehicleObjectAvoidance::enabled(), APMFirmwarePlugin::fixedWingAirSpeedLimitsAvailable(), PX4FirmwarePlugin::fixedWingAirSpeedLimitsAvailable(), APMFirmwarePlugin::getHobbsMeter(), PX4FirmwarePlugin::getHobbsMeter(), FactPanelController::getMissingParameters(), FactPanelController::getParameterFact(), APMFirmwarePlugin::guidedModeChangeHeading(), APMFirmwarePlugin::hasGripper(), PX4FirmwarePlugin::hasGripper(), Actuators::init(), APMFirmwarePlugin::maximumEquivalentAirspeed(), PX4FirmwarePlugin::maximumEquivalentAirspeed(), APMFirmwarePlugin::maximumHorizontalSpeedMultirotorMetersSecond(), PX4FirmwarePlugin::maximumHorizontalSpeedMultirotorMetersSecond(), APMFirmwarePlugin::minimumEquivalentAirspeed(), PX4FirmwarePlugin::minimumEquivalentAirspeed(), APMFirmwarePlugin::minimumTakeoffAltitudeMeters(), motorCount(), APMFirmwarePlugin::mulirotorSpeedLimitsAvailable(), PX4FirmwarePlugin::mulirotorSpeedLimitsAvailable(), ArduCopterFirmwarePlugin::multiRotorXConfig(), GeoFenceController::paramCircularFence(), FactPanelController::parameterExists(), PX4AutoPilotPlugin::parametersReadyPreChecks(), PX4AutoPilotPlugin::prerequisiteSetup(), PX4RadioComponent::requiresSetup(), VehicleComponent::sections(), SensorsComponent::sections(), SensorsComponent::sectionSetupComplete(), RCToParamDialogController::setTuningFact(), APMRadioComponent::setupComplete(), AirframeComponent::setupComplete(), PX4RadioComponent::setupComplete(), PowerComponent::setupComplete(), SensorsComponent::setupComplete(), VehicleComponent::setupTriggerSignals(), VehicleObjectAvoidance::start(), VehicleObjectAvoidance::stop(), APMAutoPilotPlugin::vehicleComponents(), and PX4AutoPilotPlugin::vehicleComponents().

◆ parameterManager() [2/2]

ParameterManager * Vehicle::parameterManager ( ) const
inline

Definition at line 574 of file Vehicle.h.

◆ pauseFlightMode()

QString Vehicle::pauseFlightMode ( ) const

Definition at line 2538 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 2047 of file Vehicle.cc.

References VehicleSupports::pauseVehicle(), FirmwarePlugin::pauseVehicle(), and QGC::showAppMessage().

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

◆ radioStatusFactGroup()

FactGroup * Vehicle::radioStatusFactGroup ( )

Definition at line 428 of file Vehicle.cc.

References _radioStatusFactGroup.

◆ rallyPointManager()

RallyPointManager * Vehicle::rallyPointManager ( )
inline

Definition at line 572 of file Vehicle.h.

References _rallyPointManager.

◆ rcChannelsClampedChanged

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

Filtered RC channel values coming from RC_CHANNELS message: clamped 1000:2000

Parameters
channelValuesThe clamped values for rc channels

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

◆ rcChannelsRawChanged

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

Raw RC channel values coming from RC_CHANNELS message

Parameters
channelValuesThe current raw values for rc channels

◆ readyToFly()

bool Vehicle::readyToFly ( ) const
inline

Definition at line 532 of file Vehicle.h.

◆ readyToFlyAvailable()

bool Vehicle::readyToFlyAvailable ( ) const
inline

Definition at line 531 of file Vehicle.h.

◆ readyToFlyAvailableChanged

void Vehicle::readyToFlyAvailableChanged ( bool  readyToFlyAvailable)
signal

◆ readyToFlyChanged

void Vehicle::readyToFlyChanged ( bool  readyToFy)
signal

◆ rebootVehicle()

void Vehicle::rebootVehicle ( )

◆ remoteIDManager()

RemoteIDManager * Vehicle::remoteIDManager ( )
inline

Definition at line 580 of file Vehicle.h.

References _remoteIDManager.

◆ 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 1529 of file Vehicle.cc.

References MAVLinkProtocol::getComponentId(), id(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), sendMessageMultiple(), sendMessageOnLinkThreadSafe(), and vehicleLinkManager().

Referenced by APMFirmwarePlugin::initializeStreamRates(), and ArduSubFirmwarePlugin::initializeStreamRates().

◆ 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 2252 of file Vehicle.cc.

References compId(), and RequestMessageCoordinator::requestMessage().

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

◆ requestMessageResultHandlerFailureCodeToString()

QString Vehicle::requestMessageResultHandlerFailureCodeToString ( RequestMessageResultHandlerFailureCode_t  failureCode)
static

◆ 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 535 of file Vehicle.h.

◆ requiresGpsFixChanged

void Vehicle::requiresGpsFixChanged ( )
signal

◆ resetAllMessages()

void Vehicle::resetAllMessages ( )

Definition at line 3388 of file Vehicle.cc.

References StatusTextHandler::resetAllMessages().

◆ resetCounters()

void Vehicle::resetCounters ( )

< Flight mode vehicle is in while performing goto

< Vehicle is flying < Vehicle is in landing pattern (DO_LAND_START) < Vehicle is in Guided mode and can respond to guided commands Resets link status counters

Definition at line 510 of file Vehicle.cc.

◆ resetErrorLevelMessages()

void Vehicle::resetErrorLevelMessages ( )

Definition at line 3389 of file Vehicle.cc.

References StatusTextHandler::resetErrorLevelMessages().

◆ roiCoordChanged

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

Referenced by guidedModeROI().

◆ rover()

bool Vehicle::rover ( ) const

Definition at line 1743 of file Vehicle.cc.

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

Referenced by startCalibration().

◆ rpmFactGroup()

FactGroup * Vehicle::rpmFactGroup ( )

Definition at line 427 of file Vehicle.cc.

References _rpmFactGroup.

◆ rtlFlightMode()

QString Vehicle::rtlFlightMode ( ) const

Definition at line 2543 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 2156 of file Vehicle.cc.

References compId(), and sendMavCommand().

◆ sendControlRequestAllowedChanged

void Vehicle::sendControlRequestAllowedChanged ( bool  sendControlRequestAllowed)
signal

◆ sendGripperAction

void Vehicle::sendGripperAction ( GRIPPER_ACTIONS  gripperOption)
slot

Definition at line 3137 of file Vehicle.cc.

References sendMavCommand().

◆ sendJoystickAuxRcOverrideThreadSafe()

void Vehicle::sendJoystickAuxRcOverrideThreadSafe ( const std::array< uint16_t, kAuxRcOverrideChannelCount > &  channelValues,
const std::array< bool, kAuxRcOverrideChannelCount > &  channelEnabled,
bool  useRcOverride 
)

◆ 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 2146 of file Vehicle.cc.

References compId(), and MavCommandQueue::sendCommand().

Referenced by PX4FirmwarePlugin::_changeAltAfterPause(), VehicleCameraControl::_requestCameraSettings(), VehicleCameraControl::_requestCaptureStatus(), VehicleCameraControl::_requestStorageInfo(), VehicleCameraControl::_requestStreamInfo(), VehicleCameraControl::_requestStreamStatus(), VehicleCameraControl::_requestTrackingStatus(), abortLanding(), GimbalController::acquireGimbalControl(), APMSensorsComponentController::calibrateCompass(), APMSensorsComponentController::calibrateCompassNorth(), APMSensorsComponentController::cancelCalibration(), emergencyStop(), flashBootloader(), forceArm(), VehicleCameraControl::formatCard(), APMFirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), PX4FirmwarePlugin::guidedModeChangeEquivalentAirspeedMetersSecond(), PX4FirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), APMFirmwarePlugin::guidedModeChangeGroundSpeedMetersSecond(), APMFirmwarePlugin::guidedModeChangeHeading(), PX4FirmwarePlugin::guidedModeChangeHeading(), PX4FirmwarePlugin::guidedModeGotoLocation(), guidedModeOrbit(), PX4FirmwarePlugin::guidedModeTakeoff(), APMFirmwarePlugin::initializeStreamRates(), landingGearDeploy(), landingGearRetract(), motorInterlock(), motorTest(), SendMavlinkCommandState::onWaitEntered(), pairRX(), PX4FirmwarePlugin::pauseVehicle(), GimbalController::releaseGimbalControl(), ParameterManager::resetAllParametersToDefaults(), SensorsComponentController::resetFactoryParameters(), VehicleCameraControl::resetSettings(), VehicleCameraControl::resumeStream(), sendCommand(), sendGripperAction(), GimbalController::sendPitchAbsoluteYaw(), GimbalController::sendPitchBodyYaw(), GimbalController::sendPitchYawFlags(), TerrainQueryCoordinator::sendROICommand(), MavlinkAction::sendTo(), setArmed(), VehicleCameraControl::setCameraMode(), VehicleCameraControl::setCurrentStream(), setEventsMetadata(), setFlightMode(), VehicleCameraControl::setFocusLevel(), setVtolInFwdFlight(), VehicleCameraControl::setZoomLevel(), VehicleCameraControl::startFocus(), startMavlinkLog(), APMFirmwarePlugin::startMission(), VehicleCameraControl::startTrackingPoint(), VehicleCameraControl::startTrackingRect(), startUAVCANBusConfig(), VehicleCameraControl::startVideoRecording(), VehicleCameraControl::startZoom(), VehicleCameraControl::stepFocus(), VehicleCameraControl::stepZoom(), stopCalibration(), VehicleCameraControl::stopFocus(), 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 2151 of file Vehicle.cc.

References compId(), and MavCommandQueue::sendCommandDelayed().

◆ 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 2180 of file Vehicle.cc.

References compId(), and MavCommandQueue::sendCommandIntWithHandler().

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 2170 of file Vehicle.cc.

References compId(), and MavCommandQueue::sendCommandWithHandler().

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

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

Sends the command and calls the fallback lambda function in case the command is MAV_RESULT_UNSUPPORTED

Definition at line 2185 of file Vehicle.cc.

References compId(), and MavCommandQueue::sendCommandWithLambdaFallback().

Referenced by setCurrentMissionSequence().

◆ 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 1587 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 2713 of file Vehicle.cc.

References PlanMasterController::sendPlanToVehicle().

◆ 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

◆ servoOutputsChanged

void Vehicle::servoOutputsChanged ( QVector< int >  servoValues)
signal

New SERVO output values coming from SERVO_OUTPUT_RAW message

Parameters
servoValuesThe current servo output values in microseconds (0-15 -> SERVO1..SERVO16). Invalid values are -1.

Referenced by ServoOutputMonitorController::ServoOutputMonitorController().

◆ setActuatorsMetadata()

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

Definition at line 1265 of file Vehicle.cc.

References _actuators, and Actuators::load().

Referenced by CompInfoActuators::setJson().

◆ setArmed()

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

Definition at line 1439 of file Vehicle.cc.

References armed(), and sendMavCommand().

Referenced by FirmwarePlugin::_armVehicleAndValidate(), and setArmedShowError().

◆ setArmedShowError()

void Vehicle::setArmedShowError ( bool  armed)
inline

Definition at line 451 of file Vehicle.h.

References armed(), and setArmed().

◆ setCheckListState()

void Vehicle::setCheckListState ( CheckList  cl)
inline

Definition at line 725 of file Vehicle.h.

References checkListStateChanged().

◆ setCurrentMissionSequence()

◆ setEstimatorOrigin()

void Vehicle::setEstimatorOrigin ( const QGeoCoordinate &  centerCoord)

◆ setEventsMetadata()

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

Definition at line 3561 of file Vehicle.cc.

References sendMavCommand().

Referenced by CompInfoEvents::setJson().

◆ setFirmwareCustomVersion()

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

Definition at line 2281 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 2527 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 2272 of file Vehicle.cc.

References firmwareVersionChanged().

Referenced by APMFirmwarePlugin::initializeVehicle().

◆ setFlightMode()

◆ setGuidedMode()

void Vehicle::setGuidedMode ( bool  guidedMode)

Definition at line 2070 of file Vehicle.cc.

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

◆ setInitialGCSPressure()

void Vehicle::setInitialGCSPressure ( qreal  pressure)
inline

Definition at line 414 of file Vehicle.h.

Referenced by Vehicle().

◆ setInitialGCSTemperature()

void Vehicle::setInitialGCSTemperature ( qreal  temperature)
inline

Definition at line 415 of file Vehicle.h.

Referenced by Vehicle().

◆ setMessageRate()

void Vehicle::setMessageRate ( uint8_t  compId,
uint16_t  msgId,
int32_t  rate 
)

◆ setOfflineEditingDefaultComponentId()

void Vehicle::setOfflineEditingDefaultComponentId ( int  defaultComponentId)

Sets the default component id for an offline editing vehicle.

Definition at line 2448 of file Vehicle.cc.

References defaultComponentId().

◆ setPIDTuningTelemetryMode()

◆ setpointFactGroup()

FactGroup * Vehicle::setpointFactGroup ( )

Definition at line 418 of file Vehicle.cc.

References _setpointFactGroup.

Referenced by VehicleObjectAvoidance::update().

◆ setPrearmError()

void Vehicle::setPrearmError ( const QString &  prearmError)

Definition at line 2258 of file Vehicle.cc.

References prearmError(), and prearmErrorChanged().

◆ setSoloFirmware()

void Vehicle::setSoloFirmware ( bool  soloFirmware)

Definition at line 2435 of file Vehicle.cc.

References soloFirmware(), and soloFirmwareChanged().

◆ setVtolInFwdFlight

void Vehicle::setVtolInFwdFlight ( bool  vtolInFwdFlight)
slot

Definition at line 2457 of file Vehicle.cc.

References sendMavCommand(), and vtolInFwdFlight().

◆ showCommandAckError()

void Vehicle::showCommandAckError ( const mavlink_command_ack_t ack)
static

Definition at line 2200 of file Vehicle.cc.

References MavCommandQueue::showCommandAckError().

◆ signingController() [1/2]

VehicleSigningController * Vehicle::signingController ( )
inline

Definition at line 538 of file Vehicle.h.

◆ signingController() [2/2]

const VehicleSigningController * Vehicle::signingController ( ) const
inline

Definition at line 539 of file Vehicle.h.

◆ smartRTLFlightMode()

QString Vehicle::smartRTLFlightMode ( ) const

Definition at line 2548 of file Vehicle.cc.

References FirmwarePlugin::smartRTLFlightMode().

◆ soloFirmware()

bool Vehicle::soloFirmware ( ) const
inline

Definition at line 667 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 1753 of file Vehicle.cc.

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

◆ stabilizedFlightMode()

QString Vehicle::stabilizedFlightMode ( ) const

Definition at line 2573 of file Vehicle.cc.

References FirmwarePlugin::stabilizedFlightMode().

◆ startCalibration()

◆ startMavlinkLog()

void Vehicle::startMavlinkLog ( )

Definition at line 2468 of file Vehicle.cc.

References sendMavCommand().

Referenced by MAVLinkLogManager::startLogging().

◆ startMission()

void Vehicle::startMission ( )

Definition at line 1888 of file Vehicle.cc.

References FirmwarePlugin::startMission().

◆ startTakeoff()

void Vehicle::startTakeoff ( )

Definition at line 1882 of file Vehicle.cc.

References FirmwarePlugin::startTakeoff().

◆ startTimerRevertAllowTakeover()

void Vehicle::startTimerRevertAllowTakeover ( )

Definition at line 3179 of file Vehicle.cc.

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

◆ startUAVCANBusConfig()

void Vehicle::startUAVCANBusConfig ( void  )

◆ staticCameraList()

const QVariantList & Vehicle::staticCameraList ( ) const

Definition at line 3524 of file Vehicle.cc.

References QGCCameraManager::cameraList().

◆ stopCalibration()

◆ stopGuidedModeROI()

void Vehicle::stopGuidedModeROI ( )

◆ stopMavlinkLog()

void Vehicle::stopMavlinkLog ( )

Definition at line 2473 of file Vehicle.cc.

References sendMavCommand().

Referenced by MAVLinkLogManager::stopLogging().

◆ stopTrackingFirmwareVehicleTypeChanges()

void Vehicle::stopTrackingFirmwareVehicleTypeChanges ( void  )

◆ stopUAVCANBusConfig()

void Vehicle::stopUAVCANBusConfig ( void  )

◆ sub()

bool Vehicle::sub ( ) const

◆ supports()

VehicleSupports * Vehicle::supports ( )
inline

◆ sysStatusSensorInfo()

QObject * Vehicle::sysStatusSensorInfo ( )

Definition at line 433 of file Vehicle.cc.

◆ takeControlFlightMode()

QString Vehicle::takeControlFlightMode ( ) const

Definition at line 2558 of file Vehicle.cc.

References FirmwarePlugin::takeControlFlightMode().

◆ temperatureFactGroup()

FactGroup * Vehicle::temperatureFactGroup ( )

Definition at line 416 of file Vehicle.cc.

References _temperatureFactGroup.

◆ terrainFactGroup()

FactGroup * Vehicle::terrainFactGroup ( )

Definition at line 423 of file Vehicle.cc.

References _terrainFactGroup.

◆ textMessageReceived

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

◆ toolIndicators()

const QVariantList & Vehicle::toolIndicators ( )

Definition at line 2594 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 3128 of file Vehicle.cc.

References sendMavCommand().

Referenced by SimulatedCameraControl::takePhoto().

◆ updateFlightDistance()

void Vehicle::updateFlightDistance ( double  distance)

◆ vehicleClass()

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

◆ vehicleClassInternalName()

QString Vehicle::vehicleClassInternalName ( ) const

Definition at line 1773 of file Vehicle.cc.

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

◆ vehicleFactGroup()

FactGroup * Vehicle::vehicleFactGroup ( )
inline

Definition at line 547 of file Vehicle.h.

References _vehicleFactGroup.

◆ vehicleImageOpaque()

QString Vehicle::vehicleImageOpaque ( ) const

Definition at line 2578 of file Vehicle.cc.

References FirmwarePlugin::vehicleImageOpaque().

◆ vehicleImageOutline()

QString Vehicle::vehicleImageOutline ( ) const

Definition at line 2586 of file Vehicle.cc.

References FirmwarePlugin::vehicleImageOutline().

◆ vehicleLinkManager()

VehicleLinkManager * Vehicle::vehicleLinkManager ( )
inline

Definition at line 575 of file Vehicle.h.

References _vehicleLinkManager.

Referenced by PlanManager::_handleMissionRequest(), PlanManager::_readTransactionComplete(), PlanManager::_removeAllWorker(), VehicleCameraControl::_requestAllParameters(), PlanManager::_requestList(), PlanManager::_requestNextMissionItem(), PlanManager::_writeMissionCount(), APMSensorsComponentController::calibrateAccel(), APMSensorsComponentController::calibrateGyro(), APMSensorsComponentController::calibrateMotorInterference(), APMSensorsComponentController::calibratePressure(), clearAllParamMapRC(), VehicleSigningController::disable(), VehicleSigningController::enable(), OnboardLogController::eraseAll(), APMFirmwarePlugin::guidedModeChangeAltitude(), APMSensorsComponentController::levelHorizon(), PlanMasterController::loadFromVehicle(), APMSensorsComponentController::nextClicked(), RequestMessageState::onWaitEntered(), QGCCameraParamIO::paramRequest(), requestDataStream(), APMFirmwarePlugin::sendGCSMotionReport(), FirmwarePlugin::sendGCSMotionReport(), sendJoystickAuxRcOverrideThreadSafe(), sendJoystickDataThreadSafe(), sendParamMapRC(), PlanMasterController::sendToVehicle(), MavCommandQueue::sendWorker(), setCurrentMissionSequence(), setEstimatorOrigin(), setFlightMode(), VideoManager::setfullScreen(), startCalibration(), ParameterManager::tryHashCheckCacheLoad(), APMSensorsComponentController::usingUDPLink(), SensorsComponentController::usingUDPLink(), and MissionManager::writeArduPilotGuidedMissionItem().

◆ vehicleType()

◆ vehicleTypeChanged

void Vehicle::vehicleTypeChanged ( )
signal

◆ vehicleTypeString()

QString Vehicle::vehicleTypeString ( ) const

Definition at line 1768 of file Vehicle.cc.

References QGCMAVLink::mavTypeToString().

◆ vehicleUID()

quint64 Vehicle::vehicleUID ( ) const
inline

Definition at line 664 of file Vehicle.h.

◆ vehicleUIDChanged

void Vehicle::vehicleUIDChanged ( )
signal

◆ vehicleUIDStr()

QString Vehicle::vehicleUIDStr ( )

Definition at line 1012 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 2743 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 2748 of file Vehicle.cc.

References FirmwarePlugin::versionCompare().

◆ vibrationFactGroup()

FactGroup * Vehicle::vibrationFactGroup ( )

Definition at line 415 of file Vehicle.cc.

References _vibrationFactGroup.

◆ virtualTabletJoystickValue()

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

◆ vtol()

◆ vtolInFwdFlight()

bool Vehicle::vtolInFwdFlight ( ) const
inline

Definition at line 504 of file Vehicle.h.

Referenced by setVtolInFwdFlight().

◆ vtolInFwdFlightChanged

void Vehicle::vtolInFwdFlightChanged ( bool  vtolInFwdFlight)
signal

◆ windFactGroup()

FactGroup * Vehicle::windFactGroup ( )

Definition at line 414 of file Vehicle.cc.

References _windFactGroup.

◆ xConfigMotors()

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

Definition at line 1424 of file Vehicle.cc.

References FirmwarePlugin::multiRotorXConfig().

Friends And Related Symbol Documentation

◆ FactGroupListModel

friend class FactGroupListModel
friend

Definition at line 107 of file Vehicle.h.

◆ GimbalController

friend class GimbalController
friend

Definition at line 114 of file Vehicle.h.

◆ InitialConnectStateMachine

friend class InitialConnectStateMachine
friend

Definition at line 105 of file Vehicle.h.

◆ VehicleLinkManager

friend class VehicleLinkManager
friend

Definition at line 106 of file Vehicle.h.

Member Data Documentation

◆ _actuators

Actuators* Vehicle::_actuators = nullptr

Definition at line 1119 of file Vehicle.h.

Referenced by actuators(), and setActuatorsMetadata().

◆ _altitudeTuningOffset

float Vehicle::_altitudeTuningOffset = qQNaN()

Definition at line 1056 of file Vehicle.h.

Referenced by setPIDTuningTelemetryMode().

◆ _batteryFactGroupListModel

BatteryFactGroupListModel* Vehicle::_batteryFactGroupListModel = nullptr

Definition at line 1108 of file Vehicle.h.

Referenced by batteries().

◆ _clockFactGroup

VehicleClockFactGroup* Vehicle::_clockFactGroup = nullptr

Definition at line 1091 of file Vehicle.h.

Referenced by clockFactGroup().

◆ _clockFactGroupName

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

Definition at line 1071 of file Vehicle.h.

◆ _distanceSensorFactGroup

VehicleDistanceSensorFactGroup* Vehicle::_distanceSensorFactGroup = nullptr

Definition at line 1093 of file Vehicle.h.

Referenced by distanceSensorFactGroup().

◆ _distanceSensorFactGroupName

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

Definition at line 1073 of file Vehicle.h.

◆ _efiFactGroup

VehicleEFIFactGroup* Vehicle::_efiFactGroup = nullptr

Definition at line 1099 of file Vehicle.h.

Referenced by efiFactGroup().

◆ _efiFactGroupName

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

Definition at line 1080 of file Vehicle.h.

◆ _escStatusFactGroupListModel

EscStatusFactGroupListModel* Vehicle::_escStatusFactGroupListModel = nullptr

Definition at line 1109 of file Vehicle.h.

Referenced by escs().

◆ _estimatorStatusFactGroup

VehicleEstimatorStatusFactGroup* Vehicle::_estimatorStatusFactGroup = nullptr

Definition at line 1096 of file Vehicle.h.

Referenced by estimatorStatusFactGroup().

◆ _estimatorStatusFactGroupName

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

Definition at line 1076 of file Vehicle.h.

◆ _fixed_wing_airspeed_limits_available

bool Vehicle::_fixed_wing_airspeed_limits_available = false

Definition at line 1060 of file Vehicle.h.

Referenced by haveFWSpeedLimits().

◆ _ftpManager

FTPManager* Vehicle::_ftpManager = nullptr

Definition at line 1117 of file Vehicle.h.

Referenced by ftpManager().

◆ _generatorFactGroup

VehicleGeneratorFactGroup* Vehicle::_generatorFactGroup = nullptr

Definition at line 1098 of file Vehicle.h.

Referenced by generatorFactGroup().

◆ _generatorFactGroupName

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

Definition at line 1079 of file Vehicle.h.

◆ _geoFenceManager

GeoFenceManager* Vehicle::_geoFenceManager = nullptr

Definition at line 1114 of file Vehicle.h.

Referenced by geoFenceManager().

◆ _gps2FactGroup

VehicleGPS2FactGroup* Vehicle::_gps2FactGroup = nullptr

Definition at line 1086 of file Vehicle.h.

Referenced by gps2FactGroup().

◆ _gps2FactGroupName

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

Definition at line 1066 of file Vehicle.h.

◆ _gpsAggregateFactGroup

VehicleGPSAggregateFactGroup* Vehicle::_gpsAggregateFactGroup = nullptr

Definition at line 1087 of file Vehicle.h.

Referenced by gpsAggregateFactGroup().

◆ _gpsAggregateFactGroupName

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

Definition at line 1067 of file Vehicle.h.

◆ _gpsFactGroup

VehicleGPSFactGroup* Vehicle::_gpsFactGroup = nullptr

Definition at line 1085 of file Vehicle.h.

Referenced by gpsFactGroup().

◆ _gpsFactGroupName

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

Definition at line 1065 of file Vehicle.h.

◆ _hygrometerFactGroup

VehicleHygrometerFactGroup* Vehicle::_hygrometerFactGroup = nullptr

Definition at line 1097 of file Vehicle.h.

Referenced by hygrometerFactGroup().

◆ _hygrometerFactGroupName

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

Definition at line 1078 of file Vehicle.h.

◆ _initialConnectStateMachine

InitialConnectStateMachine* Vehicle::_initialConnectStateMachine = nullptr

Definition at line 1118 of file Vehicle.h.

Referenced by isInitialConnectComplete(), and Vehicle().

◆ _localPositionFactGroup

VehicleLocalPositionFactGroup* Vehicle::_localPositionFactGroup = nullptr

Definition at line 1094 of file Vehicle.h.

Referenced by localPositionFactGroup(), and setPIDTuningTelemetryMode().

◆ _localPositionFactGroupName

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

Definition at line 1074 of file Vehicle.h.

◆ _localPositionSetpointFactGroup

VehicleLocalPositionSetpointFactGroup* Vehicle::_localPositionSetpointFactGroup = nullptr

Definition at line 1095 of file Vehicle.h.

Referenced by localPositionSetpointFactGroup(), and setPIDTuningTelemetryMode().

◆ _localPositionSetpointFactGroupName

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

Definition at line 1075 of file Vehicle.h.

◆ _lowestBatteryChargeStateAnnouncedMap

QMap<uint8_t , uint8_t > Vehicle::_lowestBatteryChargeStateAnnouncedMap

Definition at line 1054 of file Vehicle.h.

◆ _mavCommandMaxRetryCount

constexpr int Vehicle::_mavCommandMaxRetryCount = 3
staticconstexpr

Ack timeout used in unit tests — kept on Vehicle for source-compat with existing tests (mirrors MavCommandQueue::kTestAckTimeoutMs).

Definition at line 1047 of file Vehicle.h.

◆ _missionManager

MissionManager* Vehicle::_missionManager = nullptr

Definition at line 1113 of file Vehicle.h.

Referenced by missionManager(), and ~Vehicle().

◆ _multirotor_speed_limits_available

bool Vehicle::_multirotor_speed_limits_available = false

Definition at line 1059 of file Vehicle.h.

Referenced by haveMRSpeedLimits().

◆ _radioStatusFactGroup

RadioStatusFactGroup* Vehicle::_radioStatusFactGroup = nullptr

Definition at line 1102 of file Vehicle.h.

Referenced by radioStatusFactGroup().

◆ _radioStatusFactGroupName

const QString Vehicle::_radioStatusFactGroupName = QStringLiteral("radioStatus")

Definition at line 1082 of file Vehicle.h.

◆ _rallyPointManager

RallyPointManager* Vehicle::_rallyPointManager = nullptr

Definition at line 1115 of file Vehicle.h.

Referenced by rallyPointManager().

◆ _remoteIDManager

RemoteIDManager* Vehicle::_remoteIDManager = nullptr

Definition at line 1120 of file Vehicle.h.

Referenced by remoteIDManager().

◆ _rpmFactGroup

VehicleRPMFactGroup* Vehicle::_rpmFactGroup = nullptr

Definition at line 1100 of file Vehicle.h.

Referenced by rpmFactGroup().

◆ _rpmFactGroupName

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

Definition at line 1081 of file Vehicle.h.

◆ _servoOutputRawValues

QVector<int> Vehicle::_servoOutputRawValues = QVector<int>(16, -1)

Definition at line 1105 of file Vehicle.h.

◆ _setpointFactGroup

VehicleSetpointFactGroup* Vehicle::_setpointFactGroup = nullptr

Definition at line 1092 of file Vehicle.h.

Referenced by setPIDTuningTelemetryMode(), and setpointFactGroup().

◆ _setpointFactGroupName

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

Definition at line 1072 of file Vehicle.h.

◆ _standardModes

StandardModes* Vehicle::_standardModes = nullptr

Definition at line 1121 of file Vehicle.h.

◆ _temperatureFactGroup

VehicleTemperatureFactGroup* Vehicle::_temperatureFactGroup = nullptr

Definition at line 1090 of file Vehicle.h.

Referenced by temperatureFactGroup().

◆ _temperatureFactGroupName

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

Definition at line 1070 of file Vehicle.h.

◆ _terrainFactGroup

TerrainFactGroup* Vehicle::_terrainFactGroup = nullptr

Definition at line 1101 of file Vehicle.h.

Referenced by terrainFactGroup().

◆ _terrainFactGroupName

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

Definition at line 1077 of file Vehicle.h.

◆ _terrainProtocolHandler

TerrainProtocolHandler* Vehicle::_terrainProtocolHandler = nullptr

Definition at line 1111 of file Vehicle.h.

◆ _terrainQueryCoordinator

TerrainQueryCoordinator* Vehicle::_terrainQueryCoordinator = nullptr

Definition at line 1124 of file Vehicle.h.

Referenced by doSetHome(), and guidedModeROI().

◆ _vehicleFactGroup

VehicleFactGroup* Vehicle::_vehicleFactGroup

Definition at line 1084 of file Vehicle.h.

Referenced by vehicleFactGroup().

◆ _vehicleFactGroupName

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

Definition at line 1064 of file Vehicle.h.

◆ _vehicleLinkManager

VehicleLinkManager* Vehicle::_vehicleLinkManager = nullptr

Definition at line 1116 of file Vehicle.h.

Referenced by closeVehicle(), and vehicleLinkManager().

◆ _vibrationFactGroup

VehicleVibrationFactGroup* Vehicle::_vibrationFactGroup = nullptr

Definition at line 1089 of file Vehicle.h.

Referenced by vibrationFactGroup().

◆ _vibrationFactGroupName

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

Definition at line 1069 of file Vehicle.h.

◆ _windFactGroup

VehicleWindFactGroup* Vehicle::_windFactGroup = nullptr

Definition at line 1088 of file Vehicle.h.

Referenced by windFactGroup().

◆ _windFactGroupName

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

Definition at line 1068 of file Vehicle.h.

◆ kAuxRcOverrideChannelCount

constexpr int Vehicle::kAuxRcOverrideChannelCount = 6
staticconstexpr

Sends RC_CHANNELS_OVERRIDE for joystick aux axes mapped to RC channels 5–10 only.

Number of RC channels overridden (channels 5–10)

Definition at line 421 of file Vehicle.h.

◆ kTestMavCommandAckTimeoutMs

constexpr int Vehicle::kTestMavCommandAckTimeoutMs = 500
staticconstexpr

Definition at line 1048 of file Vehicle.h.

◆ kTestMavCommandMaxWaitMs

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

Definition at line 1049 of file Vehicle.h.

◆ MAV_AUTOPILOT_TRACK

const MAV_AUTOPILOT Vehicle::MAV_AUTOPILOT_TRACK = MAV_AUTOPILOT_ENUM_END
static

Definition at line 127 of file Vehicle.h.

Referenced by MultiVehicleManager::init(), and Vehicle().

◆ MAV_TYPE_TRACK

const MAV_TYPE Vehicle::MAV_TYPE_TRACK = MAV_TYPE_ENUM_END
static

Definition at line 128 of file Vehicle.h.

Referenced by MultiVehicleManager::init().


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