pub struct CameraTrackingImageStatus {
pub tracking_status: CameraTrackingStatusFlags,
pub tracking_mode: CameraTrackingMode,
pub target_data: CameraTrackingTargetData,
pub point_x: f32,
pub point_y: f32,
pub radius: f32,
pub rec_top_x: f32,
pub rec_top_y: f32,
pub rec_bottom_x: f32,
pub rec_bottom_y: f32,
pub camera_device_id: u8,
}Expand description
MAVLink CAMERA_TRACKING_IMAGE_STATUS message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Camera tracking status, sent while in active tracking. Use MAV_CMD_SET_MESSAGE_INTERVAL to define message interval.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
CameraTrackingImageStatus (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§tracking_status: CameraTrackingStatusFlagsMAVLink field tracking_status.
Current tracking status
tracking_mode: CameraTrackingModeMAVLink field tracking_mode.
Current tracking mode
target_data: CameraTrackingTargetDataMAVLink field target_data.
Defines location of target data
point_x: f32MAVLink field point_x.
Current tracked point x value if CAMERA_TRACKING_MODE_POINT (normalized 0..1, 0 is left, 1 is right), NAN if unknown
point_y: f32MAVLink field point_y.
Current tracked point y value if CAMERA_TRACKING_MODE_POINT (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown
radius: f32MAVLink field radius.
Current tracked radius if CAMERA_TRACKING_MODE_POINT (normalized 0..1, 0 is image left, 1 is image right), NAN if unknown
rec_top_x: f32MAVLink field rec_top_x.
Current tracked rectangle top x value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is left, 1 is right), NAN if unknown
rec_top_y: f32MAVLink field rec_top_y.
Current tracked rectangle top y value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown
rec_bottom_x: f32MAVLink field rec_bottom_x.
Current tracked rectangle bottom x value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is left, 1 is right), NAN if unknown
rec_bottom_y: f32MAVLink field rec_bottom_y.
Current tracked rectangle bottom y value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown
camera_device_id: u8MAVLink field camera_device_id.
Camera id of a non-MAVLink camera attached to an autopilot (1-6). 0 if the component is a MAVLink camera (with its own component id).
Implementations§
Source§impl CameraTrackingImageStatus
impl CameraTrackingImageStatus
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> MessageId
pub const fn message_id() -> MessageId
Message ID.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl Clone for CameraTrackingImageStatus
impl Clone for CameraTrackingImageStatus
Source§fn clone(&self) -> CameraTrackingImageStatus
fn clone(&self) -> CameraTrackingImageStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CameraTrackingImageStatus
impl Debug for CameraTrackingImageStatus
Source§impl Default for CameraTrackingImageStatus
impl Default for CameraTrackingImageStatus
Source§impl<'de> Deserialize<'de> for CameraTrackingImageStatus
impl<'de> Deserialize<'de> for CameraTrackingImageStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<CameraTrackingImageStatus> for Common
impl From<CameraTrackingImageStatus> for Common
Source§fn from(value: CameraTrackingImageStatus) -> Self
fn from(value: CameraTrackingImageStatus) -> Self
Source§impl MessageSpecStatic for CameraTrackingImageStatus
impl MessageSpecStatic for CameraTrackingImageStatus
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> MessageId
fn message_id() -> MessageId
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for CameraTrackingImageStatus
impl NamedType for CameraTrackingImageStatus
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl TryFrom<&Payload> for CameraTrackingImageStatus
impl TryFrom<&Payload> for CameraTrackingImageStatus
Source§impl Type for CameraTrackingImageStatus
impl Type for CameraTrackingImageStatus
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.