[][src]Struct mavlink::common::SMART_BATTERY_STATUS_DATA

pub struct SMART_BATTERY_STATUS_DATA {
    pub fault_bitmask: MavSmartBatteryFault,
    pub time_remaining: i32,
    pub id: u16,
    pub capacity_remaining: i16,
    pub current: i16,
    pub temperature: i16,
    pub cell_offset: u16,
    pub voltages: [u16; 16],
}

id: 371 Smart Battery information (dynamic). Use for updates from: smart battery to flight stack, flight stack to GCS. Use instead of BATTERY_STATUS for smart batteries..

Fields

fault_bitmask: MavSmartBatteryFault

id: 371 Smart Battery information (dynamic). Use for updates from: smart battery to flight stack, flight stack to GCS. Use instead of BATTERY_STATUS for smart batteries..

time_remaining: i32

id: 371 Smart Battery information (dynamic). Use for updates from: smart battery to flight stack, flight stack to GCS. Use instead of BATTERY_STATUS for smart batteries..

id: u16

id: 371 Smart Battery information (dynamic). Use for updates from: smart battery to flight stack, flight stack to GCS. Use instead of BATTERY_STATUS for smart batteries..

capacity_remaining: i16

id: 371 Smart Battery information (dynamic). Use for updates from: smart battery to flight stack, flight stack to GCS. Use instead of BATTERY_STATUS for smart batteries..

current: i16

id: 371 Smart Battery information (dynamic). Use for updates from: smart battery to flight stack, flight stack to GCS. Use instead of BATTERY_STATUS for smart batteries..

temperature: i16

id: 371 Smart Battery information (dynamic). Use for updates from: smart battery to flight stack, flight stack to GCS. Use instead of BATTERY_STATUS for smart batteries..

cell_offset: u16

id: 371 Smart Battery information (dynamic). Use for updates from: smart battery to flight stack, flight stack to GCS. Use instead of BATTERY_STATUS for smart batteries..

voltages: [u16; 16]

id: 371 Smart Battery information (dynamic). Use for updates from: smart battery to flight stack, flight stack to GCS. Use instead of BATTERY_STATUS for smart batteries..

Implementations

impl SMART_BATTERY_STATUS_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 SMART_BATTERY_STATUS_DATA[src]

impl Debug for SMART_BATTERY_STATUS_DATA[src]

impl Default for SMART_BATTERY_STATUS_DATA[src]

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

impl PartialEq<SMART_BATTERY_STATUS_DATA> for SMART_BATTERY_STATUS_DATA[src]

impl Serialize for SMART_BATTERY_STATUS_DATA[src]

impl StructuralPartialEq for SMART_BATTERY_STATUS_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.