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 effectiveCustomModeChanged ()
void underwayChanged (bool underway)
void airborneChanged (bool airborne)
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 rebootRequiredChanged ()
void newStableFirmwareVersionChanged ()
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, quint32 target_system, uint8_t target_component, uint16_t sequence, uint8_t first_message, QByteArray data, bool acked)
void mavCommandResult (quint32 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 roiRelativeAltitudeMetersChanged ()
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 (quint32 sysid, int componentid, int severity, QString text, QString description)
void messagesReceivedChanged ()
void messagesSentChanged ()
void messagesLostChanged ()
void unreadCriticalMessageCountChanged ()
void unreadWarningMessageCountChanged ()
void hasUnreadMessagesChanged ()
void unreadMessageCountChanged ()
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, quint32 vehicleId, int defaultComponentId, MAV_AUTOPILOT firmwareType, MAV_TYPE vehicleType, QObject *parent=nullptr)
 Vehicle (MAV_AUTOPILOT firmwareType, MAV_TYPE vehicleType, QObject *parent=nullptr)
 ~Vehicle ()
Q_INVOKABLE void resetCounters ()
 < Non-empty when vehicle firmware is older than this stable version
Q_INVOKABLE void virtualTabletJoystickValue (double roll, double pitch, double yaw, double thrust)
Q_INVOKABLE void guidedModeRTL (bool smartRTL)
 Command vehicle to return to launch.
Q_INVOKABLE void guidedModeLand ()
 Command vehicle to land at current location.
Q_INVOKABLE void guidedModeTakeoff (double altitudeRelative)
 Command vehicle to takeoff from current location.
Q_INVOKABLE double minimumTakeoffAltitudeMeters ()
Q_INVOKABLE double maximumHorizontalSpeedMultirotorMetersSecond ()
Q_INVOKABLE double maximumEquivalentAirspeed ()
Q_INVOKABLE double minimumEquivalentAirspeed ()
Q_INVOKABLE bool guidedModeGotoLocation (const QGeoCoordinate &gotoCoord, double forwardFlightLoiterRadius=0.0f)
Q_INVOKABLE void guidedModeChangeAltitude (double altitudeChange, bool pauseVehicle)
Q_INVOKABLE void guidedModeChangeHeading (const QGeoCoordinate &headingCoord)
Q_INVOKABLE void guidedModeChangeGroundSpeedMetersSecond (double groundspeed)
Q_INVOKABLE void guidedModeChangeEquivalentAirspeedMetersSecond (double airspeed)
Q_INVOKABLE void guidedModeOrbit (const QGeoCoordinate &centerCoord, double radius, double amslAltitude)
Q_INVOKABLE bool guidedModeROI (const QGeoCoordinate &centerCoord, double relativeAltitudeMeters)
Q_INVOKABLE void stopGuidedModeROI ()
Q_INVOKABLE void pauseVehicle ()
Q_INVOKABLE void emergencyStop ()
 Command vehicle to kill all motors no matter what state.
Q_INVOKABLE void abortLanding (double climbOutAltitude)
 Command vehicle to abort landing.
Q_INVOKABLE void landingGearDeploy ()
 Command vichecle to deploy landing gear.
Q_INVOKABLE void landingGearRetract ()
 Command vichecle to retract landing gear.
Q_INVOKABLE void startTakeoff ()
Q_INVOKABLE void startMission ()
Q_INVOKABLE void setCurrentMissionSequence (int seq)
 Alter the current mission item on the vehicle.
Q_INVOKABLE void rebootVehicle ()
 Reboot vehicle.
void setRebootRequired ()
 Latches rebootRequired until the vehicle reboots.
void setNewStableFirmwareVersion (const QString &version)
Q_INVOKABLE void acknowledgeNewStableFirmwareVersion ()
 Hides the update indicator until a newer stable firmware is released.
Q_INVOKABLE void sendPlan (QString planFile)
Q_INVOKABLE void setEstimatorOrigin (const QGeoCoordinate &centerCoord)
void setEstimatorOrigin_SET_GPS_GLOBAL_ORIGIN (const QGeoCoordinate &centerCoord)
 Fallback for setEstimatorOrigin which sends the deprecated SET_GPS_GLOBAL_ORIGIN message.
Q_INVOKABLE int versionCompare (const QString &compare) const
 Used to check if running current version is equal or higher than the one being compared.
