pub struct CAMERA_FOV_STATUS_DATA {
pub time_boot_ms: u32,
pub lat_camera: i32,
pub lon_camera: i32,
pub alt_camera: i32,
pub lat_image: i32,
pub lon_image: i32,
pub alt_image: i32,
pub q: [f32; 4],
pub hfov: f32,
pub vfov: f32,
pub camera_device_id: u8,
}
asluav
only.Expand description
id: 271 Information about the field of view of a camera. Can be requested with a MAV_CMD_REQUEST_MESSAGE command.
Fields§
§time_boot_ms: u32
Timestamp (time since system boot).
lat_camera: i32
Latitude of camera (INT32_MAX if unknown).
lon_camera: i32
Longitude of camera (INT32_MAX if unknown).
alt_camera: i32
Altitude (MSL) of camera (INT32_MAX if unknown).
lat_image: i32
Latitude of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon).
lon_image: i32
Longitude of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon).
alt_image: i32
Altitude (MSL) of center of image (INT32_MAX if unknown, INT32_MIN if at infinity, not intersecting with horizon).
q: [f32; 4]
Quaternion of camera orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
hfov: f32
Horizontal field of view (NaN if unknown).
vfov: f32
Vertical field of view (NaN if unknown).
camera_device_id: u8
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 CAMERA_FOV_STATUS_DATA
impl CAMERA_FOV_STATUS_DATA
pub const ENCODED_LEN: usize = 53usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for CAMERA_FOV_STATUS_DATA
impl Clone for CAMERA_FOV_STATUS_DATA
Source§fn clone(&self) -> CAMERA_FOV_STATUS_DATA
fn clone(&self) -> CAMERA_FOV_STATUS_DATA
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CAMERA_FOV_STATUS_DATA
impl Debug for CAMERA_FOV_STATUS_DATA
Source§impl Default for CAMERA_FOV_STATUS_DATA
impl Default for CAMERA_FOV_STATUS_DATA
Source§impl<'de> Deserialize<'de> for CAMERA_FOV_STATUS_DATA
impl<'de> Deserialize<'de> for CAMERA_FOV_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_FOV_STATUS_DATA
impl MessageData for CAMERA_FOV_STATUS_DATA
const ID: u32 = 271u32
const NAME: &'static str = "CAMERA_FOV_STATUS"
const EXTRA_CRC: u8 = 22u8
const ENCODED_LEN: usize = 53usize
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_FOV_STATUS_DATA
impl PartialEq for CAMERA_FOV_STATUS_DATA
Source§fn eq(&self, other: &CAMERA_FOV_STATUS_DATA) -> bool
fn eq(&self, other: &CAMERA_FOV_STATUS_DATA) -> bool
self
and other
values to be equal, and is used by ==
.