pub struct BATTERY_INFO_DATA {Show 20 fields
pub discharge_minimum_voltage: f32,
pub charging_minimum_voltage: f32,
pub resting_minimum_voltage: f32,
pub charging_maximum_voltage: f32,
pub charging_maximum_current: f32,
pub nominal_voltage: f32,
pub discharge_maximum_current: f32,
pub discharge_maximum_burst_current: f32,
pub design_capacity: f32,
pub full_charge_capacity: f32,
pub cycle_count: u16,
pub weight: u16,
pub id: u8,
pub battery_function: MavBatteryFunction,
pub mavtype: MavBatteryType,
pub state_of_health: u8,
pub cells_in_series: u8,
pub manufacture_date: CharArray<9>,
pub serial_number: CharArray<32>,
pub name: CharArray<50>,
}dialect-ualberta only.Expand description
Battery information that is static, or requires infrequent update. This message should requested using MAV_CMD_REQUEST_MESSAGE and/or streamed at very low rate. BATTERY_STATUS_V2 is used for higher-rate battery status information.
ID: 372
Fields§
§discharge_minimum_voltage: f32Minimum per-cell voltage when discharging. 0: field not provided.
charging_minimum_voltage: f32Minimum per-cell voltage when charging. 0: field not provided.
resting_minimum_voltage: f32Minimum per-cell voltage when resting. 0: field not provided.
charging_maximum_voltage: f32Maximum per-cell voltage when charged. 0: field not provided.
charging_maximum_current: f32Maximum pack continuous charge current. 0: field not provided.
nominal_voltage: f32Battery nominal voltage. Used for conversion between Wh and Ah. 0: field not provided.
discharge_maximum_current: f32Maximum pack discharge current. 0: field not provided.
discharge_maximum_burst_current: f32Maximum pack discharge burst current. 0: field not provided.
design_capacity: f32Fully charged design capacity. 0: field not provided.
full_charge_capacity: f32Predicted battery capacity when fully charged (accounting for battery degradation). NAN: field not provided.
cycle_count: u16Lifetime count of the number of charge/discharge cycles (https://en.wikipedia.org/wiki/Charge_cycle). UINT16_MAX: field not provided.
weight: u16Battery weight. 0: field not provided.
id: u8Battery ID
battery_function: MavBatteryFunctionFunction of the battery.
mavtype: MavBatteryTypeType (chemistry) of the battery.
state_of_health: u8State of Health (SOH) estimate. Typically 100% at the time of manufacture and will decrease over time and use. -1: field not provided.
cells_in_series: u8Number of battery cells in series. 0: field not provided.
manufacture_date: CharArray<9>Manufacture date (DDMMYYYY) in ASCII characters, 0 terminated. All 0: field not provided.
serial_number: CharArray<32>Serial number in ASCII characters, 0 terminated. All 0: field not provided.
name: CharArray<50>Battery device name. Formatted as manufacturer name then product name, separated with an underscore (in ASCII characters), 0 terminated. All 0: field not provided.
Implementations§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for BATTERY_INFO_DATA
impl<'arbitrary> Arbitrary<'arbitrary> for BATTERY_INFO_DATA
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§impl Clone for BATTERY_INFO_DATA
impl Clone for BATTERY_INFO_DATA
Source§fn clone(&self) -> BATTERY_INFO_DATA
fn clone(&self) -> BATTERY_INFO_DATA
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BATTERY_INFO_DATA
impl Debug for BATTERY_INFO_DATA
Source§impl Default for BATTERY_INFO_DATA
impl Default for BATTERY_INFO_DATA
Source§impl<'de> Deserialize<'de> for BATTERY_INFO_DATA
impl<'de> Deserialize<'de> for BATTERY_INFO_DATA
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 MessageData for BATTERY_INFO_DATA
impl MessageData for BATTERY_INFO_DATA
Source§impl PartialEq for BATTERY_INFO_DATA
impl PartialEq for BATTERY_INFO_DATA
Source§impl Serialize for BATTERY_INFO_DATA
impl Serialize for BATTERY_INFO_DATA
Source§impl TS for BATTERY_INFO_DATA
impl TS for BATTERY_INFO_DATA
Source§type WithoutGenerics = BATTERY_INFO_DATA
type WithoutGenerics = BATTERY_INFO_DATA
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or ().
The only requirement for these dummy types is that EXPORT_TO must be None. Read moreSource§type OptionInnerType = BATTERY_INFO_DATA
type OptionInnerType = BATTERY_INFO_DATA
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete() -> String
fn decl_concrete() -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl() -> String
fn decl() -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline() -> String
fn inline() -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened() -> String
fn inline_flattened() -> String
This function will panic if the type cannot be flattened.
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported.The returned path does not include the base directory from
TS_RS_EXPORT_DIR. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
§fn dependencies() -> Vec<Dependency>where
Self: 'static,
fn dependencies() -> Vec<Dependency>where
Self: 'static,
§fn export() -> Result<(), ExportError>where
Self: 'static,
fn export() -> Result<(), ExportError>where
Self: 'static,
TS::export_all]. Read more§fn export_all() -> Result<(), ExportError>where
Self: 'static,
fn export_all() -> Result<(), ExportError>where
Self: 'static,
To export only this type, without its dependencies, use [
TS::export]. Read more§fn export_all_to(out_dir: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
fn export_all_to(out_dir: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
To export only this type, without its dependencies, use [
TS::export]. Read more§fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
§fn default_output_path() -> Option<PathBuf>
fn default_output_path() -> Option<PathBuf>
T should be exported. Read more