Q_INVOKABLE int versionCompare (int major, int minor, int patch) const
Q_INVOKABLE void motorTest (int motor, int percent, int timeoutSecs, bool showError)
Q_INVOKABLE void setPIDTuningTelemetryMode (PIDTuningTelemetryMode mode)
Q_INVOKABLE void forceArm ()
Q_INVOKABLE void sendParamMapRC (const QString &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
VehicleSupports * supports ()
VehicleReadiness * readiness ()
 nullptr for the offline editing vehicle, which has nothing to be ready for
bool hasGripper () const
bool haveMRSpeedLimits () const
bool haveFWSpeedLimits () const
QGeoCoordinate coordinate ()
QGeoCoordinate armedPosition ()
qreal getInitialGCSPressure () const
qreal getInitialGCSTemperature () const
void setInitialGCSPressure (qreal pressure)
void setInitialGCSTemperature (qreal temperature)
void updateFlightDistance (double distance)
void sendJoystickDataThreadSafe (float roll, float pitch, float yaw, float thrust, quint16 buttons, quint16 buttons2, float pitchExtension, float rollExtension, float aux1, float aux2, float aux3, float aux4, float aux5, float aux6)
void sendJoystickAuxRcOverrideThreadSafe (const std::array< uint16_t, kAuxRcOverrideChannelCount > &channelValues, const std::array< bool, kAuxRcOverrideChannelCount > &channelEnabled, bool useRcOverride)
quint32 id () const
int compId () const
MAV_AUTOPILOT firmwareType () const
MAV_TYPE vehicleType () const
QGCMAVLink::VehicleClass_t vehicleClass (void) const
Q_INVOKABLE QString vehicleClassInternalName () const
bool sendMessageOnLinkThreadSafe (LinkInterface *link, mavlink_message_t message)
void sendMessageMultiple (mavlink_message_t message)
AutoPilotPlugin * autopilotPlugin ()
 Provides access to AutoPilotPlugin for this vehicle.
FirmwarePlugin * firmwarePlugin ()
 Provides access to the Firmware Plugin for this Vehicle.
QGeoCoordinate homePosition ()
bool armed () const
void setArmed (bool armed, bool showError)
void setArmedShowError (bool armed)
bool flightModeSetAvailable ()
QStringList flightModes ()
QString flightMode () const
void setFlightMode (const QString &flightMode)
bool airship () const
void pairRX (int rxType, int rxSubType)
bool fixedWing () const
bool multiRotor () const
bool vtol () const
bool rover () const
bool sub () const
bool spacecraft () const
void setGuidedMode (bool guidedMode)
QString prearmError () const
void setPrearmError (const QString &prearmError)
QmlObjectListModel * cameraTriggerPoints ()
void startMavlinkLog ()
void stopMavlinkLog ()
void requestDataStream (MAV_DATA_STREAM stream, uint16_t rate, bool sendMultiple=true)
void trackFirmwareVehicleTypeChanges (void)
void stopTrackingFirmwareVehicleTypeChanges (void)
float latitude ()
float longitude ()
bool px4Firmware () const
bool apmFirmware () const
bool genericFirmware () const
uint messagesReceived () const
uint messagesSent () const
uint messagesLost () const
bool underway () const
bool airborne () const
bool landing () const
bool guidedMode () const
bool inFwdFlight () const
bool vtolInFwdFlight () const
uint8_t baseMode () const
uint32_t customMode () const
uint32_t effectiveCustomMode () const
bool isOfflineEditingVehicle () const
int sensorsPresentBits () const
int sensorsEnabledBits () const
int sensorsHealthBits () const
int sensorsUnhealthyBits () const
QString missionFlightMode () const
QString pauseFlightMode () const
QString rtlFlightMode () const
QString smartRTLFlightMode () const
QString landFlightMode () const
QString takeControlFlightMode () const
QString followFlightMode () const
QString motorDetectionFlightMode () const
QString stabilizedFlightMode () const
double defaultCruiseSpeed () const
double defaultHoverSpeed () const
QString firmwareTypeString () const
QString vehicleTypeString () const
bool autoDisarm ()
bool orbitActive () const
QGCMapCircle * orbitMapCircle ()
bool readyToFlyAvailable () const
bool readyToFly () const
bool allSensorsHealthy () const
QObject * sysStatusSensorInfo ()
bool requiresGpsFix () const
bool rebootRequired () const
QString newStableFirmwareVersion () const
bool newStableFirmwareVersionAcknowledged () const
bool hilMode () const
Actuators * actuators () const
VehicleSigningController * signingController ()
const VehicleSigningController * signingController () const
const StandardModes * standardModes () const
void startCalibration (QGCMAVLink::CalibrationType calType)
void stopCalibration (bool showError)
FactGroup * vehicleFactGroup ()
VehicleGPSFactGroup * gpsFactGroup ()
VehicleGPSFactGroup * gps2FactGroup ()
FactGroup * windFactGroup ()
FactGroup * vibrationFactGroup ()
FactGroup * temperatureFactGroup ()
FactGroup * clockFactGroup ()
FactGroup * setpointFactGroup ()
FactGroup * distanceSensorFactGroup ()
FactGroup * localPositionFactGroup ()
FactGroup * localPositionSetpointFactGroup ()
FactGroup * estimatorStatusFactGroup ()
FactGroup * terrainFactGroup ()
FactGroup * hygrometerFactGroup ()
FactGroup * generatorFactGroup ()
FactGroup * efiFactGroup ()
FactGroup * radioStatusFactGroup ()
FactGroup * rpmFactGroup ()
QmlObjectListModel * batteries ()
QmlObjectListModel * escs ()
MissionManager * missionManager ()
GeoFenceManager * geoFenceManager ()
RallyPointManager * rallyPointManager ()
ParameterManager * parameterManager ()
ParameterManager * parameterManager () const
VehicleLinkManager * vehicleLinkManager ()
FTPManager * ftpManager ()
ComponentInformationManager * compInfoManager ()
VehicleObjectAvoidance * objectAvoidance ()
Autotune * autotune () const
RemoteIDManager * remoteIDManager ()
void sendMavCommand (int compId, MAV_CMD command, bool showError, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, float param5=0.0f, float param6=0.0f, float param7=0.0f)
void sendMavCommandDelayed (int compId, MAV_CMD command, bool showError, int milliseconds, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, float param5=0.0f, float param6=0.0f, float param7=0.0f)
void sendMavCommandInt (int compId, MAV_CMD command, MAV_FRAME frame, bool showError, float param1, float param2, float param3, float param4, double param5, double param6, float param7)
bool isMavCommandPending (int targetCompId, MAV_CMD command)
 isMavCommandPending Query whether the specified MAV_CMD is in queue to be sent or has already been sent but whose reply has not yet been received and whose timeout has not yet expired.
Q_INVOKABLE void sendCommand (int compId, int command, bool showError, double param1=0.0, double param2=0.0, double param3=0.0, double param4=0.0, double param5=0.0, double param6=0.0, double param7=0.0)
 Same as sendMavCommand but available from Qml.
void sendMavCommandWithHandler (const MavCmdAckHandlerInfo_t *ackHandlerInfo, int compId, MAV_CMD command, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, float param5=0.0f, float param6=0.0f, float param7=0.0f)
 Sends the command and calls the callback with the result.
void sendMavCommandIntWithHandler (const MavCmdAckHandlerInfo_t *ackHandlerInfo, int compId, MAV_CMD command, MAV_FRAME frame, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, double param5=0.0f, double param6=0.0f, float param7=0.0f)
void sendMavCommandWithLambdaFallback (std::function< void()> lambda, int compId, MAV_CMD command, bool showError, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, float param5=0.0f, float param6=0.0f, float param7=0.0f)
void sendMavCommandIntWithLambdaFallback (std::function< void()> lambda, int compId, MAV_CMD command, MAV_FRAME frame, bool showError, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, double param5=0.0, double param6=0.0, float param7=0.0f)
void requestMessage (RequestMessageResultHandler resultHandler, void *resultHandlerData, int compId, int messageId, float param1=0.0f, float param2=0.0f, float param3=0.0f, float param4=0.0f, float param5=0.0f)
int firmwareMajorVersion () const
int firmwareMinorVersion () const
int firmwarePatchVersion () const
int firmwareVersionType () const
int firmwareCustomMajorVersion () const
int firmwareCustomMinorVersion () const
int firmwareCustomPatchVersion () const
int firmwareBoardVendorId () const
int firmwareBoardProductId () const
QString firmwareVersionTypeString () const
void setFirmwareVersion (int majorVersion, int minorVersion, int patchVersion, FIRMWARE_VERSION_TYPE versionType=FIRMWARE_VERSION_TYPE_OFFICIAL)
void setFirmwareCustomVersion (int majorVersion, int minorVersion, int patchVersion)
QString gitHash () const
quint64 vehicleUID () const
QString vehicleUIDStr ()
bool soloFirmware () const
void setSoloFirmware (bool soloFirmware)
int defaultComponentId () const
void setOfflineEditingDefaultComponentId (int defaultComponentId)
 Sets the default component id for an offline editing vehicle.
int motorCount ()
bool coaxialMotors ()
bool xConfigMotors ()
class FirmwarePluginInstanceData * firmwarePluginInstanceData ()
void setFirmwarePluginInstanceData (FirmwarePluginInstanceData *firmwarePluginInstanceData)
QString vehicleImageOpaque () const
QString vehicleImageOutline () const
const QVariantList & toolIndicators ()
bool capabilitiesKnown () const
uint64_t capabilityBits () const
QString hobbsMeter ()
bool initialPlanRequestComplete () const
void forceInitialPlanRequestComplete ()
void _setUnderway (bool underway)
void _setLanding (bool landing)
void _setHomePosition (QGeoCoordinate &homeCoord)
void prepareDelete ()
 Vehicle is about to be deleted.
void deleteGimbalController ()
 Delete gimbal controller, handy for RequestMessageTest.cc, otherwise gimbal controller message requests will mess with this test.
quint64 mavlinkSentCount () const
quint64 mavlinkReceivedCount () const
 Calculated total number of messages sent to us.
quint64 mavlinkLossCount () const
 Total number of sucessful messages received.
float mavlinkLossPercent () const
 Total number of lost messages.
bool isROIEnabled () const
 Running loss rate.
double roiRelativeAltitudeMeters () const
 Last commanded ROI altitude in meters above home. Used to preserve the altitude when the ROI is re-positioned.
CheckList checkListState ()
void setCheckListState (CheckList cl)
double loadProgress () const
void setActuatorsMetadata (uint8_t compid, const QString &metadataJsonFileName, const QJsonDocument &metadataJson)
GimbalController * gimbalController ()
int _findMavCommandListEntryIndex (int targetCompId, MAV_CMD command)
 Test-only helper: forwards to MavCommandQueue::findEntryIndex.
int32_t getMessageRate (uint8_t compId, uint16_t msgId)
void setMessageRate (uint8_t compId, uint16_t msgId, int32_t rate)
Q_INVOKABLE void flashBootloader ()
Q_INVOKABLE void motorInterlock (bool enable)
 Command vehicle to Enable/Disable Motor Interlock.
Q_INVOKABLE void startTimerRevertAllowTakeover ()
Q_INVOKABLE void requestOperatorControl (bool allowOverride, int requestTimeoutSecs=0)
Q_INVOKABLE void clearMessages ()
Q_INVOKABLE void markMessagesRead ()
int unreadCriticalMessageCount () const
int unreadWarningMessageCount () const
bool hasUnreadMessages () const
int unreadMessageCount () const
QString formattedMessages () const
uint32_t flowImageIndex () const
MAVLinkLogManager * mavlinkLogManager () const
QGCCameraManager * cameraManager ()
const QVariantList & staticCameraList () const
HealthAndArmingCheckReport * healthAndArmingCheckReport ()
bool healthAndArmingChecksSupported (uint8_t compid) const
 True if the component's events metadata lists the libevents health and arming check protocol.
int healthAndArmingCheckModeGroup (uint32_t customMode) const
 Autopilot health and arming check mode group of a custom mode. -1 if unknown.
void setEventsMetadata (uint8_t compid, const QString &metadataJsonFileName)
Public Member Functions inherited from VehicleFactGroup
 VehicleFactGroup (QObject *parent=nullptr)
Fact * roll ()
Fact * pitch ()
Fact * heading ()
Fact * rollRate ()
Fact * pitchRate ()
Fact * yawRate ()
Fact * airSpeed ()
Fact * airSpeedSetpoint ()
Fact * groundSpeed ()
Fact * climbRate ()
Fact * altitudeRelative ()
Fact * altitudeAMSL ()
Fact * altitudeAboveTerr ()
Fact * altitudeTuning ()
Fact * altitudeTuningSetpoint ()
Fact * xTrackError ()
Fact * rangeFinderDist ()
Fact * flightDistance ()
Fact * distanceToHome ()
Fact * timeToHome ()
Fact * missionItemIndex ()
Fact * headingToNextWP ()
Fact * distanceToNextWP ()
Fact * headingToHome ()
Fact * headingFromHome ()
Fact * headingFromGCS ()
Fact * distanceToGCS ()
Fact * hobbs ()
Fact * throttlePct ()
Fact * imuTemp ()
Fact * rcRSSI ()
void handleMessage (Vehicle *vehicle, const mavlink_message_t &message) override
 Allows a FactGroup to parse incoming messages and fill in values.
void updateRCRSSI (uint8_t rssi)
Public Member Functions inherited from FactGroup
 FactGroup (int updateRateMsecs, const QString &metaDataFile, QObject *parent=nullptr, bool ignoreCamelCase=false)
 < false: No telemetry for these values has been received
 FactGroup (int updateRateMsecs, QObject *parent=nullptr, bool ignoreCamelCase=false)
virtual ~FactGroup ()
Q_INVOKABLE bool factExists (const QString &name) const
 @ return true: if the fact exists in the group
Q_INVOKABLE Fact * getFact (const QString &name) const
Q_INVOKABLE FactGroup * getFactGroup (const QString &name) const
Q_INVOKABLE void setLiveUpdates (bool liveUpdates)
 Turning on live updates will allow value changes to flow through as they are received.
QStringList factNames () const
QStringList factGroupNames () const
bool telemetryAvailable () const
const QMap< QString, FactGroup * > & factGroups () const

Static Public Member Functions

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

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 _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
VehicleGPSFactGroup * _gps2FactGroup = 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 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 136 of file Vehicle.h.

◆ PIDTuningTelemetryMode

Enumerator
ModeDisabled 
ModeRateAndAttitude 
ModeVelocityAndPosition 
ModeAltitudeAndAirspeed 

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

References _missionManager.

Member Function Documentation

◆ _findMavCommandListEntryIndex()

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

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

Definition at line 2250 of file Vehicle.cc.

◆ _offlineFirmwareTypeSettingChanged

void Vehicle::_offlineFirmwareTypeSettingChanged ( QVariant varFirmwareType)
slot

◆ _offlineVehicleTypeSettingChanged

void Vehicle::_offlineVehicleTypeSettingChanged ( QVariant varVehicleType)
slot

◆ _setHomePosition()

void Vehicle::_setHomePosition ( QGeoCoordinate & homeCoord)

Definition at line 1228 of file Vehicle.cc.

References homePositionChanged().

◆ _setLanding()

void Vehicle::_setLanding ( bool landing)

Definition at line 1870 of file Vehicle.cc.

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

◆ _setUnderway()

void Vehicle::_setUnderway ( bool underway)

Definition at line 1852 of file Vehicle.cc.

References underway(), and underwayChanged().

◆ abortLanding()

void Vehicle::abortLanding ( double climbOutAltitude)

Command vehicle to abort landing.

Definition at line 2111 of file Vehicle.cc.

References defaultComponentId(), and sendMavCommand().

◆ acknowledgeNewStableFirmwareVersion()

void Vehicle::acknowledgeNewStableFirmwareVersion ( )

Hides the update indicator until a newer stable firmware is released.

Definition at line 2399 of file Vehicle.cc.

References QmlObjectListModel::count(), MultiVehicleManager::instance(), newStableFirmwareVersionChanged(), QmlObjectListModel::value(), Vehicle(), and MultiVehicleManager::vehicles().

◆ actuators()

Actuators * Vehicle::actuators ( ) const
inline

Definition at line 565 of file Vehicle.h.

References _actuators.

◆ airborne()

bool Vehicle::airborne ( ) const
inline

◆ airborneChanged

void Vehicle::airborneChanged ( bool airborne)
signal

References airborne().

Referenced by Vehicle().

◆ airship()

bool Vehicle::airship ( ) const

Definition at line 1778 of file Vehicle.cc.

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

◆ allSensorsHealthy()

bool Vehicle::allSensorsHealthy ( ) const
inline

Definition at line 558 of file Vehicle.h.

Referenced by allSensorsHealthyChanged().

◆ allSensorsHealthyChanged

void Vehicle::allSensorsHealthyChanged ( bool allSensorsHealthy)
signal

◆ apmFirmware()

bool Vehicle::apmFirmware ( ) const
inline

◆ armed()

bool Vehicle::armed ( ) const
inline

◆ armedChanged

void Vehicle::armedChanged ( bool armed)
signal

◆ armedPosition()

QGeoCoordinate Vehicle::armedPosition ( )
inline

Definition at line 431 of file Vehicle.h.

◆ armedPositionChanged

void Vehicle::armedPositionChanged ( )
signal

◆ autoDisarm()

bool Vehicle::autoDisarm ( )

Definition at line 2701 of file Vehicle.cc.

References ParameterManager::defaultComponentId, and Fact::rawValue().

◆ autoDisarmChanged

void Vehicle::autoDisarmChanged ( )
signal

◆ autopilotPlugin()

AutoPilotPlugin * Vehicle::autopilotPlugin ( )
inline

Provides access to AutoPilotPlugin for this vehicle.

Definition at line 462 of file Vehicle.h.

◆ autotune()

Autotune * Vehicle::autotune ( ) const
inline

Definition at line 606 of file Vehicle.h.

◆ baseMode()

uint8_t Vehicle::baseMode ( ) const
inline

Definition at line 530 of file Vehicle.h.

◆ batteries()

QmlObjectListModel * Vehicle::batteries ( )

Definition at line 440 of file Vehicle.cc.

References _batteryFactGroupListModel.

◆ cameraManager()

QGCCameraManager * Vehicle::cameraManager ( )
inline

Definition at line 1333 of file Vehicle.h.

References cameraManager().

Referenced by cameraManager(), and mavlinkLogManagerChanged().

◆ cameraManagerChanged

◆ cameraTriggerPoints()

QmlObjectListModel * Vehicle::cameraTriggerPoints ( )

Definition at line 444 of file Vehicle.cc.

References QmlObjectListModel::get().

◆ capabilitiesKnown()

bool Vehicle::capabilitiesKnown ( ) const
inline

Definition at line 731 of file Vehicle.h.

Referenced by capabilitiesKnownChanged().

◆ capabilitiesKnownChanged

void Vehicle::capabilitiesKnownChanged ( bool capabilitiesKnown)
signal

References capabilitiesKnown().

◆ capabilityBits()

uint64_t Vehicle::capabilityBits ( ) const
inline

◆ capabilityBitsChanged

void Vehicle::capabilityBitsChanged ( uint64_t capabilityBits)
signal

◆ checkListState()

CheckList Vehicle::checkListState ( )
inline

Definition at line 762 of file Vehicle.h.

◆ checkListStateChanged

void Vehicle::checkListStateChanged ( )
signal

◆ clearAllParamMapRC()

void Vehicle::clearAllParamMapRC ( void )

◆ clearMessages()

void Vehicle::clearMessages ( )

Definition at line 3454 of file Vehicle.cc.

◆ clockFactGroup()

FactGroup * Vehicle::clockFactGroup ( )

Definition at line 427 of file Vehicle.cc.

References _clockFactGroup, and FactGroup::FactGroup().

◆ closeVehicle()

void Vehicle::closeVehicle ( )

Removes the vehicle from the system.

Definition at line 445 of file Vehicle.cc.

References _vehicleLinkManager.

◆ coaxialMotors()

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

Definition at line 1466 of file Vehicle.cc.

◆ compId()

◆ compInfoManager()

ComponentInformationManager * Vehicle::compInfoManager ( )
inline

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

Referenced by cameraManagerChanged(), and healthAndArmingCheckModeGroup().

◆ defaultComponentId()

◆ defaultCruiseSpeed()

double Vehicle::defaultCruiseSpeed ( ) const
inline

Definition at line 549 of file Vehicle.h.

Referenced by MissionFlightStatusCalculator::reset().

◆ defaultCruiseSpeedChanged

void Vehicle::defaultCruiseSpeedChanged ( double cruiseSpeed)
signal

◆ defaultHoverSpeed()

double Vehicle::defaultHoverSpeed ( ) const
inline

Definition at line 550 of file Vehicle.h.

Referenced by MissionFlightStatusCalculator::reset().

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

References _distanceSensorFactGroup, and FactGroup::FactGroup().

◆ doSetHome()

void Vehicle::doSetHome ( const QGeoCoordinate & coord)

Set home from flight map coordinate.

Definition at line 2957 of file Vehicle.cc.

References _terrainQueryCoordinator.

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

◆ effectiveCustomModeChanged

void Vehicle::effectiveCustomModeChanged ( )
signal

The custom mode used for health and arming check mode groups changed. Unlike flightModeChanged this also fires when only CURRENT_MODE's intended mode changes.

Referenced by MAVLinkEventManager::MAVLinkEventManager().

◆ efiFactGroup()

FactGroup * Vehicle::efiFactGroup ( )

Definition at line 436 of file Vehicle.cc.

References _efiFactGroup, and FactGroup::FactGroup().

◆ emergencyStop()

void Vehicle::emergencyStop ( )

Command vehicle to kill all motors no matter what state.

Definition at line 2136 of file Vehicle.cc.

References sendMavCommand().

◆ escs()

QmlObjectListModel * Vehicle::escs ( )

Definition at line 441 of file Vehicle.cc.

References _escStatusFactGroupListModel.

◆ estimatorStatusFactGroup()

FactGroup * Vehicle::estimatorStatusFactGroup ( )

Definition at line 432 of file Vehicle.cc.

References _estimatorStatusFactGroup, and FactGroup::FactGroup().

◆ expandedToolbarIndicatorSource()

QVariant Vehicle::expandedToolbarIndicatorSource ( const QString & indicatorName)

Definition at line 3406 of file Vehicle.cc.

◆ firmwareBoardProductId()

int Vehicle::firmwareBoardProductId ( ) const
inline

Definition at line 692 of file Vehicle.h.

◆ firmwareBoardVendorId()

int Vehicle::firmwareBoardVendorId ( ) const
inline

Definition at line 691 of file Vehicle.h.

◆ firmwareCustomMajorVersion()

int Vehicle::firmwareCustomMajorVersion ( ) const
inline

Definition at line 688 of file Vehicle.h.

◆ firmwareCustomMinorVersion()

int Vehicle::firmwareCustomMinorVersion ( ) const
inline

Definition at line 689 of file Vehicle.h.

◆ firmwareCustomPatchVersion()

int Vehicle::firmwareCustomPatchVersion ( ) const
inline

Definition at line 690 of file Vehicle.h.

◆ firmwareCustomVersionChanged

void Vehicle::firmwareCustomVersionChanged ( )
signal

◆ firmwareMajorVersion()

int Vehicle::firmwareMajorVersion ( ) const
inline

◆ firmwareMinorVersion()

int Vehicle::firmwareMinorVersion ( ) const
inline

◆ firmwarePatchVersion()

int Vehicle::firmwarePatchVersion ( ) const
inline

◆ firmwarePlugin()

FirmwarePlugin * Vehicle::firmwarePlugin ( )
inline

Provides access to the Firmware Plugin for this Vehicle.

Definition at line 465 of file Vehicle.h.

Referenced by TakeoffMissionItem::isVTOLMulticopterTakeoff(), and MissionFlightStatusCalculator::reset().

◆ firmwarePluginInstanceData()

class FirmwarePluginInstanceData * Vehicle::firmwarePluginInstanceData ( )
inline

◆ firmwareType()

MAV_AUTOPILOT Vehicle::firmwareType ( ) const
inline

◆ firmwareTypeChanged

◆ firmwareTypeString()

QString Vehicle::firmwareTypeString ( ) const

Definition at line 521 of file Vehicle.cc.

References QGCMAVLink::firmwareClassToString().

◆ firmwareVersionChanged

void Vehicle::firmwareVersionChanged ( )
signal

◆ firmwareVersionType()

int Vehicle::firmwareVersionType ( ) const
inline

Definition at line 687 of file Vehicle.h.

Referenced by FirmwarePlugin::_versionFileDownloadFinished().

◆ firmwareVersionTypeString()

QString Vehicle::firmwareVersionTypeString ( ) const

Definition at line 2342 of file Vehicle.cc.

References QGCMAVLink::firmwareVersionTypeToString().

◆ fixedWing()

◆ flashBootloader()

void Vehicle::flashBootloader ( )

Definition at line 3425 of file Vehicle.cc.

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

◆ flightMode()

◆ flightModeChanged

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

References flightMode().

Referenced by Vehicle().

◆ flightModes()

QStringList Vehicle::flightModes ( )

Definition at line 1509 of file Vehicle.cc.

References flightModes().

Referenced by flightModes().

◆ flightModesChanged

void Vehicle::flightModesChanged ( )
signal

◆ flightModeSetAvailable()

bool Vehicle::flightModeSetAvailable ( )

Definition at line 1504 of file Vehicle.cc.

References FirmwarePlugin::SetFlightModeCapability.

◆ flowImageIndex()

uint32_t Vehicle::flowImageIndex ( ) const

Definition at line 3595 of file Vehicle.cc.

Referenced by newFormattedMessage().

◆ flowImageIndexChanged

void Vehicle::flowImageIndexChanged ( )
signal

◆ followFlightMode()

QString Vehicle::followFlightMode ( ) const

Definition at line 2650 of file Vehicle.cc.

◆ forceArm()

void Vehicle::forceArm ( void )

Definition at line 1495 of file Vehicle.cc.

References sendMavCommand().

◆ forceInitialPlanRequestComplete()

void Vehicle::forceInitialPlanRequestComplete ( )

Definition at line 2796 of file Vehicle.cc.

References initialPlanRequestCompleteChanged().

◆ formattedMessages()

QString Vehicle::formattedMessages ( ) const

Definition at line 3484 of file Vehicle.cc.

Referenced by sendControlRequestAllowedChanged().

◆ formattedMessagesChanged

void Vehicle::formattedMessagesChanged ( )
signal

◆ ftpManager()

FTPManager * Vehicle::ftpManager ( )
inline

Definition at line 603 of file Vehicle.h.

References _ftpManager.

◆ gcsControlStatusChanged

void Vehicle::gcsControlStatusChanged ( )
signal

◆ generatorFactGroup()

FactGroup * Vehicle::generatorFactGroup ( )

Definition at line 435 of file Vehicle.cc.

References _generatorFactGroup, and FactGroup::FactGroup().

◆ genericFirmware()

bool Vehicle::genericFirmware ( ) const
inline

Definition at line 517 of file Vehicle.h.

References apmFirmware(), and px4Firmware().

◆ geoFenceManager()

GeoFenceManager * Vehicle::geoFenceManager ( )
inline

Definition at line 598 of file Vehicle.h.

References _geoFenceManager.

◆ getInitialGCSPressure()

qreal Vehicle::getInitialGCSPressure ( ) const
inline

Definition at line 433 of file Vehicle.h.

Referenced by APMFirmwarePlugin::startCompensatingBaro().

◆ getInitialGCSTemperature()

qreal Vehicle::getInitialGCSTemperature ( ) const
inline

Definition at line 434 of file Vehicle.h.

Referenced by APMFirmwarePlugin::startCompensatingBaro().

◆ getMessageRate()

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

Definition at line 3396 of file Vehicle.cc.

References compId().

◆ gimbalController()

GimbalController * Vehicle::gimbalController ( )
inline

Definition at line 769 of file Vehicle.h.

References GimbalController.

◆ gitHash()

QString Vehicle::gitHash ( ) const
inline

Definition at line 698 of file Vehicle.h.

◆ gitHashChanged

void Vehicle::gitHashChanged ( QString hash)
signal

◆ gotoFlightMode()

QString Vehicle::gotoFlightMode ( ) const

Definition at line 1878 of file Vehicle.cc.

◆ gps2FactGroup()

VehicleGPSFactGroup * Vehicle::gps2FactGroup ( )

Definition at line 420 of file Vehicle.cc.

References _gps2FactGroup.

◆ gpsFactGroup()

VehicleGPSFactGroup * Vehicle::gpsFactGroup ( )

Definition at line 415 of file Vehicle.cc.

References _gpsFactGroup.

Referenced by NTRIPVehicleGgaSource::setVehicle().

◆ guidedMode()

bool Vehicle::guidedMode ( ) const

Definition at line 2120 of file Vehicle.cc.

Referenced by guidedModeChanged(), and 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 1969 of file Vehicle.cc.

References guided_mode_not_supported_by_vehicle, pauseVehicle(), and QGC::showAppMessage().

◆ guidedModeChanged

void Vehicle::guidedModeChanged ( bool guidedMode)
signal

References guidedMode().

◆ guidedModeChangeEquivalentAirspeedMetersSecond()

void Vehicle::guidedModeChangeEquivalentAirspeedMetersSecond ( double airspeed)

Command vehicle to change equivalent airspeed

Parameters
airspeedTarget equivalent airspeed

Definition at line 1989 of file Vehicle.cc.

References guided_mode_not_supported_by_vehicle, and QGC::showAppMessage().

◆ guidedModeChangeGroundSpeedMetersSecond()

void Vehicle::guidedModeChangeGroundSpeedMetersSecond ( double groundspeed)

Command vehicle to change groundspeed

Parameters
groundspeedTarget horizontal groundspeed

Definition at line 1979 of file Vehicle.cc.

References guided_mode_not_supported_by_vehicle, and QGC::showAppMessage().

◆ guidedModeChangeHeading()

void Vehicle::guidedModeChangeHeading ( const QGeoCoordinate & headingCoord)

Command vehicle to change yaw

Parameters
coordinateto rotate towards

Definition at line 2092 of file Vehicle.cc.

References QGC::showAppMessage().

◆ guidedModeGotoLocation()

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

Command vehicle to move to specified location (altitude is ignored)

Returns
true: goto command accepted, false: goto failed

Definition at line 1948 of file Vehicle.cc.

References FactMetaData::appSettingsHorizontalDistanceUnitsString(), coordinate(), SettingsManager::flyViewSettings(), guided_mode_not_supported_by_vehicle, SettingsManager::instance(), FactMetaData::metersToAppSettingsHorizontalDistanceUnits(), and QGC::showAppMessage().

◆ guidedModeLand()

void Vehicle::guidedModeLand ( )

Command vehicle to land at current location.

Definition at line 1892 of file Vehicle.cc.

References guided_mode_not_supported_by_vehicle, and QGC::showAppMessage().

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

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

◆ guidedModeROI()

bool Vehicle::guidedModeROI ( const QGeoCoordinate & centerCoord,
double relativeAltitudeMeters )

Command vehicle to set a Region Of Interest at the specified location.

Parameters
centerCoordROI location (altitude within the coordinate is ignored)
relativeAltitudeMetersROI altitude in meters above home
Returns
true: ROI command sent, false: unable to send

Definition at line 2030 of file Vehicle.cc.

References roiCoordChanged(), roiRelativeAltitudeMetersChanged(), and QGC::showAppMessage().

◆ guidedModeRTL()

void Vehicle::guidedModeRTL ( bool smartRTL)

Command vehicle to return to launch.

Definition at line 1883 of file Vehicle.cc.

References guided_mode_not_supported_by_vehicle, and QGC::showAppMessage().

◆ guidedModeTakeoff()

void Vehicle::guidedModeTakeoff ( double altitudeRelative)

Command vehicle to takeoff from current location.

Definition at line 1901 of file Vehicle.cc.

References VehicleFactGroup::altitudeRelative(), guided_mode_not_supported_by_vehicle, and QGC::showAppMessage().

◆ hasGripper()

bool Vehicle::hasGripper ( ) const

Definition at line 1932 of file Vehicle.cc.

◆ hasGripperChanged

void Vehicle::hasGripperChanged ( )
signal

◆ hasUnreadMessages()

bool Vehicle::hasUnreadMessages ( ) const

Definition at line 3474 of file Vehicle.cc.

Referenced by sendControlRequestAllowedChanged().

◆ hasUnreadMessagesChanged

void Vehicle::hasUnreadMessagesChanged ( )
signal

◆ haveFWSpeedLimChanged

void Vehicle::haveFWSpeedLimChanged ( )
signal

◆ haveFWSpeedLimits()

bool Vehicle::haveFWSpeedLimits ( ) const
inline

Definition at line 426 of file Vehicle.h.

References _fixed_wing_airspeed_limits_available.

◆ haveMRSpeedLimChanged

void Vehicle::haveMRSpeedLimChanged ( )
signal

◆ haveMRSpeedLimits()

bool Vehicle::haveMRSpeedLimits ( ) const
inline

Definition at line 425 of file Vehicle.h.

References _multirotor_speed_limits_available.

◆ healthAndArmingCheckModeGroup()

int Vehicle::healthAndArmingCheckModeGroup ( uint32_t customMode) const

Autopilot health and arming check mode group of a custom mode. -1 if unknown.

Definition at line 3660 of file Vehicle.cc.

References customMode().

Referenced by cameraManagerChanged().

◆ healthAndArmingCheckReport()

HealthAndArmingCheckReport * Vehicle::healthAndArmingCheckReport ( )

Definition at line 3665 of file Vehicle.cc.

Referenced by cameraManagerChanged().

◆ healthAndArmingChecksSupported()

bool Vehicle::healthAndArmingChecksSupported ( uint8_t compid) const

True if the component's events metadata lists the libevents health and arming check protocol.

Definition at line 3655 of file Vehicle.cc.

Referenced by cameraManagerChanged().

◆ hilMode()

bool Vehicle::hilMode ( ) const
inline

Definition at line 564 of file Vehicle.h.

◆ hobbsMeter()

QString Vehicle::hobbsMeter ( )

Definition at line 2807 of file Vehicle.cc.

◆ hobbsMeterChanged

void Vehicle::hobbsMeterChanged ( )
signal

◆ homePosition()

◆ homePositionChanged

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

◆ hygrometerFactGroup()

FactGroup * Vehicle::hygrometerFactGroup ( )

Definition at line 434 of file Vehicle.cc.

References _hygrometerFactGroup, and FactGroup::FactGroup().

◆ id()

◆ inFwdFlight()

bool Vehicle::inFwdFlight ( ) const

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

Referenced by initialPlanRequestCompleteChanged().

◆ initialPlanRequestCompleteChanged

void Vehicle::initialPlanRequestCompleteChanged ( bool initialPlanRequestComplete)
signal

◆ isInitialConnectComplete()

bool Vehicle::isInitialConnectComplete ( ) const

Definition at line 2894 of file Vehicle.cc.

References _initialConnectStateMachine.

◆ isMavCommandPending()

bool Vehicle::isMavCommandPending ( int targetCompId,
MAV_CMD command )

isMavCommandPending Query whether the specified MAV_CMD is in queue to be sent or has already been sent but whose reply has not yet been received and whose timeout has not yet expired.

Or, said another way: if you call `sendMavCommand(compId, command, true, ...)`

will an error be shown because you (or another part of QGC) has already sent that command?

Parameters
targetCompId
command
Returns

Definition at line 2245 of file Vehicle.cc.

◆ isOfflineEditingVehicle()

bool Vehicle::isOfflineEditingVehicle ( ) const
inline

Definition at line 535 of file Vehicle.h.

Referenced by APMFirmwarePlugin::initializeVehicle().

◆ isROIEnabled()

bool Vehicle::isROIEnabled ( ) const
inline

Running loss rate.

Definition at line 757 of file Vehicle.h.

◆ isROIEnabledChanged

void Vehicle::isROIEnabledChanged ( )
signal

◆ landFlightMode()

QString Vehicle::landFlightMode ( ) const

Definition at line 2640 of file Vehicle.cc.

◆ landing()

bool Vehicle::landing ( ) const
inline

Definition at line 526 of file Vehicle.h.

Referenced by _setLanding(), and landingChanged().

◆ landingChanged

void Vehicle::landingChanged ( bool landing)
signal

References landing().

Referenced by _setLanding().

◆ landingGearDeploy()

void Vehicle::landingGearDeploy ( )

Command vichecle to deploy landing gear.

Definition at line 2146 of file Vehicle.cc.

References defaultComponentId(), and sendMavCommand().

◆ landingGearRetract()

void Vehicle::landingGearRetract ( )

Command vichecle to retract landing gear.

Definition at line 2156 of file Vehicle.cc.

References defaultComponentId(), and sendMavCommand().

◆ latitude()

float Vehicle::latitude ( )
inline

Definition at line 513 of file Vehicle.h.

◆ loadProgress()

double Vehicle::loadProgress ( ) const
inline

Definition at line 765 of file Vehicle.h.

◆ loadProgressChanged

void Vehicle::loadProgressChanged ( float value)
signal

◆ localPositionFactGroup()

FactGroup * Vehicle::localPositionFactGroup ( )

Definition at line 430 of file Vehicle.cc.

References _localPositionFactGroup, and FactGroup::FactGroup().

◆ localPositionSetpointFactGroup()

FactGroup * Vehicle::localPositionSetpointFactGroup ( )

Definition at line 431 of file Vehicle.cc.

References _localPositionSetpointFactGroup, and FactGroup::FactGroup().

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

◆ longitudeChanged

void Vehicle::longitudeChanged ( )
signal

◆ markMessagesRead()

void Vehicle::markMessagesRead ( )

Definition at line 3459 of file Vehicle.cc.

◆ mavCmdResultFailureCodeToString()

QString Vehicle::mavCmdResultFailureCodeToString ( MavCmdResultFailureCode_t failureCode)
static

◆ mavCommandResult

void Vehicle::mavCommandResult ( quint32 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(), and MAVLinkLogManager::MAVLinkLogManager().

◆ mavlinkLogData

void Vehicle::mavlinkLogData ( Vehicle * vehicle,
quint32 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 3610 of file Vehicle.cc.

Referenced by flowImageIndexChanged().

◆ mavlinkLogManagerChanged

void Vehicle::mavlinkLogManagerChanged ( )
signal

◆ mavlinkLossCount()

quint64 Vehicle::mavlinkLossCount ( ) const
inline

Total number of sucessful messages received.

Definition at line 754 of file Vehicle.h.

◆ mavlinkLossPercent()

float Vehicle::mavlinkLossPercent ( ) const
inline

Total number of lost messages.

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

◆ mavlinkSentCount()

quint64 Vehicle::mavlinkSentCount ( ) const
inline

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

◆ maximumHorizontalSpeedMultirotorMetersSecond()

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

Definition at line 1915 of file Vehicle.cc.

◆ messagesLost()

uint Vehicle::messagesLost ( ) const
inline

Definition at line 520 of file Vehicle.h.

◆ messagesLostChanged

void Vehicle::messagesLostChanged ( )
signal

◆ messagesReceived()

uint Vehicle::messagesReceived ( ) const
inline

Definition at line 518 of file Vehicle.h.

◆ messagesReceivedChanged

void Vehicle::messagesReceivedChanged ( )
signal

◆ messagesSent()

uint Vehicle::messagesSent ( ) const
inline

Definition at line 519 of file Vehicle.h.

◆ messagesSentChanged

void Vehicle::messagesSentChanged ( )
signal

◆ minimumEquivalentAirspeed()

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

Definition at line 1927 of file Vehicle.cc.

◆ minimumTakeoffAltitudeMeters()

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

Definition at line 1910 of file Vehicle.cc.

◆ missionFlightMode()

QString Vehicle::missionFlightMode ( ) const

Definition at line 2620 of file Vehicle.cc.

◆ missionManager()

MissionManager * Vehicle::missionManager ( )
inline

◆ motorCount()

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

Definition at line 1449 of file Vehicle.cc.

References QGCMAVLink::motorCount(), and Fact::rawValue().

◆ motorDetectionFlightMode()

QString Vehicle::motorDetectionFlightMode ( ) const

Definition at line 2655 of file Vehicle.cc.

◆ motorInterlock()

void Vehicle::motorInterlock ( bool enable)

Command vehicle to Enable/Disable Motor Interlock.

Definition at line 3437 of file Vehicle.cc.

References apmFirmware(), defaultComponentId(), APM::MOTOR_INTERLOCK, and sendMavCommand().

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

References sendMavCommand().

◆ multiRotor()

◆ newFormattedMessage

void Vehicle::newFormattedMessage ( QString formattedMessage)
signal

◆ newStableFirmwareVersion()

QString Vehicle::newStableFirmwareVersion ( ) const
inline

Definition at line 562 of file Vehicle.h.

◆ newStableFirmwareVersionAcknowledged()

bool Vehicle::newStableFirmwareVersionAcknowledged ( ) const
inline

Definition at line 563 of file Vehicle.h.

◆ newStableFirmwareVersionChanged

void Vehicle::newStableFirmwareVersionChanged ( )
signal

◆ objectAvoidance()

VehicleObjectAvoidance * Vehicle::objectAvoidance ( )
inline

Definition at line 605 of file Vehicle.h.

◆ orbitActive()

bool Vehicle::orbitActive ( ) const
inline

Definition at line 554 of file Vehicle.h.

Referenced by orbitActiveChanged().

◆ orbitActiveChanged

void Vehicle::orbitActiveChanged ( bool orbitActive)
signal

References orbitActive().

◆ orbitMapCircle()

QGCMapCircle * Vehicle::orbitMapCircle ( )
inline

Definition at line 555 of file Vehicle.h.

◆ pairRX()

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

Definition at line 3235 of file Vehicle.cc.

References sendMavCommand().

◆ parameterManager() [1/2]

◆ parameterManager() [2/2]

ParameterManager * Vehicle::parameterManager ( ) const
inline

Definition at line 601 of file Vehicle.h.

◆ pauseFlightMode()

QString Vehicle::pauseFlightMode ( ) const

Definition at line 2625 of file Vehicle.cc.

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

References QGC::showAppMessage().

Referenced by guidedModeChangeAltitude().

◆ prearmError()

QString Vehicle::prearmError ( ) const
inline

Definition at line 494 of file Vehicle.h.

Referenced by prearmErrorChanged(), and setPrearmError().

◆ prearmErrorChanged

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

References prearmError().

Referenced by setPrearmError().

◆ prepareDelete()

void Vehicle::prepareDelete ( )

Vehicle is about to be deleted.

◆ px4Firmware()

bool Vehicle::px4Firmware ( ) const
inline

Definition at line 515 of file Vehicle.h.

Referenced by RallyPointController::addPoint(), and genericFirmware().

◆ radioStatusFactGroup()

FactGroup * Vehicle::radioStatusFactGroup ( )

Definition at line 438 of file Vehicle.cc.

References _radioStatusFactGroup, and FactGroup::FactGroup().

◆ rallyPointManager()

RallyPointManager * Vehicle::rallyPointManager ( )
inline

Definition at line 599 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(), 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

Referenced by PX4FlightModesController::setMonitorRc().

◆ readiness()

VehicleReadiness * Vehicle::readiness ( )
inline

nullptr for the offline editing vehicle, which has nothing to be ready for

Definition at line 423 of file Vehicle.h.

◆ readyToFly()

bool Vehicle::readyToFly ( ) const
inline

Definition at line 557 of file Vehicle.h.

◆ readyToFlyAvailable()

bool Vehicle::readyToFlyAvailable ( ) const
inline

Definition at line 556 of file Vehicle.h.

Referenced by readyToFlyAvailableChanged().

◆ readyToFlyAvailableChanged

void Vehicle::readyToFlyAvailableChanged ( bool readyToFlyAvailable)
signal

◆ readyToFlyChanged

void Vehicle::readyToFlyChanged ( bool readyToFy)
signal

◆ rebootRequired()

bool Vehicle::rebootRequired ( ) const
inline

Definition at line 561 of file Vehicle.h.

◆ rebootRequiredChanged

void Vehicle::rebootRequiredChanged ( )
signal

Referenced by setRebootRequired().

◆ rebootVehicle()

void Vehicle::rebootVehicle ( )

◆ remoteIDManager()

RemoteIDManager * Vehicle::remoteIDManager ( )
inline

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

References MAVLinkProtocol::getComponentId(), 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 2305 of file Vehicle.cc.

References compId().

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

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

◆ requiresGpsFixChanged

void Vehicle::requiresGpsFixChanged ( )
signal

◆ resetCounters()

void Vehicle::resetCounters ( )

< Non-empty when vehicle firmware is older than this stable version

< Vehicle is flying, driving or diving < Vehicle is underway and is not a rover/boat or sub < Vehicle is in landing pattern (DO_LAND_START) Vehicle is in Guided mode and can respond to guided commands Flight mode vehicle is in while performing goto Resets link status counters

Definition at line 526 of file Vehicle.cc.

◆ roiCoordChanged

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

Referenced by guidedModeROI().

◆ roiRelativeAltitudeMeters()

double Vehicle::roiRelativeAltitudeMeters ( ) const
inline

Last commanded ROI altitude in meters above home. Used to preserve the altitude when the ROI is re-positioned.

Definition at line 760 of file Vehicle.h.

◆ roiRelativeAltitudeMetersChanged

void Vehicle::roiRelativeAltitudeMetersChanged ( )
signal

Referenced by guidedModeROI().

◆ rover()

bool Vehicle::rover ( ) const

Definition at line 1788 of file Vehicle.cc.

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

Referenced by startCalibration().

◆ rpmFactGroup()

FactGroup * Vehicle::rpmFactGroup ( )

Definition at line 437 of file Vehicle.cc.

References _rpmFactGroup, and FactGroup::FactGroup().

◆ rtlFlightMode()

QString Vehicle::rtlFlightMode ( ) const

Definition at line 2630 of file Vehicle.cc.

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

References compId(), and sendMavCommand().

◆ sendControlRequestAllowedChanged

◆ sendGripperAction

void Vehicle::sendGripperAction ( GRIPPER_ACTIONS gripperOption)
slot

Definition at line 3184 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 )

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

References compId().

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

References compId().

Referenced by APMFirmwarePlugin::guidedModeGotoLocation().

◆ sendMavCommandIntWithLambdaFallback()

void Vehicle::sendMavCommandIntWithLambdaFallback ( std::function< void()> lambda,
int compId,
MAV_CMD command,
MAV_FRAME frame,
bool showError,
float param1 = 0.0f,
float param2 = 0.0f,
float param3 = 0.0f,
float param4 = 0.0f,
double param5 = 0.0,
double param6 = 0.0,
float param7 = 0.0f )

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

Definition at line 2240 of file Vehicle.cc.

References compId().

Referenced by setEstimatorOrigin().

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

References compId().

Referenced by _requestCameraInfoHelper(), PX4FirmwarePlugin::guidedModeTakeoff(), rebootVehicle(), and requestOperatorControl().

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

References compId().

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

References PlanMasterController::sendPlanToVehicle().

◆ sensorsEnabledBits()

int Vehicle::sensorsEnabledBits ( ) const
inline

Definition at line 537 of file Vehicle.h.

Referenced by sensorsEnabledBitsChanged().

◆ sensorsEnabledBitsChanged

void Vehicle::sensorsEnabledBitsChanged ( int sensorsEnabledBits)
signal

References sensorsEnabledBits().

◆ sensorsHealthBits()

int Vehicle::sensorsHealthBits ( ) const
inline

Definition at line 538 of file Vehicle.h.

Referenced by sensorsHealthBitsChanged().

◆ sensorsHealthBitsChanged

void Vehicle::sensorsHealthBitsChanged ( int sensorsHealthBits)
signal

References sensorsHealthBits().

◆ sensorsParametersResetAck

void Vehicle::sensorsParametersResetAck ( bool success)
signal

◆ sensorsPresentBits()

int Vehicle::sensorsPresentBits ( ) const
inline

Definition at line 536 of file Vehicle.h.

Referenced by sensorsPresentBitsChanged().

◆ sensorsPresentBitsChanged

void Vehicle::sensorsPresentBitsChanged ( int sensorsPresentBits)
signal

References sensorsPresentBits().

◆ sensorsUnhealthyBits()

int Vehicle::sensorsUnhealthyBits ( ) const
inline

Definition at line 539 of file Vehicle.h.

Referenced by sensorsUnhealthyBitsChanged().

◆ 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,
const QJsonDocument & metadataJson )

Definition at line 1296 of file Vehicle.cc.

References _actuators.

◆ setArmed()

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

Definition at line 1486 of file Vehicle.cc.

References armed(), and sendMavCommand().

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

◆ setArmedShowError()

void Vehicle::setArmedShowError ( bool armed)
inline

Definition at line 472 of file Vehicle.h.

References armed(), and setArmed().

◆ setCheckListState()

void Vehicle::setCheckListState ( CheckList cl)
inline

Definition at line 763 of file Vehicle.h.

References checkListStateChanged().

◆ setCurrentMissionSequence()

void Vehicle::setCurrentMissionSequence ( int seq)

◆ setEstimatorOrigin()

void Vehicle::setEstimatorOrigin ( const QGeoCoordinate & centerCoord)

◆ setEstimatorOrigin_SET_GPS_GLOBAL_ORIGIN()

void Vehicle::setEstimatorOrigin_SET_GPS_GLOBAL_ORIGIN ( const QGeoCoordinate & centerCoord)

Fallback for setEstimatorOrigin which sends the deprecated SET_GPS_GLOBAL_ORIGIN message.

Definition at line 3212 of file Vehicle.cc.

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

Referenced by setEstimatorOrigin().

◆ setEventsMetadata()

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

Definition at line 3670 of file Vehicle.cc.

References sendMavCommand().

Referenced by cameraManagerChanged().

◆ setFirmwareCustomVersion()

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

Definition at line 2334 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 2614 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 2325 of file Vehicle.cc.

References firmwareVersionChanged().

Referenced by APMFirmwarePlugin::initializeVehicle().

◆ setFlightMode()

◆ setGuidedMode()

void Vehicle::setGuidedMode ( bool guidedMode)

Definition at line 2125 of file Vehicle.cc.

References guidedMode().

◆ setInitialGCSPressure()

void Vehicle::setInitialGCSPressure ( qreal pressure)
inline

Definition at line 435 of file Vehicle.h.

Referenced by Vehicle().

◆ setInitialGCSTemperature()

void Vehicle::setInitialGCSTemperature ( qreal temperature)
inline

Definition at line 436 of file Vehicle.h.

Referenced by Vehicle().

◆ setMessageRate()

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

Definition at line 3401 of file Vehicle.cc.

References compId().

Referenced by MAVLinkInspectorController::setMessageInterval().

◆ setNewStableFirmwareVersion()

void Vehicle::setNewStableFirmwareVersion ( const QString & version)

◆ setOfflineEditingDefaultComponentId()

void Vehicle::setOfflineEditingDefaultComponentId ( int defaultComponentId)

Sets the default component id for an offline editing vehicle.

Definition at line 2538 of file Vehicle.cc.

References defaultComponentId().

◆ setPIDTuningTelemetryMode()

◆ setpointFactGroup()

FactGroup * Vehicle::setpointFactGroup ( )

Definition at line 428 of file Vehicle.cc.

References _setpointFactGroup, and FactGroup::FactGroup().

◆ setPrearmError()

void Vehicle::setPrearmError ( const QString & prearmError)

Definition at line 2311 of file Vehicle.cc.

References prearmError(), and prearmErrorChanged().

◆ setRebootRequired()

void Vehicle::setRebootRequired ( )

Latches rebootRequired until the vehicle reboots.

Definition at line 2378 of file Vehicle.cc.

References rebootRequiredChanged().

◆ setSoloFirmware()

void Vehicle::setSoloFirmware ( bool soloFirmware)

Definition at line 2525 of file Vehicle.cc.

References soloFirmware(), and soloFirmwareChanged().

◆ setVtolInFwdFlight

void Vehicle::setVtolInFwdFlight ( bool vtolInFwdFlight)
slot

Definition at line 2547 of file Vehicle.cc.

References sendMavCommand(), and vtolInFwdFlight().

◆ showCommandAckError()

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

Definition at line 2255 of file Vehicle.cc.

References MavCommandQueue::showCommandAckError().

◆ signingController() [1/2]

VehicleSigningController * Vehicle::signingController ( )
inline

Definition at line 566 of file Vehicle.h.

◆ signingController() [2/2]

const VehicleSigningController * Vehicle::signingController ( ) const
inline

Definition at line 567 of file Vehicle.h.

◆ smartRTLFlightMode()

QString Vehicle::smartRTLFlightMode ( ) const

Definition at line 2635 of file Vehicle.cc.

◆ soloFirmware()

bool Vehicle::soloFirmware ( ) const
inline

Definition at line 702 of file Vehicle.h.

Referenced by setSoloFirmware(), and soloFirmwareChanged().

◆ soloFirmwareChanged

void Vehicle::soloFirmwareChanged ( bool soloFirmware)
signal

References soloFirmware().

Referenced by setSoloFirmware().

◆ spacecraft()

bool Vehicle::spacecraft ( ) const

Definition at line 1798 of file Vehicle.cc.

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

◆ stabilizedFlightMode()

QString Vehicle::stabilizedFlightMode ( ) const

Definition at line 2660 of file Vehicle.cc.

◆ standardModes()

const StandardModes * Vehicle::standardModes ( ) const
inline

Definition at line 569 of file Vehicle.h.

References _standardModes.

◆ startCalibration()

◆ startMavlinkLog()

void Vehicle::startMavlinkLog ( )

Definition at line 2558 of file Vehicle.cc.

References sendMavCommand().

◆ startMission()

void Vehicle::startMission ( )

Definition at line 1943 of file Vehicle.cc.

◆ startTakeoff()

void Vehicle::startTakeoff ( )

Definition at line 1937 of file Vehicle.cc.

◆ startTimerRevertAllowTakeover()

void Vehicle::startTimerRevertAllowTakeover ( )

Definition at line 3244 of file Vehicle.cc.

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

◆ staticCameraList()

const QVariantList & Vehicle::staticCameraList ( ) const

Definition at line 3628 of file Vehicle.cc.

Referenced by mavlinkLogManagerChanged().

◆ stopCalibration()

void Vehicle::stopCalibration ( bool showError)

Definition at line 2511 of file Vehicle.cc.

References defaultComponentId(), and sendMavCommand().

◆ stopGuidedModeROI()

void Vehicle::stopGuidedModeROI ( )

◆ stopMavlinkLog()

void Vehicle::stopMavlinkLog ( )

Definition at line 2563 of file Vehicle.cc.

References sendMavCommand().

◆ stopTrackingFirmwareVehicleTypeChanges()

void Vehicle::stopTrackingFirmwareVehicleTypeChanges ( void )

◆ sub()

bool Vehicle::sub ( ) const

Definition at line 1793 of file Vehicle.cc.

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

Referenced by APMFirmwarePlugin::isCapable(), and Vehicle().

◆ supports()

VehicleSupports * Vehicle::supports ( )
inline

Definition at line 420 of file Vehicle.h.

◆ sysStatusSensorInfo()

QObject * Vehicle::sysStatusSensorInfo ( )

Definition at line 443 of file Vehicle.cc.

◆ takeControlFlightMode()

QString Vehicle::takeControlFlightMode ( ) const

Definition at line 2645 of file Vehicle.cc.

◆ temperatureFactGroup()

FactGroup * Vehicle::temperatureFactGroup ( )

Definition at line 426 of file Vehicle.cc.

References _temperatureFactGroup, and FactGroup::FactGroup().

◆ terrainFactGroup()

FactGroup * Vehicle::terrainFactGroup ( )

Definition at line 433 of file Vehicle.cc.

References _terrainFactGroup, and FactGroup::FactGroup().

◆ textMessageReceived

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

◆ toolIndicators()

const QVariantList & Vehicle::toolIndicators ( )

Definition at line 2681 of file Vehicle.cc.

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

References sendMavCommand().

◆ underway()

bool Vehicle::underway ( ) const
inline

Definition at line 522 of file Vehicle.h.

Referenced by _setUnderway(), APMFirmwarePlugin::startMission(), and underwayChanged().

◆ underwayChanged

void Vehicle::underwayChanged ( bool underway)
signal

References underway().

Referenced by _setUnderway().

◆ unreadCriticalMessageCount()

int Vehicle::unreadCriticalMessageCount ( ) const

Definition at line 3464 of file Vehicle.cc.

Referenced by sendControlRequestAllowedChanged().

◆ unreadCriticalMessageCountChanged

void Vehicle::unreadCriticalMessageCountChanged ( )
signal

◆ unreadMessageCount()

int Vehicle::unreadMessageCount ( ) const

Definition at line 3479 of file Vehicle.cc.

Referenced by sendControlRequestAllowedChanged().

◆ unreadMessageCountChanged

void Vehicle::unreadMessageCountChanged ( )
signal

◆ unreadWarningMessageCount()

int Vehicle::unreadWarningMessageCount ( ) const

Definition at line 3469 of file Vehicle.cc.

Referenced by sendControlRequestAllowedChanged().

◆ unreadWarningMessageCountChanged

void Vehicle::unreadWarningMessageCountChanged ( )
signal

◆ updateFlightDistance()

void Vehicle::updateFlightDistance ( double distance)

Definition at line 3006 of file Vehicle.cc.

References VehicleFactGroup::_flightDistanceFact.

◆ vehicleClass()

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

Definition at line 450 of file Vehicle.h.

References QGCMAVLink::vehicleClass().

Referenced by vehicleClassInternalName().

◆ vehicleClassInternalName()

QString Vehicle::vehicleClassInternalName ( ) const

Definition at line 1818 of file Vehicle.cc.

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

◆ vehicleFactGroup()

FactGroup * Vehicle::vehicleFactGroup ( )
inline

Definition at line 574 of file Vehicle.h.

References _vehicleFactGroup, and FactGroup::FactGroup().

◆ vehicleImageOpaque()

QString Vehicle::vehicleImageOpaque ( ) const

Definition at line 2665 of file Vehicle.cc.

◆ vehicleImageOutline()

QString Vehicle::vehicleImageOutline ( ) const

Definition at line 2673 of file Vehicle.cc.

◆ vehicleLinkManager()

◆ vehicleType()

◆ vehicleTypeChanged

void Vehicle::vehicleTypeChanged ( )
signal

◆ vehicleTypeString()

QString Vehicle::vehicleTypeString ( ) const

Definition at line 1813 of file Vehicle.cc.

References QGCMAVLink::mavTypeToString().

◆ vehicleUID()

quint64 Vehicle::vehicleUID ( ) const
inline

Definition at line 699 of file Vehicle.h.

◆ vehicleUIDChanged

void Vehicle::vehicleUIDChanged ( )
signal

◆ vehicleUIDStr()

QString Vehicle::vehicleUIDStr ( )

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

Referenced by FirmwarePlugin::_versionFileDownloadFinished().

◆ versionCompare() [2/2]

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

Definition at line 2838 of file Vehicle.cc.

◆ vibrationFactGroup()

FactGroup * Vehicle::vibrationFactGroup ( )

Definition at line 425 of file Vehicle.cc.

References _vibrationFactGroup, and FactGroup::FactGroup().

◆ virtualTabletJoystickValue()

◆ vtol()

◆ vtolInFwdFlight()

bool Vehicle::vtolInFwdFlight ( ) const
inline

Definition at line 529 of file Vehicle.h.

Referenced by setVtolInFwdFlight(), and vtolInFwdFlightChanged().

◆ vtolInFwdFlightChanged

void Vehicle::vtolInFwdFlightChanged ( bool vtolInFwdFlight)
signal

References vtolInFwdFlight().

◆ windFactGroup()

FactGroup * Vehicle::windFactGroup ( )

Definition at line 424 of file Vehicle.cc.

References _windFactGroup, and FactGroup::FactGroup().

◆ xConfigMotors()

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

Definition at line 1471 of file Vehicle.cc.

◆ FactGroupListModel

friend class FactGroupListModel
friend

Definition at line 110 of file Vehicle.h.

References FactGroupListModel.

Referenced by FactGroupListModel.

◆ GimbalController

friend class GimbalController
friend

◆ InitialConnectStateMachine

friend class InitialConnectStateMachine
friend

Definition at line 108 of file Vehicle.h.

References InitialConnectStateMachine.

Referenced by InitialConnectStateMachine.

◆ VehicleLinkManager

friend class VehicleLinkManager
friend

Definition at line 109 of file Vehicle.h.

References VehicleLinkManager.

Referenced by VehicleLinkManager, and vehicleLinkManager().

Member Data Documentation

◆ _actuators

Actuators* Vehicle::_actuators = nullptr

Definition at line 1165 of file Vehicle.h.

Referenced by actuators(), and setActuatorsMetadata().

◆ _altitudeTuningOffset

float Vehicle::_altitudeTuningOffset = qQNaN()

Definition at line 1104 of file Vehicle.h.

Referenced by setPIDTuningTelemetryMode().

◆ _batteryFactGroupListModel

BatteryFactGroupListModel* Vehicle::_batteryFactGroupListModel = nullptr

Definition at line 1154 of file Vehicle.h.

Referenced by batteries().

◆ _clockFactGroup

VehicleClockFactGroup* Vehicle::_clockFactGroup = nullptr

Definition at line 1137 of file Vehicle.h.

Referenced by clockFactGroup().

◆ _clockFactGroupName

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

Definition at line 1118 of file Vehicle.h.

◆ _distanceSensorFactGroup

VehicleDistanceSensorFactGroup* Vehicle::_distanceSensorFactGroup = nullptr

Definition at line 1139 of file Vehicle.h.

Referenced by distanceSensorFactGroup().

◆ _distanceSensorFactGroupName

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

Definition at line 1120 of file Vehicle.h.

◆ _efiFactGroup

VehicleEFIFactGroup* Vehicle::_efiFactGroup = nullptr

Definition at line 1145 of file Vehicle.h.

Referenced by efiFactGroup().

◆ _efiFactGroupName

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

Definition at line 1127 of file Vehicle.h.

◆ _escStatusFactGroupListModel

EscStatusFactGroupListModel* Vehicle::_escStatusFactGroupListModel = nullptr

Definition at line 1155 of file Vehicle.h.

Referenced by escs().

◆ _estimatorStatusFactGroup

VehicleEstimatorStatusFactGroup* Vehicle::_estimatorStatusFactGroup = nullptr

Definition at line 1142 of file Vehicle.h.

Referenced by estimatorStatusFactGroup().

◆ _estimatorStatusFactGroupName

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

Definition at line 1123 of file Vehicle.h.

◆ _fixed_wing_airspeed_limits_available

bool Vehicle::_fixed_wing_airspeed_limits_available = false

Definition at line 1108 of file Vehicle.h.

Referenced by haveFWSpeedLimits().

◆ _ftpManager

FTPManager* Vehicle::_ftpManager = nullptr

Definition at line 1163 of file Vehicle.h.

Referenced by ftpManager().

◆ _generatorFactGroup

VehicleGeneratorFactGroup* Vehicle::_generatorFactGroup = nullptr

Definition at line 1144 of file Vehicle.h.

Referenced by generatorFactGroup().

◆ _generatorFactGroupName

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

Definition at line 1126 of file Vehicle.h.

◆ _geoFenceManager

GeoFenceManager* Vehicle::_geoFenceManager = nullptr

Definition at line 1160 of file Vehicle.h.

Referenced by geoFenceManager().

◆ _gps2FactGroup

VehicleGPSFactGroup* Vehicle::_gps2FactGroup = nullptr

Definition at line 1133 of file Vehicle.h.

Referenced by gps2FactGroup().

◆ _gps2FactGroupName

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

Definition at line 1114 of file Vehicle.h.

◆ _gpsFactGroup

VehicleGPSFactGroup* Vehicle::_gpsFactGroup = nullptr

Definition at line 1132 of file Vehicle.h.

Referenced by gpsFactGroup().

◆ _gpsFactGroupName

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

Definition at line 1113 of file Vehicle.h.

◆ _hygrometerFactGroup

VehicleHygrometerFactGroup* Vehicle::_hygrometerFactGroup = nullptr

Definition at line 1143 of file Vehicle.h.

Referenced by hygrometerFactGroup().

◆ _hygrometerFactGroupName

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

Definition at line 1125 of file Vehicle.h.

◆ _initialConnectStateMachine

InitialConnectStateMachine* Vehicle::_initialConnectStateMachine = nullptr

Definition at line 1164 of file Vehicle.h.

Referenced by isInitialConnectComplete(), and Vehicle().

◆ _localPositionFactGroup

VehicleLocalPositionFactGroup* Vehicle::_localPositionFactGroup = nullptr

Definition at line 1140 of file Vehicle.h.

Referenced by localPositionFactGroup(), and setPIDTuningTelemetryMode().

◆ _localPositionFactGroupName

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

Definition at line 1121 of file Vehicle.h.

◆ _localPositionSetpointFactGroup

VehicleLocalPositionSetpointFactGroup* Vehicle::_localPositionSetpointFactGroup = nullptr

Definition at line 1141 of file Vehicle.h.

Referenced by localPositionSetpointFactGroup(), and setPIDTuningTelemetryMode().

◆ _localPositionSetpointFactGroupName

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

Definition at line 1122 of file Vehicle.h.

◆ _lowestBatteryChargeStateAnnouncedMap

QMap<uint8_t , uint8_t > Vehicle::_lowestBatteryChargeStateAnnouncedMap

Definition at line 1102 of file Vehicle.h.

◆ _missionManager

MissionManager* Vehicle::_missionManager = nullptr

Definition at line 1159 of file Vehicle.h.

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

◆ _multirotor_speed_limits_available

bool Vehicle::_multirotor_speed_limits_available = false

Definition at line 1107 of file Vehicle.h.

Referenced by haveMRSpeedLimits().

◆ _radioStatusFactGroup

RadioStatusFactGroup* Vehicle::_radioStatusFactGroup = nullptr

Definition at line 1148 of file Vehicle.h.

Referenced by radioStatusFactGroup().

◆ _radioStatusFactGroupName

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

Definition at line 1129 of file Vehicle.h.

◆ _rallyPointManager

RallyPointManager* Vehicle::_rallyPointManager = nullptr

Definition at line 1161 of file Vehicle.h.

Referenced by rallyPointManager().

◆ _remoteIDManager

RemoteIDManager* Vehicle::_remoteIDManager = nullptr

Definition at line 1166 of file Vehicle.h.

Referenced by remoteIDManager().

◆ _rpmFactGroup

VehicleRPMFactGroup* Vehicle::_rpmFactGroup = nullptr

Definition at line 1146 of file Vehicle.h.

Referenced by rpmFactGroup().

◆ _rpmFactGroupName

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

Definition at line 1128 of file Vehicle.h.

◆ _servoOutputRawValues

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

Definition at line 1151 of file Vehicle.h.

◆ _setpointFactGroup

VehicleSetpointFactGroup* Vehicle::_setpointFactGroup = nullptr

Definition at line 1138 of file Vehicle.h.

Referenced by setPIDTuningTelemetryMode(), and setpointFactGroup().

◆ _setpointFactGroupName

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

Definition at line 1119 of file Vehicle.h.

◆ _standardModes

StandardModes* Vehicle::_standardModes = nullptr

Definition at line 1167 of file Vehicle.h.

Referenced by standardModes().

◆ _temperatureFactGroup

VehicleTemperatureFactGroup* Vehicle::_temperatureFactGroup = nullptr

Definition at line 1136 of file Vehicle.h.

Referenced by temperatureFactGroup().

◆ _temperatureFactGroupName

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

Definition at line 1117 of file Vehicle.h.

◆ _terrainFactGroup

TerrainFactGroup* Vehicle::_terrainFactGroup = nullptr

Definition at line 1147 of file Vehicle.h.

Referenced by terrainFactGroup().

◆ _terrainFactGroupName

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

Definition at line 1124 of file Vehicle.h.

◆ _terrainProtocolHandler

TerrainProtocolHandler* Vehicle::_terrainProtocolHandler = nullptr

Definition at line 1157 of file Vehicle.h.

◆ _terrainQueryCoordinator

TerrainQueryCoordinator* Vehicle::_terrainQueryCoordinator = nullptr

Definition at line 1170 of file Vehicle.h.

Referenced by doSetHome().

◆ _vehicleFactGroup

VehicleFactGroup* Vehicle::_vehicleFactGroup

Definition at line 1131 of file Vehicle.h.

Referenced by Vehicle(), Vehicle(), and vehicleFactGroup().

◆ _vehicleFactGroupName

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

Definition at line 1112 of file Vehicle.h.

◆ _vehicleLinkManager

VehicleLinkManager* Vehicle::_vehicleLinkManager = nullptr

Definition at line 1162 of file Vehicle.h.

Referenced by closeVehicle(), and vehicleLinkManager().

◆ _vibrationFactGroup

VehicleVibrationFactGroup* Vehicle::_vibrationFactGroup = nullptr

Definition at line 1135 of file Vehicle.h.

Referenced by vibrationFactGroup().

◆ _vibrationFactGroupName

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

Definition at line 1116 of file Vehicle.h.

◆ _windFactGroup

VehicleWindFactGroup* Vehicle::_windFactGroup = nullptr

Definition at line 1134 of file Vehicle.h.

Referenced by windFactGroup().

◆ _windFactGroupName

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

Definition at line 1115 of file Vehicle.h.

◆ kAuxRcOverrideChannelCount

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

◆ MAV_AUTOPILOT_TRACK

const MAV_AUTOPILOT Vehicle::MAV_AUTOPILOT_TRACK = MAV_AUTOPILOT_ENUM_END
static

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

Referenced by MultiVehicleManager::init().


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