pub struct VideoStreamStatus {
pub stream_id: u8,
pub flags: VideoStreamStatusFlags,
pub framerate: f32,
pub resolution_h: u16,
pub resolution_v: u16,
pub bitrate: u32,
pub rotation: u16,
pub hfov: u16,
pub camera_device_id: u8,
}Expand description
MAVLink VIDEO_STREAM_STATUS message.
Minimum supported MAVLink version is MAVLink 2.
§Description
Information about the status of a video stream. It may be requested using MAV_CMD_REQUEST_MESSAGE.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
VideoStreamStatus (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§stream_id: u8MAVLink field stream_id.
Video Stream ID (1 for first, 2 for second, etc.)
flags: VideoStreamStatusFlagsMAVLink field flags.
Bitmap of stream status flags
framerate: f32MAVLink field framerate.
Frame rate
resolution_h: u16MAVLink field resolution_h.
Horizontal resolution
resolution_v: u16MAVLink field resolution_v.
Vertical resolution
bitrate: u32MAVLink field bitrate.
Bit rate
rotation: u16MAVLink field rotation.
Video image rotation clockwise
hfov: u16MAVLink field hfov.
Horizontal Field of view
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 VideoStreamStatus
impl VideoStreamStatus
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 VideoStreamStatus
impl Clone for VideoStreamStatus
Source§fn clone(&self) -> VideoStreamStatus
fn clone(&self) -> VideoStreamStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VideoStreamStatus
impl Debug for VideoStreamStatus
Source§impl Default for VideoStreamStatus
impl Default for VideoStreamStatus
Source§impl<'de> Deserialize<'de> for VideoStreamStatus
impl<'de> Deserialize<'de> for VideoStreamStatus
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<VideoStreamStatus> for Common
impl From<VideoStreamStatus> for Common
Source§fn from(value: VideoStreamStatus) -> Self
fn from(value: VideoStreamStatus) -> Self
Source§impl IntoPayload for VideoStreamStatus
impl IntoPayload for VideoStreamStatus
Source§impl MessageSpec for VideoStreamStatus
impl MessageSpec for VideoStreamStatus
Source§impl MessageSpecStatic for VideoStreamStatus
impl MessageSpecStatic for VideoStreamStatus
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 VideoStreamStatus
impl NamedType for VideoStreamStatus
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 PartialEq for VideoStreamStatus
impl PartialEq for VideoStreamStatus
Source§impl Serialize for VideoStreamStatus
impl Serialize for VideoStreamStatus
Source§impl TryFrom<&Payload> for VideoStreamStatus
impl TryFrom<&Payload> for VideoStreamStatus
Source§impl Type for VideoStreamStatus
impl Type for VideoStreamStatus
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.