pub struct GeneratorStatus {
pub status: MavGeneratorStatusFlag,
pub generator_speed: u16,
pub battery_current: f32,
pub load_current: f32,
pub power_generated: f32,
pub bus_voltage: f32,
pub rectifier_temperature: i16,
pub bat_current_setpoint: f32,
pub generator_temperature: i16,
pub runtime: u32,
pub time_until_maintenance: i32,
}Expand description
MAVLink GENERATOR_STATUS message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Telemetry of power generation system. Alternator or mechanical generator.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
GeneratorStatus (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§status: MavGeneratorStatusFlagMAVLink field status.
Status flags.
generator_speed: u16MAVLink field generator_speed.
Speed of electrical generator or alternator. UINT16_MAX: field not provided.
battery_current: f32MAVLink field battery_current.
Current into/out of battery. Positive for out. Negative for in. NaN: field not provided.
load_current: f32MAVLink field load_current.
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: f32MAVLink field power_generated.
The power being generated. NaN: field not provided
bus_voltage: f32MAVLink field bus_voltage.
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.
rectifier_temperature: i16MAVLink field rectifier_temperature.
The temperature of the rectifier or power converter. INT16_MAX: field not provided.
bat_current_setpoint: f32MAVLink field bat_current_setpoint.
The target battery current. Positive for out. Negative for in. NaN: field not provided
generator_temperature: i16MAVLink field generator_temperature.
The temperature of the mechanical motor, fuel cell core or generator. INT16_MAX: field not provided.
runtime: u32MAVLink field runtime.
Seconds this generator has run since it was rebooted. UINT32_MAX: field not provided.
time_until_maintenance: i32MAVLink field time_until_maintenance.
Seconds until this generator requires maintenance. A negative value indicates maintenance is past-due. INT32_MAX: field not provided.
Implementations§
Source§impl GeneratorStatus
impl GeneratorStatus
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 GeneratorStatus
impl Clone for GeneratorStatus
Source§fn clone(&self) -> GeneratorStatus
fn clone(&self) -> GeneratorStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeneratorStatus
impl Debug for GeneratorStatus
Source§impl Default for GeneratorStatus
impl Default for GeneratorStatus
Source§impl<'de> Deserialize<'de> for GeneratorStatus
impl<'de> Deserialize<'de> for GeneratorStatus
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<GeneratorStatus> for Common
impl From<GeneratorStatus> for Common
Source§fn from(value: GeneratorStatus) -> Self
fn from(value: GeneratorStatus) -> Self
Source§impl IntoPayload for GeneratorStatus
impl IntoPayload for GeneratorStatus
Source§impl MessageSpec for GeneratorStatus
impl MessageSpec for GeneratorStatus
Source§impl MessageSpecStatic for GeneratorStatus
impl MessageSpecStatic for GeneratorStatus
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 GeneratorStatus
impl NamedType for GeneratorStatus
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 GeneratorStatus
impl PartialEq for GeneratorStatus
Source§impl Serialize for GeneratorStatus
impl Serialize for GeneratorStatus
Source§impl TryFrom<&Payload> for GeneratorStatus
impl TryFrom<&Payload> for GeneratorStatus
Source§impl Type for GeneratorStatus
impl Type for GeneratorStatus
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.