MAVLink Camera API controller - connected to a real mavlink v2 camera. More...
#include <VehicleCameraControl.h>
Public Member Functions | |
| VehicleCameraControl (const mavlink_camera_information_t *info, Vehicle *vehicle, int compID, QObject *parent=nullptr) | |
| ~VehicleCameraControl () override | |
| Q_INVOKABLE void | setCameraModeVideo () override |
| Q_INVOKABLE void | setCameraModePhoto () override |
| Q_INVOKABLE void | toggleCameraMode () override |
| Q_INVOKABLE bool | takePhoto () override |
| Q_INVOKABLE bool | stopTakePhoto () override |
| Q_INVOKABLE bool | startVideoRecording () override |
| Q_INVOKABLE bool | stopVideoRecording () override |
| Q_INVOKABLE bool | toggleVideoRecording () override |
| Q_INVOKABLE void | resetSettings () override |
| Q_INVOKABLE void | formatCard (int id=1) override |
| Q_INVOKABLE void | stepZoom (int direction) override |
| Q_INVOKABLE void | startZoom (int direction) override |
| Q_INVOKABLE void | stopZoom () override |
| Q_INVOKABLE void | stepFocus (int direction) override |
| Q_INVOKABLE void | startFocus (int direction) override |
| Q_INVOKABLE void | stopFocus () override |
| Q_INVOKABLE void | stopStream () override |
| Q_INVOKABLE void | resumeStream () override |
| Q_INVOKABLE void | startTrackingRect (QRectF rec) override |
| Q_INVOKABLE void | startTrackingPoint (QPointF point, double radius) override |
| Q_INVOKABLE void | stopTracking () override |
| int | version () const override |
| QString | modelName () const override |
| QString | vendor () const override |
| QString | firmwareVersion () const override |
| qreal | focalLength () const override |
| QSizeF | sensorSize () const override |
| QSize | resolution () const override |
| bool | capturesVideo () const override |
| bool | capturesPhotos () const override |
| bool | hasModes () const override |
| bool | hasZoom () const override |
| bool | hasFocus () const override |
| bool | hasTracking () const override |
| bool | supportsTrackingPoint () const override |
| bool | supportsTrackingRect () const override |
| bool | hasVideoStream () const override |
| bool | photosInVideoMode () const override |
| bool | videoInPhotoMode () const override |
| CaptureVideoState | captureVideoState () const override |
| CapturePhotosState | capturePhotosState () const override |
| int | compID () const override |
| bool | isBasic () const override |
| StorageStatus | storageStatus () const override |
| QStringList | activeSettings () const override |
| quint32 | storageFree () const override |
| QString | storageFreeStr () const override |
| quint32 | storageTotal () const override |
| int | batteryRemaining () const override |
| QString | batteryRemainingStr () const override |
| bool | paramComplete () const override |
| qreal | zoomLevel () const override |
| qreal | focusLevel () const override |
| QmlObjectListModel * | streams () override |
| QGCVideoStreamInfo * | currentStreamInstance () override |
| QGCVideoStreamInfo * | thermalStreamInstance () override |
| int | currentStream () const override |
| void | setCurrentStream (int stream) override |
| void | setExtraStreams (const QList< quint8 > &streamIds) override |
| bool | autoStream () const override |
| quint32 | recordTime () const override |
| QString | recordTimeStr () const override |
| QStringList | streamLabels () const override |
| Stream names to show the user (for selection). | |
| ThermalViewMode | thermalMode () const override |
| void | setThermalMode (ThermalViewMode mode) override |
| double | thermalOpacity () const override |
| void | setThermalOpacity (double val) override |
| void | setZoomLevel (qreal level) override |
| void | setFocusLevel (qreal level) override |
| void | setCameraMode (CameraMode cameraMode) override |
| void | setPhotoCaptureMode (PhotoCaptureMode mode) override |
| void | setPhotoLapse (qreal interval) override |
| void | setPhotoLapseCount (int count) override |
| void | handleCameraSettings (const mavlink_camera_settings_t &settings) override |
| void | handleCameraCaptureStatus (const mavlink_camera_capture_status_t &cameraCaptureStatus) override |
| void | handleParamExtAck (const mavlink_param_ext_ack_t ¶mExtAck) override |
| void | handleParamExtValue (const mavlink_param_ext_value_t ¶mExtValue) override |
| void | handleStorageInformation (const mavlink_storage_information_t &storageInformation) override |
| void | handleBatteryStatus (const mavlink_battery_status_t &bs) override |
| void | handleTrackingImageStatus (const mavlink_camera_tracking_image_status_t &trackingImageStatus) override |
| void | handleVideoStreamInformation (const mavlink_video_stream_information_t &videoStreamInformation) override |
| void | handleVideoStreamStatus (const mavlink_video_stream_status_t &videoStreamStatus) override |
| bool | trackingEnabled () const override |
| void | setTrackingEnabled (bool set) override |
| bool | trackingImageIsActive () const override |
| bool | trackingImageIsPoint () const override |
| QRectF | trackingImageRect () const override |
| QPointF | trackingImagePoint () const override |
| qreal | trackingImageRadius () const override |
| Fact * | exposureMode () override |
| Fact * | ev () override |
| Fact * | iso () override |
| Fact * | shutterSpeed () override |
| Fact * | aperture () override |
| Fact * | wb () override |
| Fact * | mode () override |
| void | factChanged (Fact *pFact) override |
| Notify controller a parameter has changed. | |
| bool | incomingParameter (Fact *pFact, QVariant &newValue) override |
| Allow controller to modify or invalidate incoming parameter. | |
| bool | validateParameter (Fact *pFact, QVariant &newValue) override |
| Allow controller to modify or invalidate parameter change. | |
| Public Member Functions inherited from MavlinkCameraControlInterface | |
| MavlinkCameraControlInterface (Vehicle *vehicle, QObject *parent=nullptr) | |
| virtual | ~MavlinkCameraControlInterface () |
| virtual PhotoCaptureMode | photoCaptureMode () const |
| virtual qreal | photoLapse () const |
| virtual int | photoLapseCount () const |
| virtual CameraMode | cameraMode () const |
| QString | cameraModeToStr (CameraMode mode) |
| QString | captureImageStatusToStr (uint8_t image_status) |
| QString | captureVideoStatusToStr (uint8_t video_status) |
| QString | storageStatusToStr (uint8_t status) |
| 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 |
| virtual void | handleMessage (Vehicle *, const mavlink_message_t &) |
| Allows a FactGroup to parse incoming messages and fill in values. | |
Static Public Member Functions | |
| static QString | pathSafeNameToken (const QString &name) |
| static bool | pathIsInside (const QString &baseDirPath, const QString &candidateFilePath) |
| static QString | cacheFileToken (const QString &vendor, const QString &modelName, int definitionVersion) |
Static Public Attributes | |
| static constexpr const char * | kCondition = "condition" |
| static constexpr const char * | kControl = "control" |
| static constexpr const char * | kDefault = "default" |
| static constexpr const char * | kDefnition = "definition" |
| static constexpr const char * | kDescription = "description" |
| static constexpr const char * | kExclusion = "exclude" |
| static constexpr const char * | kExclusions = "exclusions" |
| static constexpr const char * | kLocale = "locale" |
| static constexpr const char * | kLocalization = "localization" |
| static constexpr const char * | kMax = "max" |
| static constexpr const char * | kMin = "min" |
| static constexpr const char * | kModel = "model" |
| static constexpr const char * | kName = "name" |
| static constexpr const char * | kOption = "option" |
| static constexpr const char * | kOptions = "options" |
| static constexpr const char * | kOriginal = "original" |
| static constexpr const char * | kParameter = "parameter" |
| static constexpr const char * | kParameterrange = "parameterrange" |
| static constexpr const char * | kParameterranges = "parameterranges" |
| static constexpr const char * | kParameters = "parameters" |
| static constexpr const char * | kReadOnly = "readonly" |
| static constexpr const char * | kWriteOnly = "writeonly" |
| static constexpr const char * | kRoption = "roption" |
| static constexpr const char * | kStep = "step" |
| static constexpr const char * | kDecimalPlaces = "decimalPlaces" |
| static constexpr const char * | kStrings = "strings" |
| static constexpr const char * | kTranslated = "translated" |
| static constexpr const char * | kType = "type" |
| static constexpr const char * | kUnit = "unit" |
| static constexpr const char * | kUpdate = "update" |
| static constexpr const char * | kUpdates = "updates" |
| static constexpr const char * | kValue = "value" |
| static constexpr const char * | kVendor = "vendor" |
| static constexpr const char * | kVersion = "version" |
| static constexpr const char * | kPhotoMode = "PhotoCaptureMode" |
| static constexpr const char * | kPhotoLapse = "PhotoLapse" |
| static constexpr const char * | kPhotoLapseCount = "PhotoLapseCount" |
| static constexpr const char * | kThermalOpacity = "ThermalOpacity" |
| static constexpr const char * | kThermalMode = "ThermalMode" |
| static constexpr const char * | kCAM_EV = "CAM_EV" |
| static constexpr const char * | kCAM_EXPMODE = "CAM_EXPMODE" |
| static constexpr const char * | kCAM_ISO = "CAM_ISO" |
| static constexpr const char * | kCAM_SHUTTERSPD = "CAM_SHUTTERSPD" |
| static constexpr const char * | kCAM_APERTURE = "CAM_APERTURE" |
| static constexpr const char * | kCAM_WBMODE = "CAM_WBMODE" |
| static constexpr const char * | kCAM_MODE = "CAM_MODE" |
Protected Slots | |
| virtual void | _initWhenReady () |
| virtual void | _requestCameraSettings () |
| virtual void | _requestAllParameters () |
| virtual void | _requestParamUpdates () |
| virtual void | _requestCaptureStatus () |
| virtual void | _requestStorageInfo () |
| virtual void | _downloadFinished () |
| virtual void | _mavCommandResult (quint32 vehicleId, int component, int command, int result, int failureCode) |
| virtual void | _dataReady (QByteArray data) |
| virtual void | _streamInfoTimeout () |
| virtual void | _streamStatusTimeout () |
| virtual void | _cameraSettingsTimeout () |
| virtual void | _storageInfoTimeout () |
| virtual void | _recTimerHandler () |
| virtual void | _checkForVideoStreams () |
| virtual void | _onVideoManagerRecordingChanged (bool recording) |
| void | _paramDone () override |
| Protected Slots inherited from MavlinkCameraControlInterface | |
| virtual void | _paramDone ()=0 |
| Protected Slots inherited from FactGroup | |
| virtual void | _updateAllValues () |
Protected Member Functions | |
| virtual void | _setVideoCaptureStatus (VideoCaptureStatus captureStatus) |
| virtual void | _setPhotoCaptureStatus (PhotoCaptureStatus captureStatus) |
| virtual void | _setCameraMode (CameraMode mode) |
| virtual void | _requestStreamInfo (uint8_t streamID) |
| virtual void | _requestStreamStatus (uint8_t streamID) |
| virtual void | _requestTrackingStatus () |
| virtual QGCVideoStreamInfo * | _findStream (uint8_t streamID, bool report=true) |
| virtual QGCVideoStreamInfo * | _findStream (const QString name) |
| Protected Member Functions inherited from MavlinkCameraControlInterface | |
| VideoCaptureStatus | _videoCaptureStatus () const |
| PhotoCaptureStatus | _photoCaptureStatus () const |
| 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) |
MAVLink Camera API controller - connected to a real mavlink v2 camera.
Definition at line 44 of file VehicleCameraControl.h.
| VehicleCameraControl::VehicleCameraControl | ( | const mavlink_camera_information_t * | info, |
| Vehicle * | vehicle, | ||
| int | compID, | ||
| QObject * | parent = nullptr ) |
Definition at line 164 of file VehicleCameraControl.cc.
References _cacheFile, _cacheFileToken, _cameraSettingsRefreshTimer, _cameraSettingsRetries, _compID, _dataReady(), _hasTrackingPointCapability, _hasTrackingRectCapability, _initWhenReady(), _mavlinkCameraInfo, _modelName, MavlinkCameraControlInterface::_photoCaptureMode, MavlinkCameraControlInterface::_photoLapse, MavlinkCameraControlInterface::_photoLapseCount, _recTimerHandler(), _requestCameraSettings(), _thermalMode, _thermalOpacity, _vendor, MavlinkCameraControlInterface::_videoRecordTimeUpdateTimer, SettingsManager::appSettings(), QGCMAVLink::boundedStringField(), cacheFileToken(), capturesPhotos(), capturesVideo(), compID(), MavlinkCameraControlInterface::dataReady(), firmwareVersion(), focalLength(), hasFocus(), hasModes(), hasTracking(), hasVideoStream(), hasZoom(), SettingsManager::instance(), kPhotoLapse, kPhotoLapseCount, kPhotoMode, kThermalMode, kThermalOpacity, MavlinkCameraControlInterface::MavlinkCameraControlInterface(), modelName(), AppSettings::parameterSavePath(), pathIsInside(), MavlinkCameraControlInterface::PHOTO_CAPTURE_SINGLE, photosInVideoMode(), resolution(), QGC::runningUnitTests(), sensorSize(), MavlinkCameraControlInterface::THERMAL_BLEND, vendor(), version(), and videoInPhotoMode().
|
override |
Definition at line 251 of file VehicleCameraControl.cc.
References _cameraSettingsRefreshTimer, _cameraSettingsTimer, _captureStatusTimer, _netManager, _storageInfoTimer, _streamInfoTimer, _streamStatusTimer, and MavlinkCameraControlInterface::_videoRecordTimeUpdateTimer.
|
protectedvirtualslot |
Definition at line 2133 of file VehicleCameraControl.cc.
References _cameraSettingsRetries, _cameraSettingsTimer, and _requestCameraSettings().
Referenced by _initWhenReady().
|
protectedvirtualslot |
Definition at line 2442 of file VehicleCameraControl.cc.
References _mavlinkCameraInfo, _requestStreamInfo(), _streamInfoTimeout(), _streamInfoTimer, _streamStatusTimeout(), and _streamStatusTimer.
Referenced by _initWhenReady().
|
protectedvirtualslot |
Definition at line 2407 of file VehicleCameraControl.cc.
References _initWhenReady(), _modelName, and QGCCorePlugin::instance().
Referenced by VehicleCameraControl().
|
protectedvirtualslot |
Definition at line 2357 of file VehicleCameraControl.cc.
References MavlinkCameraControlInterface::dataReady().
|
protectedvirtual |
Definition at line 2081 of file VehicleCameraControl.cc.
References _streams, and QGCVideoStreamInfo::name().
|
protectedvirtual |
Definition at line 2060 of file VehicleCameraControl.cc.
References _streams, and QGCVideoStreamInfo::streamID().
Referenced by _streamInfoTimeout(), currentStreamInstance(), handleVideoStreamInformation(), and handleVideoStreamStatus().
|
protectedvirtualslot |
Definition at line 266 of file VehicleCameraControl.cc.
References _cameraSettingsTimeout(), _cameraSettingsTimer, _captureStatusTimer, _checkForVideoStreams(), _mavCommandResult(), _netManager, _onVideoManagerRecordingChanged(), _paramComplete, _requestAllParameters(), _requestCameraSettings(), _requestCaptureStatus(), _requestStorageInfo(), _storageInfoTimeout(), _storageInfoTimer, MavlinkCameraControlInterface::_vehicle, MavlinkCameraControlInterface::cameraModeChanged(), MavlinkCameraControlInterface::capturePhotosStateChanged(), MavlinkCameraControlInterface::captureVideoStateChanged(), MavlinkCameraControlInterface::infoChanged(), VideoManager::instance(), isBasic(), Vehicle::mavCommandResult(), MavlinkCameraControlInterface::parametersReady(), MavlinkCameraControlInterface::photoCaptureStatusChanged(), VideoManager::recordingChanged(), and MavlinkCameraControlInterface::videoCaptureStatusChanged().
Referenced by _dataReady(), and VehicleCameraControl().
|
protectedvirtualslot |
Definition at line 833 of file VehicleCameraControl.cc.
References _cameraCaptureStatusRetries, _cameraSettingsRefreshTimer, _captureInfoRetries, _captureStatusTimer, _requestAllParameters(), _requestCameraSettings(), _requestStorageInfo(), _resetting, _setPhotoCaptureStatus(), _setVideoCaptureStatus(), _storageInfoRetries, _streamCommandPending, MavlinkCameraControlInterface::_vehicle, compID(), MissionCommandTree::instance(), isBasic(), QGCMAVLink::mavResultToString(), MavlinkCameraControlInterface::PHOTO_CAPTURE_IDLE, MissionCommandTree::rawName(), MavlinkCameraControlInterface::VIDEO_CAPTURE_STATUS_RUNNING, and MavlinkCameraControlInterface::VIDEO_CAPTURE_STATUS_STOPPED.
Referenced by _initWhenReady().
|
protectedvirtualslot |
Definition at line 949 of file VehicleCameraControl.cc.
References _recordTime, _recTime, MavlinkCameraControlInterface::_videoCaptureStatus(), MavlinkCameraControlInterface::_videoRecordTimeUpdateTimer, MavlinkCameraControlInterface::recordTimeChanged(), and MavlinkCameraControlInterface::VIDEO_CAPTURE_STATUS_RUNNING.
Referenced by _initWhenReady().
|
overrideprotectedslot |
Definition at line 2430 of file VehicleCameraControl.cc.
References _paramComplete, _paramIO, and MavlinkCameraControlInterface::parametersReady().
|
protectedvirtualslot |
Definition at line 943 of file VehicleCameraControl.cc.
References _recordTime, _recTime, and MavlinkCameraControlInterface::recordTimeChanged().
Referenced by VehicleCameraControl().
|
protectedvirtualslot |
Definition at line 1334 of file VehicleCameraControl.cc.
References _paramIO, MavlinkCameraControlInterface::_vehicle, compID(), MAVLinkProtocol::getComponentId(), and MAVLinkProtocol::instance().
Referenced by _initWhenReady(), and _mavCommandResult().
|
protectedvirtualslot |
Definition at line 1592 of file VehicleCameraControl.cc.
References _cameraSettingsRetries, _cameraSettingsTimer, _compID, and MavlinkCameraControlInterface::_vehicle.
Referenced by _cameraSettingsTimeout(), _initWhenReady(), _mavCommandResult(), and VehicleCameraControl().
|
protectedvirtualslot |
Definition at line 806 of file VehicleCameraControl.cc.
References _cameraCaptureStatusRetries, _compID, and MavlinkCameraControlInterface::_vehicle.
Referenced by _initWhenReady().
|
protectedvirtualslot |
Definition at line 1584 of file VehicleCameraControl.cc.
References _paramIO, and _updatesToRequest.
|
protectedvirtualslot |
Definition at line 1624 of file VehicleCameraControl.cc.
References _compID, _storageInfoRetries, _storageInfoTimer, and MavlinkCameraControlInterface::_vehicle.
Referenced by _initWhenReady(), _mavCommandResult(), and _storageInfoTimeout().
|
protectedvirtual |
Definition at line 2011 of file VehicleCameraControl.cc.
References _compID, _streamInfoTimer, MavlinkCameraControlInterface::_vehicle, and _videoStreamInfoRetries.
Referenced by _checkForVideoStreams(), and _streamInfoTimeout().
|
protectedvirtual |
Definition at line 2035 of file VehicleCameraControl.cc.
References _compID, _streamStatusTimer, MavlinkCameraControlInterface::_vehicle, and _videoStreamStatusRetries.
Referenced by _streamStatusTimeout(), and setCurrentStream().
|
protectedvirtual |
Definition at line 2606 of file VehicleCameraControl.cc.
References _compID, and MavlinkCameraControlInterface::_vehicle.
Referenced by startTrackingPoint(), and startTrackingRect().
|
protectedvirtual |
Definition at line 476 of file VehicleCameraControl.cc.
References MavlinkCameraControlInterface::_cameraMode, _streamStatusTimer, MavlinkCameraControlInterface::cameraModeChanged(), and mode().
Referenced by handleCameraSettings(), and setCameraMode().
|
protectedvirtual |
Definition at line 967 of file VehicleCameraControl.cc.
References MavlinkCameraControlInterface::_photoCaptureStatusValue, and MavlinkCameraControlInterface::photoCaptureStatusChanged().
Referenced by _mavCommandResult(), handleCameraCaptureStatus(), stopTakePhoto(), and takePhoto().
|
protectedvirtual |
Definition at line 926 of file VehicleCameraControl.cc.
References _recordTime, _recTime, MavlinkCameraControlInterface::_videoCaptureStatusValue, MavlinkCameraControlInterface::_videoRecordTimeUpdateTimer, MavlinkCameraControlInterface::recordTimeChanged(), MavlinkCameraControlInterface::VIDEO_CAPTURE_STATUS_RUNNING, and MavlinkCameraControlInterface::videoCaptureStatusChanged().
Referenced by _mavCommandResult(), and handleCameraCaptureStatus().
|
protectedvirtualslot |
Definition at line 2146 of file VehicleCameraControl.cc.
References _requestStorageInfo(), _storageInfoRetries, and _storageInfoTimer.
Referenced by _initWhenReady().
|
protectedvirtualslot |
Definition at line 2096 of file VehicleCameraControl.cc.
References _expectedCount, _findStream(), _requestStreamInfo(), _streamInfoTimer, _streams, MavlinkCameraControlInterface::_vehicle, _videoStreamInfoRetries, and MavlinkCameraControlInterface::autoStreamChanged().
Referenced by _checkForVideoStreams().
|
protectedvirtualslot |
Definition at line 2119 of file VehicleCameraControl.cc.
References _requestStreamStatus(), _streamStatusTimer, _videoStreamStatusRetries, currentStreamInstance(), and QGCVideoStreamInfo::streamID().
Referenced by _checkForVideoStreams().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 2470 of file VehicleCameraControl.cc.
References _activeSettings.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 2501 of file VehicleCameraControl.cc.
References _activeSettings, _paramComplete, FactGroup::getFact(), and kCAM_APERTURE.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1976 of file VehicleCameraControl.cc.
References _streams, and hasVideoStream().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 116 of file VehicleCameraControl.h.
References _batteryRemaining.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 378 of file VehicleCameraControl.cc.
References _batteryRemaining, and QGC::numberToString().
|
static |
Build the camera-definition cache file name, without extension, as "<vendor>_<model>_<hash>_<NNN>". The vendor and model parts are path safe but lossy; the 32-bit hash of the original names makes it practically impossible for distinct cameras to share a cache file by accident.
Definition at line 149 of file VehicleCameraControl.cc.
References modelName(), pathSafeNameToken(), and vendor().
Referenced by VehicleCameraControl().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 337 of file VehicleCameraControl.cc.
References _mavlinkCameraInfo, MavlinkCameraControlInterface::_photoCaptureStatus(), MavlinkCameraControlInterface::CapturePhotosStateCapturingMultiplePhotos, MavlinkCameraControlInterface::CapturePhotosStateCapturingSinglePhoto, MavlinkCameraControlInterface::CapturePhotosStateDisabled, MavlinkCameraControlInterface::CapturePhotosStateIdle, MavlinkCameraControlInterface::PHOTO_CAPTURE_IDLE, MavlinkCameraControlInterface::PHOTO_CAPTURE_IN_PROGRESS, MavlinkCameraControlInterface::PHOTO_CAPTURE_INTERVAL_IDLE, and MavlinkCameraControlInterface::PHOTO_CAPTURE_INTERVAL_IN_PROGRESS.
Referenced by stopTakePhoto(), and takePhoto().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 314 of file VehicleCameraControl.cc.
References _mavlinkCameraInfo.
Referenced by VehicleCameraControl().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 306 of file VehicleCameraControl.cc.
References _mavlinkCameraInfo.
Referenced by VehicleCameraControl().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 321 of file VehicleCameraControl.cc.
References MavlinkCameraControlInterface::_cameraMode, _mavlinkCameraInfo, MavlinkCameraControlInterface::_photoCaptureStatus(), MavlinkCameraControlInterface::_videoCaptureStatus(), MavlinkCameraControlInterface::CAM_MODE_PHOTO, MavlinkCameraControlInterface::CAM_MODE_SURVEY, MavlinkCameraControlInterface::CaptureVideoStateCapturing, MavlinkCameraControlInterface::CaptureVideoStateDisabled, MavlinkCameraControlInterface::CaptureVideoStateIdle, hasModes(), VideoManager::instance(), MavlinkCameraControlInterface::PHOTO_CAPTURE_IDLE, and MavlinkCameraControlInterface::VIDEO_CAPTURE_STATUS_RUNNING.
Referenced by startVideoRecording(), stopVideoRecording(), and toggleVideoRecording().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 109 of file VehicleCameraControl.h.
References _compID.
Referenced by _mavCommandResult(), _requestAllParameters(), and VehicleCameraControl().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 125 of file VehicleCameraControl.h.
References _currentStream.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1985 of file VehicleCameraControl.cc.
References _currentStream, _findStream(), and _streamLabels.
Referenced by _streamStatusTimeout(), resumeStream(), setCurrentStream(), and stopStream().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 2483 of file VehicleCameraControl.cc.
References _activeSettings, _paramComplete, FactGroup::getFact(), and kCAM_EV.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 2477 of file VehicleCameraControl.cc.
References _activeSettings, _paramComplete, FactGroup::getFact(), and kCAM_EXPMODE.
|
overridevirtual |
Notify controller a parameter has changed.
Implements MavlinkCameraControlInterface.
Definition at line 827 of file VehicleCameraControl.cc.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 353 of file VehicleCameraControl.cc.
References _mavlinkCameraInfo.
Referenced by VehicleCameraControl().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 92 of file VehicleCameraControl.h.
References _mavlinkCameraInfo.
Referenced by VehicleCameraControl().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 120 of file VehicleCameraControl.h.
References _focusLevel.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 713 of file VehicleCameraControl.cc.
References _compID, _resetting, and MavlinkCameraControlInterface::_vehicle.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1706 of file VehicleCameraControl.cc.
References _batteryRemaining, and MavlinkCameraControlInterface::batteryRemainingChanged().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1717 of file VehicleCameraControl.cc.
References _cameraCaptureStatusRetries, _captureStatusTimer, MavlinkCameraControlInterface::_photoCaptureStatus(), _recordTime, _recTime, _setPhotoCaptureStatus(), _setVideoCaptureStatus(), _storageFree, MavlinkCameraControlInterface::_videoCaptureStatus(), MavlinkCameraControlInterface::captureImageStatusToStr(), MavlinkCameraControlInterface::captureVideoStatusToStr(), MavlinkCameraControlInterface::PHOTO_CAPTURE_IN_PROGRESS, MavlinkCameraControlInterface::PHOTO_CAPTURE_INTERVAL_IDLE, MavlinkCameraControlInterface::PHOTO_CAPTURE_INTERVAL_IN_PROGRESS, MavlinkCameraControlInterface::PHOTO_CAPTURE_LAST, MavlinkCameraControlInterface::PHOTO_CAPTURE_STATUS_UNDEFINED, MavlinkCameraControlInterface::recordTimeChanged(), MavlinkCameraControlInterface::storageFreeChanged(), MavlinkCameraControlInterface::VIDEO_CAPTURE_STATUS_LAST, MavlinkCameraControlInterface::VIDEO_CAPTURE_STATUS_RUNNING, and MavlinkCameraControlInterface::VIDEO_CAPTURE_STATUS_UNDEFINED.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1652 of file VehicleCameraControl.cc.
References _cameraSettingsRetries, _cameraSettingsTimer, _focusLevel, _setCameraMode(), _zoomLevel, MavlinkCameraControlInterface::focusLevelChanged(), and MavlinkCameraControlInterface::zoomLevelChanged().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1364 of file VehicleCameraControl.cc.
References _paramIO.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1383 of file VehicleCameraControl.cc.
References _paramIO.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1675 of file VehicleCameraControl.cc.
References _storageFree, _storageInfoRetries, _storageInfoTimer, _storageStatus, _storageTotal, MavlinkCameraControlInterface::storageFreeChanged(), MavlinkCameraControlInterface::storageStatusChanged(), MavlinkCameraControlInterface::storageStatusToStr(), and MavlinkCameraControlInterface::storageTotalChanged().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1825 of file VehicleCameraControl.cc.
References _trackingImageIsActive, _trackingImageIsPoint, _trackingImagePoint, _trackingImageRadius, _trackingImageRect, _trackingImageStatus, trackingEnabled(), MavlinkCameraControlInterface::trackingImageIsActiveChanged(), MavlinkCameraControlInterface::trackingImageIsPointChanged(), MavlinkCameraControlInterface::trackingImagePointChanged(), MavlinkCameraControlInterface::trackingImageRadiusChanged(), and MavlinkCameraControlInterface::trackingImageRectChanged().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1759 of file VehicleCameraControl.cc.
References _expectedCount, _findStream(), _streamInfoTimer, _streamLabels, _streams, _transmittedStreams, MavlinkCameraControlInterface::_vehicle, _videoStreamInfoRetries, MavlinkCameraControlInterface::autoStreamChanged(), QGCVideoStreamInfo::isThermal(), QGCVideoStreamInfo::name(), QGCVideoStreamInfo::streamID(), MavlinkCameraControlInterface::streamLabelsChanged(), MavlinkCameraControlInterface::streamsChanged(), and MavlinkCameraControlInterface::thermalStreamChanged().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1805 of file VehicleCameraControl.cc.
References _findStream(), _streamStatusTimer, _videoStreamStatusRetries, and QGCVideoStreamInfo::update().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 99 of file VehicleCameraControl.h.
References _mavlinkCameraInfo.
Referenced by setFocusLevel(), startFocus(), stepFocus(), stopFocus(), and VehicleCameraControl().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 97 of file VehicleCameraControl.h.
References _mavlinkCameraInfo.
Referenced by captureVideoState(), setCameraMode(), setCameraModePhoto(), setCameraModeVideo(), and VehicleCameraControl().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 100 of file VehicleCameraControl.h.
References _hasTrackingPointCapability, and _hasTrackingRectCapability.
Referenced by VehicleCameraControl().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 103 of file VehicleCameraControl.h.
References _mavlinkCameraInfo.
Referenced by autoStream(), and VehicleCameraControl().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 98 of file VehicleCameraControl.h.
References _mavlinkCameraInfo.
Referenced by setZoomLevel(), startZoom(), stepZoom(), stopZoom(), and VehicleCameraControl().
|
overridevirtual |
Allow controller to modify or invalidate incoming parameter.
Implements MavlinkCameraControlInterface.
Definition at line 2455 of file VehicleCameraControl.cc.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 110 of file VehicleCameraControl.h.
References _settings.
Referenced by _initWhenReady(), and _mavCommandResult().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 2489 of file VehicleCameraControl.cc.
References _activeSettings, _paramComplete, FactGroup::getFact(), and kCAM_ISO.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 2513 of file VehicleCameraControl.cc.
References _paramComplete, FactGroup::factExists(), FactGroup::getFact(), and kCAM_MODE.
Referenced by _setCameraMode(), setCameraMode(), setPhotoCaptureMode(), and setThermalMode().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 89 of file VehicleCameraControl.h.
References _modelName.
Referenced by cacheFileToken(), and VehicleCameraControl().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 118 of file VehicleCameraControl.h.
References _paramComplete.
|
static |
True when candidateFilePath is lexically inside baseDirPath, after making both absolute and collapsing "." and "..". Symbolic links are not followed.
Definition at line 137 of file VehicleCameraControl.cc.
Referenced by VehicleCameraControl().
|
static |
Reduce a vehicle-supplied name to something safe to embed in a file name. Everything that could act as a path separator, a drive or NTFS stream qualifier, or a directory traversal is replaced.
Definition at line 108 of file VehicleCameraControl.cc.
Referenced by cacheFileToken().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 104 of file VehicleCameraControl.h.
References _mavlinkCameraInfo.
Referenced by takePhoto(), and VehicleCameraControl().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 129 of file VehicleCameraControl.h.
References _recordTime.
Referenced by recordTimeStr().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 368 of file VehicleCameraControl.cc.
References recordTime().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 700 of file VehicleCameraControl.cc.
References _compID, _resetting, and MavlinkCameraControlInterface::_vehicle.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 94 of file VehicleCameraControl.h.
References _mavlinkCameraInfo.
Referenced by VehicleCameraControl().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1966 of file VehicleCameraControl.cc.
References _currentStreamStopped, _transmittedStreams, currentStreamInstance(), and QGCVideoStreamInfo::streamID().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 93 of file VehicleCameraControl.h.
References _mavlinkCameraInfo.
Referenced by VehicleCameraControl().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 414 of file VehicleCameraControl.cc.
References MavlinkCameraControlInterface::_cameraMode, _compID, _resetting, _setCameraMode(), MavlinkCameraControlInterface::_vehicle, MavlinkCameraControlInterface::CAM_MODE_PHOTO, MavlinkCameraControlInterface::CAM_MODE_VIDEO, MavlinkCameraControlInterface::cameraMode(), MavlinkCameraControlInterface::cameraModeToStr(), hasModes(), mode(), and Fact::setRawValue().
Referenced by setCameraModePhoto(), and setCameraModeVideo().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 400 of file VehicleCameraControl.cc.
References _resetting, MavlinkCameraControlInterface::CAM_MODE_PHOTO, hasModes(), and setCameraMode().
Referenced by toggleCameraMode().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 386 of file VehicleCameraControl.cc.
References _resetting, MavlinkCameraControlInterface::CAM_MODE_VIDEO, hasModes(), and setCameraMode().
Referenced by toggleCameraMode().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1889 of file VehicleCameraControl.cc.
References _currentStream, _requestStreamStatus(), _streamLabels, MavlinkCameraControlInterface::_vehicle, MavlinkCameraControlInterface::currentStreamChanged(), currentStreamInstance(), and QGCVideoStreamInfo::streamID().
|
overridevirtual |
Names the streams on display besides the current one, by their stream ids. The camera is asked to transmit them too (MAV_CMD_VIDEO_START_STREAMING), and to stop those no longer named (MAV_CMD_VIDEO_STOP_STREAMING). A stream that stays on display while the current stream changes is neither stopped nor started again: setCurrentStream() tells the camera only after QGCCameraManager::streamChanged(), whose handler names the streams that go with the new current one.
Implements MavlinkCameraControlInterface.
Definition at line 1905 of file VehicleCameraControl.cc.
References _extraStreams.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 683 of file VehicleCameraControl.cc.
References _compID, MavlinkCameraControlInterface::_vehicle, and hasFocus().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 450 of file VehicleCameraControl.cc.
References MavlinkCameraControlInterface::_photoCaptureMode, _resetting, kPhotoMode, mode(), and MavlinkCameraControlInterface::photoCaptureModeChanged().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 460 of file VehicleCameraControl.cc.
References MavlinkCameraControlInterface::_photoLapse, kPhotoLapse, and MavlinkCameraControlInterface::photoLapseChanged().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 468 of file VehicleCameraControl.cc.
References MavlinkCameraControlInterface::_photoLapseCount, kPhotoLapseCount, and MavlinkCameraControlInterface::photoLapseCountChanged().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 646 of file VehicleCameraControl.cc.
References _thermalMode, kThermalMode, mode(), and MavlinkCameraControlInterface::thermalModeChanged().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 654 of file VehicleCameraControl.cc.
References _thermalOpacity, kThermalOpacity, and MavlinkCameraControlInterface::thermalOpacityChanged().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 2518 of file VehicleCameraControl.cc.
References _trackingEnabled, stopTracking(), and MavlinkCameraControlInterface::trackingEnabledChanged().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 666 of file VehicleCameraControl.cc.
References _compID, MavlinkCameraControlInterface::_vehicle, and hasZoom().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 2495 of file VehicleCameraControl.cc.
References _activeSettings, _paramComplete, FactGroup::getFact(), and kCAM_SHUTTERSPD.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 780 of file VehicleCameraControl.cc.
References _compID, MavlinkCameraControlInterface::_vehicle, and hasFocus().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 2554 of file VehicleCameraControl.cc.
References _compID, _hasTrackingPointCapability, _requestTrackingStatus(), and MavlinkCameraControlInterface::_vehicle.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 2530 of file VehicleCameraControl.cc.
References _compID, _hasTrackingRectCapability, _requestTrackingStatus(), and MavlinkCameraControlInterface::_vehicle.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 585 of file VehicleCameraControl.cc.
References _compID, _mavlinkCameraInfo, _resetting, MavlinkCameraControlInterface::_vehicle, captureVideoState(), MavlinkCameraControlInterface::CaptureVideoStateCapturing, MavlinkCameraControlInterface::CaptureVideoStateDisabled, VideoManager::instance(), and VideoManager::startRecording().
Referenced by toggleVideoRecording().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 741 of file VehicleCameraControl.cc.
References _compID, MavlinkCameraControlInterface::_vehicle, and hasZoom().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 767 of file VehicleCameraControl.cc.
References _compID, MavlinkCameraControlInterface::_vehicle, and hasFocus().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 728 of file VehicleCameraControl.cc.
References _compID, MavlinkCameraControlInterface::_vehicle, and hasZoom().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 793 of file VehicleCameraControl.cc.
References _compID, MavlinkCameraControlInterface::_vehicle, and hasFocus().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1956 of file VehicleCameraControl.cc.
References _currentStreamStopped, _transmittedStreams, currentStreamInstance(), and QGCVideoStreamInfo::streamID().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 561 of file VehicleCameraControl.cc.
References _captureInfoRetries, _compID, _resetting, _setPhotoCaptureStatus(), MavlinkCameraControlInterface::_vehicle, capturePhotosState(), MavlinkCameraControlInterface::CapturePhotosStateCapturingMultiplePhotos, and MavlinkCameraControlInterface::PHOTO_CAPTURE_IDLE.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 2576 of file VehicleCameraControl.cc.
References _compID, _trackingImageIsActive, _trackingImageIsPoint, _trackingImagePoint, _trackingImageRadius, _trackingImageRect, MavlinkCameraControlInterface::_vehicle, MavlinkCameraControlInterface::trackingImageIsActiveChanged(), and MavlinkCameraControlInterface::trackingImageIsPointChanged().
Referenced by setTrackingEnabled().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 618 of file VehicleCameraControl.cc.
References _compID, _mavlinkCameraInfo, _resetting, MavlinkCameraControlInterface::_vehicle, captureVideoState(), MavlinkCameraControlInterface::CaptureVideoStateIdle, VideoManager::instance(), and VideoManager::stopRecording().
Referenced by toggleVideoRecording().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 754 of file VehicleCameraControl.cc.
References _compID, MavlinkCameraControlInterface::_vehicle, and hasZoom().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 113 of file VehicleCameraControl.h.
References _storageFree.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 373 of file VehicleCameraControl.cc.
References _storageFree, and QGC::bigSizeMBToString().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 111 of file VehicleCameraControl.h.
References _storageStatus.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 115 of file VehicleCameraControl.h.
References _storageTotal.
|
inlineoverridevirtual |
Stream names to show the user (for selection).
Implements MavlinkCameraControlInterface.
Definition at line 132 of file VehicleCameraControl.h.
References _streamLabels.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 122 of file VehicleCameraControl.h.
References _streams.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 101 of file VehicleCameraControl.h.
References _hasTrackingPointCapability.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 102 of file VehicleCameraControl.h.
References _hasTrackingRectCapability.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 512 of file VehicleCameraControl.cc.
References MavlinkCameraControlInterface::_cameraMode, _captureInfoRetries, _compID, _mavlinkCameraInfo, MavlinkCameraControlInterface::_photoCaptureMode, MavlinkCameraControlInterface::_photoLapse, MavlinkCameraControlInterface::_photoLapseCount, _resetting, _setPhotoCaptureStatus(), MavlinkCameraControlInterface::_vehicle, MavlinkCameraControlInterface::CAM_MODE_VIDEO, capturePhotosState(), MavlinkCameraControlInterface::CapturePhotosStateDisabled, MavlinkCameraControlInterface::CapturePhotosStateIdle, VideoManager::grabImage(), VideoManager::instance(), MavlinkCameraControlInterface::PHOTO_CAPTURE_IDLE, MavlinkCameraControlInterface::PHOTO_CAPTURE_IN_PROGRESS, MavlinkCameraControlInterface::PHOTO_CAPTURE_INTERVAL_IDLE, MavlinkCameraControlInterface::PHOTO_CAPTURE_SINGLE, MavlinkCameraControlInterface::PHOTO_CAPTURE_TIMELAPSE, photosInVideoMode(), and QGC::showAppMessage().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 134 of file VehicleCameraControl.h.
References _thermalMode.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 136 of file VehicleCameraControl.h.
References _thermalOpacity.
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 1995 of file VehicleCameraControl.cc.
References _streams, and QGCVideoStreamInfo::isThermal().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 486 of file VehicleCameraControl.cc.
References MavlinkCameraControlInterface::_cameraMode, _resetting, MavlinkCameraControlInterface::CAM_MODE_PHOTO, MavlinkCameraControlInterface::CAM_MODE_SURVEY, MavlinkCameraControlInterface::CAM_MODE_VIDEO, setCameraModePhoto(), and setCameraModeVideo().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 497 of file VehicleCameraControl.cc.
References _resetting, captureVideoState(), MavlinkCameraControlInterface::CaptureVideoStateCapturing, startVideoRecording(), and stopVideoRecording().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 156 of file VehicleCameraControl.h.
References _trackingEnabled.
Referenced by handleTrackingImageStatus().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 159 of file VehicleCameraControl.h.
References _trackingImageIsActive.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 160 of file VehicleCameraControl.h.
References _trackingImageIsPoint.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 162 of file VehicleCameraControl.h.
References _trackingImagePoint.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 163 of file VehicleCameraControl.h.
References _trackingImageRadius.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 161 of file VehicleCameraControl.h.
References _trackingImageRect.
|
overridevirtual |
Allow controller to modify or invalidate parameter change.
Implements MavlinkCameraControlInterface.
Definition at line 2462 of file VehicleCameraControl.cc.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 90 of file VehicleCameraControl.h.
References _vendor.
Referenced by cacheFileToken(), and VehicleCameraControl().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 88 of file VehicleCameraControl.h.
References _version.
Referenced by VehicleCameraControl().
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 105 of file VehicleCameraControl.h.
References _mavlinkCameraInfo.
Referenced by VehicleCameraControl().
|
overridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 2507 of file VehicleCameraControl.cc.
References _activeSettings, _paramComplete, FactGroup::getFact(), and kCAM_WBMODE.
|
inlineoverridevirtual |
Implements MavlinkCameraControlInterface.
Definition at line 119 of file VehicleCameraControl.h.
References _zoomLevel.
|
protected |
Definition at line 298 of file VehicleCameraControl.h.
Referenced by activeSettings(), aperture(), ev(), exposureMode(), iso(), shutterSpeed(), and wb().
|
protected |
Definition at line 291 of file VehicleCameraControl.h.
Referenced by batteryRemaining(), batteryRemainingStr(), and handleBatteryStatus().
|
protected |
Definition at line 285 of file VehicleCameraControl.h.
|
protected |
Definition at line 295 of file VehicleCameraControl.h.
Referenced by VehicleCameraControl().
|
protected |
sanitised "<vendor>_<model>_<hash>_<NNN>", no extension
Definition at line 296 of file VehicleCameraControl.h.
Referenced by VehicleCameraControl().
|
protected |
Definition at line 307 of file VehicleCameraControl.h.
Referenced by _mavCommandResult(), _requestCaptureStatus(), and handleCameraCaptureStatus().
|
protected |
Definition at line 325 of file VehicleCameraControl.h.
Referenced by _mavCommandResult(), VehicleCameraControl(), and ~VehicleCameraControl().
|
protected |
Definition at line 306 of file VehicleCameraControl.h.
Referenced by _cameraSettingsTimeout(), _requestCameraSettings(), handleCameraSettings(), and VehicleCameraControl().
|
protected |
Definition at line 324 of file VehicleCameraControl.h.
Referenced by _cameraSettingsTimeout(), _initWhenReady(), _requestCameraSettings(), handleCameraSettings(), and ~VehicleCameraControl().
|
protected |
Definition at line 309 of file VehicleCameraControl.h.
Referenced by _mavCommandResult(), stopTakePhoto(), and takePhoto().
|
protected |
Definition at line 300 of file VehicleCameraControl.h.
Referenced by _initWhenReady(), _mavCommandResult(), handleCameraCaptureStatus(), and ~VehicleCameraControl().
|
protected |
Definition at line 282 of file VehicleCameraControl.h.
Referenced by _requestCameraSettings(), _requestCaptureStatus(), _requestStorageInfo(), _requestStreamInfo(), _requestStreamStatus(), _requestTrackingStatus(), compID(), formatCard(), resetSettings(), setCameraMode(), setFocusLevel(), setZoomLevel(), startFocus(), startTrackingPoint(), startTrackingRect(), startVideoRecording(), startZoom(), stepFocus(), stepZoom(), stopFocus(), stopTakePhoto(), stopTracking(), stopVideoRecording(), stopZoom(), takePhoto(), and VehicleCameraControl().
|
protected |
Definition at line 320 of file VehicleCameraControl.h.
Referenced by currentStream(), currentStreamInstance(), and setCurrentStream().
|
protected |
Between stopStream() and resumeStream(): the current stream isn't one to transmit.
Definition at line 333 of file VehicleCameraControl.h.
Referenced by resumeStream(), and stopStream().
|
protected |
Definition at line 321 of file VehicleCameraControl.h.
Referenced by _streamInfoTimeout(), and handleVideoStreamInformation().
|
protected |
Definition at line 329 of file VehicleCameraControl.h.
Referenced by setExtraStreams().
|
protected |
Definition at line 288 of file VehicleCameraControl.h.
Referenced by focusLevel(), and handleCameraSettings().
|
protected |
Definition at line 340 of file VehicleCameraControl.h.
Referenced by hasTracking(), startTrackingPoint(), supportsTrackingPoint(), and VehicleCameraControl().
|
protected |
Definition at line 339 of file VehicleCameraControl.h.
Referenced by hasTracking(), startTrackingRect(), supportsTrackingRect(), and VehicleCameraControl().
|
protected |
Definition at line 283 of file VehicleCameraControl.h.
Referenced by _checkForVideoStreams(), capturePhotosState(), capturesPhotos(), capturesVideo(), captureVideoState(), firmwareVersion(), focalLength(), hasFocus(), hasModes(), hasVideoStream(), hasZoom(), photosInVideoMode(), resolution(), sensorSize(), startVideoRecording(), stopVideoRecording(), takePhoto(), VehicleCameraControl(), and videoInPhotoMode().
|
protected |
Definition at line 293 of file VehicleCameraControl.h.
Referenced by _dataReady(), modelName(), and VehicleCameraControl().
|
protected |
Definition at line 292 of file VehicleCameraControl.h.
Referenced by _initWhenReady(), and ~VehicleCameraControl().
|
protected |
Definition at line 302 of file VehicleCameraControl.h.
|
protected |
Definition at line 303 of file VehicleCameraControl.h.
|
protected |
Definition at line 304 of file VehicleCameraControl.h.
|
protected |
Definition at line 286 of file VehicleCameraControl.h.
Referenced by _initWhenReady(), _paramDone(), aperture(), ev(), exposureMode(), iso(), mode(), paramComplete(), shutterSpeed(), and wb().
|
protected |
Definition at line 305 of file VehicleCameraControl.h.
Referenced by _paramDone(), _requestAllParameters(), _requestParamUpdates(), handleParamExtAck(), and handleParamExtValue().
|
protected |
Definition at line 312 of file VehicleCameraControl.h.
Referenced by _onVideoManagerRecordingChanged(), _recTimerHandler(), _setVideoCaptureStatus(), handleCameraCaptureStatus(), and recordTime().
|
protected |
Definition at line 311 of file VehicleCameraControl.h.
Referenced by _onVideoManagerRecordingChanged(), _recTimerHandler(), _setVideoCaptureStatus(), and handleCameraCaptureStatus().
|
protected |
Definition at line 319 of file VehicleCameraControl.h.
|
protected |
Definition at line 314 of file VehicleCameraControl.h.
|
protected |
Definition at line 310 of file VehicleCameraControl.h.
Referenced by _mavCommandResult(), formatCard(), resetSettings(), setCameraMode(), setCameraModePhoto(), setCameraModeVideo(), setPhotoCaptureMode(), startVideoRecording(), stopTakePhoto(), stopVideoRecording(), takePhoto(), toggleCameraMode(), and toggleVideoRecording().
|
protected |
Definition at line 299 of file VehicleCameraControl.h.
Referenced by isBasic().
|
protected |
Definition at line 289 of file VehicleCameraControl.h.
Referenced by handleCameraCaptureStatus(), handleStorageInformation(), storageFree(), and storageFreeStr().
|
protected |
Definition at line 308 of file VehicleCameraControl.h.
Referenced by _mavCommandResult(), _requestStorageInfo(), _storageInfoTimeout(), and handleStorageInformation().
|
protected |
Definition at line 326 of file VehicleCameraControl.h.
Referenced by _initWhenReady(), _requestStorageInfo(), _storageInfoTimeout(), handleStorageInformation(), and ~VehicleCameraControl().
|
protected |
Definition at line 297 of file VehicleCameraControl.h.
Referenced by handleStorageInformation(), and storageStatus().
|
protected |
Definition at line 290 of file VehicleCameraControl.h.
Referenced by handleStorageInformation(), and storageTotal().
|
protected |
The camera has yet to answer a stream's start or stop command. The vehicle refuses a command to a component that it awaits the answer to the same command from, so the next one waits.
Definition at line 336 of file VehicleCameraControl.h.
Referenced by _mavCommandResult().
|
protected |
Definition at line 322 of file VehicleCameraControl.h.
Referenced by _checkForVideoStreams(), _requestStreamInfo(), _streamInfoTimeout(), handleVideoStreamInformation(), and ~VehicleCameraControl().
|
protected |
Definition at line 328 of file VehicleCameraControl.h.
Referenced by currentStreamInstance(), handleVideoStreamInformation(), setCurrentStream(), and streamLabels().
|
protected |
Definition at line 327 of file VehicleCameraControl.h.
Referenced by _findStream(), _findStream(), _streamInfoTimeout(), autoStream(), handleVideoStreamInformation(), streams(), and thermalStreamInstance().
|
protected |
Definition at line 323 of file VehicleCameraControl.h.
Referenced by _checkForVideoStreams(), _requestStreamStatus(), _setCameraMode(), _streamStatusTimeout(), handleVideoStreamStatus(), and ~VehicleCameraControl().
|
protected |
Definition at line 337 of file VehicleCameraControl.h.
Referenced by setThermalMode(), thermalMode(), and VehicleCameraControl().
|
protected |
Definition at line 338 of file VehicleCameraControl.h.
Referenced by setThermalOpacity(), thermalOpacity(), and VehicleCameraControl().
|
protected |
Definition at line 341 of file VehicleCameraControl.h.
Referenced by setTrackingEnabled(), and trackingEnabled().
|
protected |
Definition at line 342 of file VehicleCameraControl.h.
Referenced by handleTrackingImageStatus(), stopTracking(), and trackingImageIsActive().
|
protected |
Definition at line 343 of file VehicleCameraControl.h.
Referenced by handleTrackingImageStatus(), stopTracking(), and trackingImageIsPoint().
|
protected |
Definition at line 346 of file VehicleCameraControl.h.
Referenced by handleTrackingImageStatus(), stopTracking(), and trackingImagePoint().
|
protected |
Definition at line 347 of file VehicleCameraControl.h.
Referenced by handleTrackingImageStatus(), stopTracking(), and trackingImageRadius().
|
protected |
Definition at line 345 of file VehicleCameraControl.h.
Referenced by handleTrackingImageStatus(), stopTracking(), and trackingImageRect().
|
protected |
Definition at line 344 of file VehicleCameraControl.h.
Referenced by handleTrackingImageStatus().
|
protected |
The streams the camera is taken to transmit: its first one, which it is never asked to start, and those it was.
Definition at line 331 of file VehicleCameraControl.h.
Referenced by handleVideoStreamInformation(), resumeStream(), and stopStream().
|
protected |
Definition at line 315 of file VehicleCameraControl.h.
Referenced by _requestParamUpdates().
|
protected |
Definition at line 301 of file VehicleCameraControl.h.
|
protected |
Definition at line 294 of file VehicleCameraControl.h.
Referenced by VehicleCameraControl(), and vendor().
|
protected |
Definition at line 284 of file VehicleCameraControl.h.
Referenced by version().
|
protected |
Definition at line 317 of file VehicleCameraControl.h.
Referenced by _requestStreamInfo(), _streamInfoTimeout(), and handleVideoStreamInformation().
|
protected |
Definition at line 318 of file VehicleCameraControl.h.
Referenced by _requestStreamStatus(), _streamStatusTimeout(), and handleVideoStreamStatus().
|
protected |
Definition at line 287 of file VehicleCameraControl.h.
Referenced by handleCameraSettings(), and zoomLevel().
|
staticconstexpr |
Definition at line 223 of file VehicleCameraControl.h.
Referenced by aperture().
|
staticconstexpr |
Definition at line 219 of file VehicleCameraControl.h.
Referenced by ev().
|
staticconstexpr |
Definition at line 220 of file VehicleCameraControl.h.
Referenced by exposureMode().
|
staticconstexpr |
Definition at line 221 of file VehicleCameraControl.h.
Referenced by iso().
|
staticconstexpr |
Definition at line 225 of file VehicleCameraControl.h.
Referenced by mode().
|
staticconstexpr |
Definition at line 222 of file VehicleCameraControl.h.
Referenced by shutterSpeed().
|
staticconstexpr |
Definition at line 224 of file VehicleCameraControl.h.
Referenced by wb().
|
staticconstexpr |
Definition at line 176 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 177 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 200 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 178 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 179 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 180 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 181 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 182 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 183 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 184 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 185 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 186 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 187 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 188 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 189 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 190 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 191 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 192 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 193 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 194 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 195 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 212 of file VehicleCameraControl.h.
Referenced by setPhotoLapse(), and VehicleCameraControl().
|
staticconstexpr |
Definition at line 213 of file VehicleCameraControl.h.
Referenced by setPhotoLapseCount(), and VehicleCameraControl().
|
staticconstexpr |
Definition at line 211 of file VehicleCameraControl.h.
Referenced by setPhotoCaptureMode(), and VehicleCameraControl().
|
staticconstexpr |
Definition at line 196 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 198 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 199 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 201 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 215 of file VehicleCameraControl.h.
Referenced by setThermalMode(), and VehicleCameraControl().
|
staticconstexpr |
Definition at line 214 of file VehicleCameraControl.h.
Referenced by setThermalOpacity(), and VehicleCameraControl().
|
staticconstexpr |
Definition at line 202 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 203 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 204 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 205 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 206 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 207 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 208 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 209 of file VehicleCameraControl.h.
|
staticconstexpr |
Definition at line 197 of file VehicleCameraControl.h.