[][src]Struct mavlink::common::AUTOPILOT_VERSION_DATA

pub struct AUTOPILOT_VERSION_DATA {
    pub capabilities: MavProtocolCapability,
    pub uid: u64,
    pub flight_sw_version: u32,
    pub middleware_sw_version: u32,
    pub os_sw_version: u32,
    pub board_version: u32,
    pub vendor_id: u16,
    pub product_id: u16,
    pub flight_custom_version: [u8; 8],
    pub middleware_custom_version: [u8; 8],
    pub os_custom_version: [u8; 8],
    pub uid2: [u8; 18],
}

id: 148 Version and capability of autopilot software. This should be emitted in response to a request with MAV_CMD_REQUEST_MESSAGE..

Fields

capabilities: MavProtocolCapability

Bitmap of capabilities.

uid: u64

UID if provided by hardware (see uid2).

flight_sw_version: u32

Firmware version number.

middleware_sw_version: u32

Middleware version number.

os_sw_version: u32

Operating system version number.

board_version: u32

HW / board version (last 8 bytes should be silicon ID, if any).

vendor_id: u16

ID of the board vendor.

product_id: u16

ID of the product.

flight_custom_version: [u8; 8]

Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases..

middleware_custom_version: [u8; 8]

Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases..

os_custom_version: [u8; 8]

Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases..

uid2: [u8; 18]

UID if provided by hardware (supersedes the uid field. If this is non-zero, use this field, otherwise use uid).

Implementations

impl AUTOPILOT_VERSION_DATA[src]

pub const ENCODED_LEN: usize[src]

pub fn deser(
    version: MavlinkVersion,
    _input: &[u8]
) -> Result<Self, ParserError>
[src]

pub fn ser(&self) -> Vec<u8>[src]

Trait Implementations

impl Clone for AUTOPILOT_VERSION_DATA[src]

impl Debug for AUTOPILOT_VERSION_DATA[src]

impl Default for AUTOPILOT_VERSION_DATA[src]

impl<'de> Deserialize<'de> for AUTOPILOT_VERSION_DATA[src]

impl PartialEq<AUTOPILOT_VERSION_DATA> for AUTOPILOT_VERSION_DATA[src]

impl Serialize for AUTOPILOT_VERSION_DATA[src]

impl StructuralPartialEq for AUTOPILOT_VERSION_DATA[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.