CameraInformation class

Information about a camera. Can be requested with a MAV_CMD_REQUEST_MESSAGE command.

CAMERA_INFORMATION

Implemented types

Constructors

CameraInformation({required uint32_t timeBootMs, required uint32_t firmwareVersion, required float focalLength, required float sensorSizeH, required float sensorSizeV, required CameraCapFlags flags, required uint16_t resolutionH, required uint16_t resolutionV, required uint16_t camDefinitionVersion, required List<int8_t> vendorName, required List<int8_t> modelName, required uint8_t lensId, required List<char> camDefinitionUri, required uint8_t gimbalDeviceId})
CameraInformation.parse(ByteData data_)
factory

Properties

camDefinitionUri List<char>
Camera definition URI (if any, otherwise only basic functions will be available). HTTP- (http://) and MAVLink FTP- (mavlinkftp://) formatted URIs are allowed (and both must be supported by any GCS that implements the Camera Protocol). The definition file may be xz compressed, which will be indicated by the file extension .xml.xz (a GCS that implements the protocol must support decompressing the file). The string needs to be zero terminated. Use a zero-length string if not known.
final
camDefinitionVersion uint16_t
Camera definition version (iteration). Use 0 if not known.
final
firmwareVersion uint32_t
Version of the camera firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). Use 0 if not known.
final
flags CameraCapFlags
Bitmap of camera capability flags.
final
focalLength float
Focal length. Use NaN if not known.
final
gimbalDeviceId uint8_t
Gimbal id of a gimbal associated with this camera. This is the component id of the gimbal device, or 1-6 for non mavlink gimbals. Use 0 if no gimbal is associated with the camera.
final
hashCode int
The hash code for this object.
no setterinherited
lensId uint8_t
Reserved for a lens ID. Use 0 if not known.
final
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
modelName List<int8_t>
Name of the camera model
final
resolutionH uint16_t
Horizontal image resolution. Use 0 if not known.
final
resolutionV uint16_t
Vertical image resolution. Use 0 if not known.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensorSizeH float
Image sensor size horizontal. Use NaN if not known.
final
sensorSizeV float
Image sensor size vertical. Use NaN if not known.
final
timeBootMs uint32_t
Timestamp (time since system boot).
final
vendorName List<int8_t>
Name of the camera vendor
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() ByteData
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

mavlinkEncodedLength → const int