pub struct SMART_BATTERY_INFO_DATA {Show 17 fields
pub capacity_full_specification: i32,
pub capacity_full: i32,
pub cycle_count: u16,
pub weight: u16,
pub discharge_minimum_voltage: u16,
pub charging_minimum_voltage: u16,
pub resting_minimum_voltage: u16,
pub id: u8,
pub battery_function: MavBatteryFunction,
pub mavtype: MavBatteryType,
pub serial_number: [u8; 16],
pub device_name: [u8; 50],
pub charging_maximum_voltage: u16,
pub cells_in_series: u8,
pub discharge_maximum_current: u32,
pub discharge_maximum_burst_current: u32,
pub manufacture_date: [u8; 11],
}
matrixpilot
only.Expand description
id: 370 Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates.
Fields§
§capacity_full_specification: i32
Capacity when full according to manufacturer, -1: field not provided.
capacity_full: i32
Capacity when full (accounting for battery degradation), -1: field not provided.
cycle_count: u16
Charge/discharge cycle count. UINT16_MAX: field not provided.
weight: u16
Battery weight. 0: field not provided.
discharge_minimum_voltage: u16
Minimum per-cell voltage when discharging. If not supplied set to UINT16_MAX value.
charging_minimum_voltage: u16
Minimum per-cell voltage when charging. If not supplied set to UINT16_MAX value.
resting_minimum_voltage: u16
Minimum per-cell voltage when resting. If not supplied set to UINT16_MAX value.
id: u8
Battery ID
battery_function: MavBatteryFunction
Function of the battery
mavtype: MavBatteryType
Type (chemistry) of the battery
serial_number: [u8; 16]
Serial number in ASCII characters, 0 terminated. All 0: field not provided.
device_name: [u8; 50]
Static device name in ASCII characters, 0 terminated. All 0: field not provided. Encode as manufacturer name then product name separated using an underscore.
charging_maximum_voltage: u16
Maximum per-cell voltage when charged. 0: field not provided.
cells_in_series: u8
Number of battery cells in series. 0: field not provided.
discharge_maximum_current: u32
Maximum pack discharge current. 0: field not provided.
discharge_maximum_burst_current: u32
Maximum pack discharge burst current. 0: field not provided.
manufacture_date: [u8; 11]
Manufacture date (DD/MM/YYYY) in ASCII characters, 0 terminated. All 0: field not provided.
Implementations§
Source§impl SMART_BATTERY_INFO_DATA
impl SMART_BATTERY_INFO_DATA
pub const ENCODED_LEN: usize = 109usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for SMART_BATTERY_INFO_DATA
impl Clone for SMART_BATTERY_INFO_DATA
Source§fn clone(&self) -> SMART_BATTERY_INFO_DATA
fn clone(&self) -> SMART_BATTERY_INFO_DATA
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SMART_BATTERY_INFO_DATA
impl Debug for SMART_BATTERY_INFO_DATA
Source§impl Default for SMART_BATTERY_INFO_DATA
impl Default for SMART_BATTERY_INFO_DATA
Source§impl<'de> Deserialize<'de> for SMART_BATTERY_INFO_DATA
impl<'de> Deserialize<'de> for SMART_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 SMART_BATTERY_INFO_DATA
impl MessageData for SMART_BATTERY_INFO_DATA
const ID: u32 = 370u32
const NAME: &'static str = "SMART_BATTERY_INFO"
const EXTRA_CRC: u8 = 75u8
const ENCODED_LEN: usize = 109usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
Source§impl PartialEq for SMART_BATTERY_INFO_DATA
impl PartialEq for SMART_BATTERY_INFO_DATA
Source§fn eq(&self, other: &SMART_BATTERY_INFO_DATA) -> bool
fn eq(&self, other: &SMART_BATTERY_INFO_DATA) -> bool
self
and other
values to be equal, and is used by ==
.