|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <MockConfiguration.h>
Inheritance diagram for MockConfiguration:
Collaboration diagram for MockConfiguration:Public Types | |
| enum | FailureMode_t { FailNone , FailParamNoResponseToRequestList , FailMissingParamOnInitialRequest , FailMissingParamOnAllRequests , FailInitialConnectRequestMessageAutopilotVersionFailure , FailInitialConnectRequestMessageAutopilotVersionLost } |
Public Types inherited from LinkConfiguration | |
| enum | LinkType { TypeSerial , TypeUdp , TypeTcp , TypeBluetooth , TypeLogReplay , TypeLast } |
Signals | |
| void | firmwareChanged () |
| void | vehicleChanged () |
| void | sendStatusChanged () |
| void | enableCameraChanged () |
| void | enableGimbalChanged () |
| void | gimbalHasRollAxisChanged () |
| void | gimbalHasPitchAxisChanged () |
| void | gimbalHasYawAxisChanged () |
| void | gimbalHasYawFollowChanged () |
| void | gimbalHasYawLockChanged () |
| void | gimbalHasRetractChanged () |
| void | gimbalHasNeutralChanged () |
| void | incrementVehicleIdChanged () |
| void | cameraCaptureVideoChanged () |
| void | cameraCaptureImageChanged () |
| void | cameraHasModesChanged () |
| void | cameraHasVideoStreamChanged () |
| void | cameraCanCaptureImageInVideoModeChanged () |
| void | cameraCanCaptureVideoInImageModeChanged () |
| void | cameraHasBasicZoomChanged () |
| void | cameraHasTrackingPointChanged () |
| void | cameraHasTrackingRectangleChanged () |
Signals inherited from LinkConfiguration | |
| void | nameChanged (const QString &name) |
| void | linkChanged () |
| void | dynamicChanged () |
| void | autoConnectChanged () |
| void | highLatencyChanged () |
Public Member Functions | |
| MockConfiguration (const QString &name, QObject *parent=nullptr) | |
| MockConfiguration (const MockConfiguration *copy, QObject *parent=nullptr) | |
| ~MockConfiguration () | |
| LinkType | type () const final |
| void | copyFrom (const LinkConfiguration *source) final |
| void | loadSettings (QSettings &settings, const QString &root) final |
| void | saveSettings (QSettings &settings, const QString &root) const final |
| QString | settingsURL () const final |
| Settings URL, Pure virtual method providing the URL for the (QML) settings dialog. | |
| QString | settingsTitle () const final |
| Settings Title, Pure virtual method providing the Title for the (QML) settings dialog. | |
| int | firmware () const |
| void | setFirmware (int type) |
| int | vehicle () const |
| void | setVehicle (int type) |
| bool | incrementVehicleId () const |
| void | setIncrementVehicleId (bool incrementVehicleId) |
| MAV_AUTOPILOT | firmwareType () const |
| void | setFirmwareType (MAV_AUTOPILOT firmwareType) |
| uint16_t | boardVendorId () const |
| uint16_t | boardProductId () const |
| void | setBoardVendorProduct (uint16_t vendorId, uint16_t productId) |
| MAV_TYPE | vehicleType () const |
| void | setVehicleType (MAV_TYPE vehicleType) |
| bool | sendStatusText () const |
| void | setSendStatusText (bool sendStatusText) |
| bool | enableCamera () const |
| void | setEnableCamera (bool enableCamera) |
| bool | enableGimbal () const |
| void | setEnableGimbal (bool enableGimbal) |
| bool | gimbalHasRollAxis () const |
| void | setGimbalHasRollAxis (bool value) |
| bool | gimbalHasPitchAxis () const |
| void | setGimbalHasPitchAxis (bool value) |
| bool | gimbalHasYawAxis () const |
| void | setGimbalHasYawAxis (bool value) |
| bool | gimbalHasYawFollow () const |
| void | setGimbalHasYawFollow (bool value) |
| bool | gimbalHasYawLock () const |
| void | setGimbalHasYawLock (bool value) |
| bool | gimbalHasRetract () const |
| void | setGimbalHasRetract (bool value) |
| bool | gimbalHasNeutral () const |
| void | setGimbalHasNeutral (bool value) |
| bool | cameraCaptureVideo () const |
| void | setCameraCaptureVideo (bool value) |
| bool | cameraCaptureImage () const |
| void | setCameraCaptureImage (bool value) |
| bool | cameraHasModes () const |
| void | setCameraHasModes (bool value) |
| bool | cameraHasVideoStream () const |
| void | setCameraHasVideoStream (bool value) |
| bool | cameraCanCaptureImageInVideoMode () const |
| void | setCameraCanCaptureImageInVideoMode (bool value) |
| bool | cameraCanCaptureVideoInImageMode () const |
| void | setCameraCanCaptureVideoInImageMode (bool value) |
| bool | cameraHasBasicZoom () const |
| void | setCameraHasBasicZoom (bool value) |
| bool | cameraHasTrackingPoint () const |
| void | setCameraHasTrackingPoint (bool value) |
| bool | cameraHasTrackingRectangle () const |
| void | setCameraHasTrackingRectangle (bool value) |
| FailureMode_t | failureMode () const |
| void | setFailureMode (FailureMode_t failureMode) |
| bool | startArmed () const |
| void | setStartArmed (bool armed) |
Public Member Functions inherited from LinkConfiguration | |
| LinkConfiguration (const QString &name, QObject *parent=nullptr) | |
| LinkConfiguration (const LinkConfiguration *copy, QObject *parent=nullptr) | |
| virtual | ~LinkConfiguration () |
| QString | name () const |
| void | setName (const QString &name) |
| LinkInterface * | link () const |
| void | setLink (const std::shared_ptr< LinkInterface > link) |
| bool | isDynamic () const |
| void | setDynamic (bool dynamic=true) |
| Set if this is this a dynamic configuration. (decided at runtime) | |
| bool | isForwarding () const |
| void | setForwarding (bool forwarding=true) |
| Set if this is this a forwarding link configuration. (decided at runtime) | |
| bool | isAutoConnect () const |
| virtual void | setAutoConnect (bool autoc=true) |
| Set if this is this an Auto Connect configuration. | |
| bool | isHighLatency () const |
| void | setHighLatency (bool hl=false) |
| Set if this is this an High Latency configuration. | |
Additional Inherited Members | |
Static Public Member Functions inherited from LinkConfiguration | |
| static LinkConfiguration * | createSettings (int type, const QString &name) |
| static LinkConfiguration * | duplicateSettings (const LinkConfiguration *source) |
| static QString | settingsRoot () |
Protected Attributes inherited from LinkConfiguration | |
| std::weak_ptr< LinkInterface > | _link |
| Link currently using this configuration (if any) | |
Definition at line 7 of file MockConfiguration.h.
| Enumerator | |
|---|---|
| FailNone | No failures. |
| FailParamNoResponseToRequestList | Do not respond to PARAM_REQUEST_LIST. |
| FailMissingParamOnInitialRequest | Not all params are sent on initial request, should still succeed since QGC will re-query missing params. |
| FailMissingParamOnAllRequests | Not all params are sent on initial request, QGC retries will fail as well. |
| FailInitialConnectRequestMessageAutopilotVersionFailure | REQUEST_MESSAGE:AUTOPILOT_VERSION returns failure. |
| FailInitialConnectRequestMessageAutopilotVersionLost | REQUEST_MESSAGE:AUTOPILOT_VERSION success, AUTOPILOT_VERSION never sent. |
Definition at line 99 of file MockConfiguration.h.
|
explicit |
Definition at line 6 of file MockConfiguration.cc.
|
explicit |
Definition at line 12 of file MockConfiguration.cc.
| MockConfiguration::~MockConfiguration | ( | ) |
Definition at line 42 of file MockConfiguration.cc.
|
inline |
Definition at line 54 of file MockConfiguration.h.
|
inline |
Definition at line 53 of file MockConfiguration.h.
|
inline |
Definition at line 88 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setCameraCanCaptureImageInVideoMode().
|
inline |
Definition at line 90 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setCameraCanCaptureVideoInImageMode().
|
inline |
Definition at line 82 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setCameraCaptureImage().
|
inline |
Definition at line 80 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setCameraCaptureVideo().
|
inline |
Definition at line 92 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setCameraHasBasicZoom().
|
inline |
Definition at line 84 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setCameraHasModes().
|
inline |
Definition at line 94 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setCameraHasTrackingPoint().
|
inline |
Definition at line 96 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setCameraHasTrackingRectangle().
|
inline |
Definition at line 86 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setCameraHasVideoStream().
|
finalvirtual |
Copy instance data, When manipulating data, you create a copy of the configuration using the copy constructor, edit it and then transfer its content to the original using this method.
| [in] | source | The source instance (the edited copy) |
Reimplemented from LinkConfiguration.
Definition at line 47 of file MockConfiguration.cc.
References cameraCanCaptureImageInVideoMode(), cameraCanCaptureVideoInImageMode(), cameraCaptureImage(), cameraCaptureVideo(), cameraHasBasicZoom(), cameraHasModes(), cameraHasTrackingPoint(), cameraHasTrackingRectangle(), cameraHasVideoStream(), LinkConfiguration::copyFrom(), enableCamera(), enableGimbal(), failureMode(), firmwareType(), gimbalHasNeutral(), gimbalHasPitchAxis(), gimbalHasRetract(), gimbalHasRollAxis(), gimbalHasYawAxis(), gimbalHasYawFollow(), gimbalHasYawLock(), incrementVehicleId(), sendStatusText(), setCameraCanCaptureImageInVideoMode(), setCameraCanCaptureVideoInImageMode(), setCameraCaptureImage(), setCameraCaptureVideo(), setCameraHasBasicZoom(), setCameraHasModes(), setCameraHasTrackingPoint(), setCameraHasTrackingRectangle(), setCameraHasVideoStream(), setEnableCamera(), setEnableGimbal(), setFailureMode(), setFirmwareType(), setGimbalHasNeutral(), setGimbalHasPitchAxis(), setGimbalHasRetract(), setGimbalHasRollAxis(), setGimbalHasYawAxis(), setGimbalHasYawFollow(), setGimbalHasYawLock(), setIncrementVehicleId(), setSendStatusText(), setStartArmed(), setVehicleType(), startArmed(), and vehicleType().
|
inline |
Definition at line 60 of file MockConfiguration.h.
Referenced by copyFrom(), saveSettings(), and setEnableCamera().
|
signal |
Referenced by setEnableCamera().
|
inline |
Definition at line 62 of file MockConfiguration.h.
Referenced by copyFrom(), saveSettings(), and setEnableGimbal().
|
signal |
Referenced by setEnableGimbal().
|
inline |
Definition at line 107 of file MockConfiguration.h.
Referenced by copyFrom(), saveSettings(), and setFailureMode().
|
inline |
Definition at line 45 of file MockConfiguration.h.
|
signal |
Referenced by setFirmware(), and setFirmwareType().
|
inline |
Definition at line 51 of file MockConfiguration.h.
Referenced by copyFrom(), saveSettings(), and setFirmwareType().
|
inline |
Definition at line 77 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setGimbalHasNeutral().
|
inline |
Definition at line 67 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setGimbalHasPitchAxis().
|
inline |
Definition at line 75 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setGimbalHasRetract().
|
inline |
Definition at line 65 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setGimbalHasRollAxis().
|
inline |
Definition at line 69 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setGimbalHasYawAxis().
|
inline |
Definition at line 71 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setGimbalHasYawFollow().
|
inline |
Definition at line 73 of file MockConfiguration.h.
Referenced by copyFrom(), and saveSettings().
|
signal |
Referenced by setGimbalHasYawLock().
|
inline |
Definition at line 49 of file MockConfiguration.h.
Referenced by copyFrom(), saveSettings(), and setIncrementVehicleId().
|
signal |
Referenced by setIncrementVehicleId().
|
finalvirtual |
Load settings, Pure virtual method telling the instance to load its configuration.
| [in] | settings | The QSettings instance to use |
| [in] | root | The root path of the setting. |
Implements LinkConfiguration.
Definition at line 79 of file MockConfiguration.cc.
References FailNone, setCameraCanCaptureImageInVideoMode(), setCameraCanCaptureVideoInImageMode(), setCameraCaptureImage(), setCameraCaptureVideo(), setCameraHasBasicZoom(), setCameraHasModes(), setCameraHasTrackingPoint(), setCameraHasTrackingRectangle(), setCameraHasVideoStream(), setEnableCamera(), setEnableGimbal(), setFailureMode(), setFirmwareType(), setGimbalHasNeutral(), setGimbalHasPitchAxis(), setGimbalHasRetract(), setGimbalHasRollAxis(), setGimbalHasYawAxis(), setGimbalHasYawFollow(), setGimbalHasYawLock(), setIncrementVehicleId(), setSendStatusText(), and setVehicleType().
|
finalvirtual |
Save settings, Pure virtual method telling the instance to save its configuration.
| [in] | settings | The QSettings instance to use |
| [in] | root | The root path of the setting. |
Implements LinkConfiguration.
Definition at line 110 of file MockConfiguration.cc.
References cameraCanCaptureImageInVideoMode(), cameraCanCaptureVideoInImageMode(), cameraCaptureImage(), cameraCaptureVideo(), cameraHasBasicZoom(), cameraHasModes(), cameraHasTrackingPoint(), cameraHasTrackingRectangle(), cameraHasVideoStream(), enableCamera(), enableGimbal(), failureMode(), firmwareType(), gimbalHasNeutral(), gimbalHasPitchAxis(), gimbalHasRetract(), gimbalHasRollAxis(), gimbalHasYawAxis(), gimbalHasYawFollow(), gimbalHasYawLock(), incrementVehicleId(), sendStatusText(), and vehicleType().
|
signal |
Referenced by setSendStatusText().
|
inline |
Definition at line 58 of file MockConfiguration.h.
Referenced by copyFrom(), saveSettings(), and setSendStatusText().
|
inline |
Definition at line 55 of file MockConfiguration.h.
|
inline |
Definition at line 89 of file MockConfiguration.h.
References cameraCanCaptureImageInVideoModeChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 91 of file MockConfiguration.h.
References cameraCanCaptureVideoInImageModeChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 83 of file MockConfiguration.h.
References cameraCaptureImageChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 81 of file MockConfiguration.h.
References cameraCaptureVideoChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 93 of file MockConfiguration.h.
References cameraHasBasicZoomChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 85 of file MockConfiguration.h.
References cameraHasModesChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 95 of file MockConfiguration.h.
References cameraHasTrackingPointChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 97 of file MockConfiguration.h.
References cameraHasTrackingRectangleChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 87 of file MockConfiguration.h.
References cameraHasVideoStreamChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 61 of file MockConfiguration.h.
References enableCamera(), and enableCameraChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 63 of file MockConfiguration.h.
References enableGimbal(), and enableGimbalChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 108 of file MockConfiguration.h.
References failureMode().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 46 of file MockConfiguration.h.
References firmwareChanged(), and type().
|
inline |
Definition at line 52 of file MockConfiguration.h.
References firmwareChanged(), and firmwareType().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 78 of file MockConfiguration.h.
References gimbalHasNeutralChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 68 of file MockConfiguration.h.
References gimbalHasPitchAxisChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 76 of file MockConfiguration.h.
References gimbalHasRetractChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 66 of file MockConfiguration.h.
References gimbalHasRollAxisChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 70 of file MockConfiguration.h.
References gimbalHasYawAxisChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 72 of file MockConfiguration.h.
References gimbalHasYawFollowChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 74 of file MockConfiguration.h.
References gimbalHasYawLockChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 50 of file MockConfiguration.h.
References incrementVehicleId(), and incrementVehicleIdChanged().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 59 of file MockConfiguration.h.
References sendStatusChanged(), and sendStatusText().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 112 of file MockConfiguration.h.
Referenced by copyFrom().
|
inlinefinalvirtual |
Settings Title, Pure virtual method providing the Title for the (QML) settings dialog.
Implements LinkConfiguration.
Definition at line 43 of file MockConfiguration.h.
|
inlinefinalvirtual |
Settings URL, Pure virtual method providing the URL for the (QML) settings dialog.
Implements LinkConfiguration.
Definition at line 42 of file MockConfiguration.h.
|
inline |
Definition at line 48 of file MockConfiguration.h.
References type(), and vehicleChanged().
|
inline |
Definition at line 57 of file MockConfiguration.h.
References vehicleChanged(), and vehicleType().
Referenced by copyFrom(), and loadSettings().
|
inline |
Definition at line 111 of file MockConfiguration.h.
Referenced by copyFrom(), and MockLink::MockLink().
|
inlinefinalvirtual |
Connection type, pure virtual method returning one of the -TypeXxx types above.
Implements LinkConfiguration.
Definition at line 38 of file MockConfiguration.h.
Referenced by setFirmware(), and setVehicle().
|
inline |
Definition at line 47 of file MockConfiguration.h.
|
signal |
Referenced by setVehicle(), and setVehicleType().
|
inline |
Definition at line 56 of file MockConfiguration.h.
Referenced by copyFrom(), saveSettings(), and setVehicleType().