[][src]Struct mavlink::common::GENERATOR_STATUS_DATA

pub struct GENERATOR_STATUS_DATA {
    pub status: MavGeneratorStatusFlag,
    pub battery_current: f32,
    pub load_current: f32,
    pub power_generated: f32,
    pub bus_voltage: f32,
    pub bat_current_setpoint: f32,
    pub generator_speed: u16,
    pub rectifier_temperature: i16,
    pub generator_temperature: i16,
}

id: 373 Telemetry of power generation system. Alternator or mechanical generator..

Fields

status: MavGeneratorStatusFlag

Status flags..

battery_current: f32

Current into/out of battery. Positive for out. Negative for in. NaN: field not provided..

load_current: f32

Current going to the UAV. If battery current not available this is the DC current from the generator. Positive for out. Negative for in. NaN: field not provided.

power_generated: f32

The power being generated. NaN: field not provided.

bus_voltage: f32

Voltage of the bus seen at the generator, or battery bus if battery bus is controlled by generator and at a different voltage to main bus..

bat_current_setpoint: f32

The target battery current. Positive for out. Negative for in. NaN: field not provided.

generator_speed: u16

Speed of electrical generator or alternator. UINT16_MAX: field not provided..

rectifier_temperature: i16

The temperature of the rectifier or power converter. INT16_MAX: field not provided..

generator_temperature: i16

The temperature of the mechanical motor, fuel cell core or generator. INT16_MAX: field not provided..

Implementations

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

impl Debug for GENERATOR_STATUS_DATA[src]

impl Default for GENERATOR_STATUS_DATA[src]

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

impl PartialEq<GENERATOR_STATUS_DATA> for GENERATOR_STATUS_DATA[src]

impl Serialize for GENERATOR_STATUS_DATA[src]

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