pub struct CAMERA_TRACKING_IMAGE_STATUS_DATA {
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 tracking_status: CameraTrackingStatusFlags,
pub tracking_mode: CameraTrackingMode,
pub target_data: CameraTrackingTargetData,
}
common
only.Expand description
id: 275 Camera tracking status, sent while in active tracking. Use MAV_CMD_SET_MESSAGE_INTERVAL to define message interval..
Fields§
§point_x: f32
Current tracked point x value if CAMERA_TRACKING_MODE_POINT (normalized 0..1, 0 is left, 1 is right), NAN if unknown.
point_y: f32
Current tracked point y value if CAMERA_TRACKING_MODE_POINT (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.
radius: f32
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: f32
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: f32
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: f32
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: f32
Current tracked rectangle bottom y value if CAMERA_TRACKING_MODE_RECTANGLE (normalized 0..1, 0 is top, 1 is bottom), NAN if unknown.
tracking_status: CameraTrackingStatusFlags
Current tracking status.
tracking_mode: CameraTrackingMode
Current tracking mode.
target_data: CameraTrackingTargetData
Defines location of target data.
Implementations§
Source§impl CAMERA_TRACKING_IMAGE_STATUS_DATA
impl CAMERA_TRACKING_IMAGE_STATUS_DATA
pub const ENCODED_LEN: usize = 31usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for CAMERA_TRACKING_IMAGE_STATUS_DATA
impl Clone for CAMERA_TRACKING_IMAGE_STATUS_DATA
Source§fn clone(&self) -> CAMERA_TRACKING_IMAGE_STATUS_DATA
fn clone(&self) -> CAMERA_TRACKING_IMAGE_STATUS_DATA
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for CAMERA_TRACKING_IMAGE_STATUS_DATA
impl<'de> Deserialize<'de> for CAMERA_TRACKING_IMAGE_STATUS_DATA
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 MessageData for CAMERA_TRACKING_IMAGE_STATUS_DATA
impl MessageData for CAMERA_TRACKING_IMAGE_STATUS_DATA
const ID: u32 = 275u32
const NAME: &'static str = "CAMERA_TRACKING_IMAGE_STATUS"
const EXTRA_CRC: u8 = 126u8
const ENCODED_LEN: usize = 31usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
Source§impl PartialEq for CAMERA_TRACKING_IMAGE_STATUS_DATA
impl PartialEq for CAMERA_TRACKING_IMAGE_STATUS_DATA
Source§fn eq(&self, other: &CAMERA_TRACKING_IMAGE_STATUS_DATA) -> bool
fn eq(&self, other: &CAMERA_TRACKING_IMAGE_STATUS_DATA) -> bool
self
and other
values to be equal, and is used by ==
.