Struct mavlink::matrixpilot::SMART_BATTERY_INFO_DATA
source · 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 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 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§impl Serialize for SMART_BATTERY_INFO_DATA
impl Serialize for SMART_BATTERY_INFO_DATA
impl StructuralPartialEq for SMART_BATTERY_INFO_DATA
Auto Trait Implementations§
impl Freeze for SMART_BATTERY_INFO_DATA
impl RefUnwindSafe for SMART_BATTERY_INFO_DATA
impl Send for SMART_BATTERY_INFO_DATA
impl Sync for SMART_BATTERY_INFO_DATA
impl Unpin for SMART_BATTERY_INFO_DATA
impl UnwindSafe for SMART_BATTERY_INFO_DATA
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)