[][src]Struct mavlink::common::BATTERY_STATUS_DATA

pub struct BATTERY_STATUS_DATA {
    pub current_consumed: i32,
    pub energy_consumed: i32,
    pub temperature: i16,
    pub voltages: [u16; 10],
    pub current_battery: i16,
    pub id: u8,
    pub battery_function: MavBatteryFunction,
    pub mavtype: MavBatteryType,
    pub battery_remaining: i8,
    pub time_remaining: i32,
    pub charge_state: MavBatteryChargeState,
}

id: 147 Battery information. Updates GCS with flight controller battery status. Use SMART_BATTERY_* messages instead for smart batteries..

Fields

current_consumed: i32

id: 147 Battery information. Updates GCS with flight controller battery status. Use SMART_BATTERY_* messages instead for smart batteries..

energy_consumed: i32

id: 147 Battery information. Updates GCS with flight controller battery status. Use SMART_BATTERY_* messages instead for smart batteries..

temperature: i16

id: 147 Battery information. Updates GCS with flight controller battery status. Use SMART_BATTERY_* messages instead for smart batteries..

voltages: [u16; 10]

id: 147 Battery information. Updates GCS with flight controller battery status. Use SMART_BATTERY_* messages instead for smart batteries..

current_battery: i16

id: 147 Battery information. Updates GCS with flight controller battery status. Use SMART_BATTERY_* messages instead for smart batteries..

id: u8

id: 147 Battery information. Updates GCS with flight controller battery status. Use SMART_BATTERY_* messages instead for smart batteries..

battery_function: MavBatteryFunction

id: 147 Battery information. Updates GCS with flight controller battery status. Use SMART_BATTERY_* messages instead for smart batteries..

mavtype: MavBatteryType

id: 147 Battery information. Updates GCS with flight controller battery status. Use SMART_BATTERY_* messages instead for smart batteries..

battery_remaining: i8

id: 147 Battery information. Updates GCS with flight controller battery status. Use SMART_BATTERY_* messages instead for smart batteries..

time_remaining: i32

id: 147 Battery information. Updates GCS with flight controller battery status. Use SMART_BATTERY_* messages instead for smart batteries..

charge_state: MavBatteryChargeState

id: 147 Battery information. Updates GCS with flight controller battery status. Use SMART_BATTERY_* messages instead for smart batteries..

Implementations

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

impl Debug for BATTERY_STATUS_DATA[src]

impl Default for BATTERY_STATUS_DATA[src]

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

impl PartialEq<BATTERY_STATUS_DATA> for BATTERY_STATUS_DATA[src]

impl Serialize for BATTERY_STATUS_DATA[src]

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