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],
}
python_array_test
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 smart battery frequent 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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more