Struct mavlink::asluav::SENS_BATMON_DATA
source · pub struct SENS_BATMON_DATA {Show 15 fields
pub batmon_timestamp: u64,
pub temperature: f32,
pub safetystatus: u32,
pub operationstatus: u32,
pub voltage: u16,
pub current: i16,
pub batterystatus: u16,
pub serialnumber: u16,
pub cellvoltage1: u16,
pub cellvoltage2: u16,
pub cellvoltage3: u16,
pub cellvoltage4: u16,
pub cellvoltage5: u16,
pub cellvoltage6: u16,
pub SoC: u8,
}
Available on crate feature
asluav
only.Expand description
id: 8010 Battery pack monitoring data for Li-Ion batteries.
Fields§
§batmon_timestamp: u64
Time since system start.
temperature: f32
Battery pack temperature.
safetystatus: u32
Battery monitor safetystatus report bits in Hex.
operationstatus: u32
Battery monitor operation status report bits in Hex.
voltage: u16
Battery pack voltage.
current: i16
Battery pack current.
batterystatus: u16
Battery monitor status report bits in Hex.
serialnumber: u16
Battery monitor serial number in Hex.
cellvoltage1: u16
Battery pack cell 1 voltage.
cellvoltage2: u16
Battery pack cell 2 voltage.
cellvoltage3: u16
Battery pack cell 3 voltage.
cellvoltage4: u16
Battery pack cell 4 voltage.
cellvoltage5: u16
Battery pack cell 5 voltage.
cellvoltage6: u16
Battery pack cell 6 voltage.
SoC: u8
Battery pack state-of-charge.
Implementations§
source§impl SENS_BATMON_DATA
impl SENS_BATMON_DATA
pub const ENCODED_LEN: usize = 41usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for SENS_BATMON_DATA
impl Clone for SENS_BATMON_DATA
source§fn clone(&self) -> SENS_BATMON_DATA
fn clone(&self) -> SENS_BATMON_DATA
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SENS_BATMON_DATA
impl Debug for SENS_BATMON_DATA
source§impl Default for SENS_BATMON_DATA
impl Default for SENS_BATMON_DATA
source§impl<'de> Deserialize<'de> for SENS_BATMON_DATA
impl<'de> Deserialize<'de> for SENS_BATMON_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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MessageData for SENS_BATMON_DATA
impl MessageData for SENS_BATMON_DATA
const ID: u32 = 8_010u32
const NAME: &'static str = "SENS_BATMON"
const EXTRA_CRC: u8 = 155u8
const ENCODED_LEN: usize = 41usize
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 SENS_BATMON_DATA
impl PartialEq for SENS_BATMON_DATA
source§impl Serialize for SENS_BATMON_DATA
impl Serialize for SENS_BATMON_DATA
impl StructuralPartialEq for SENS_BATMON_DATA
Auto Trait Implementations§
impl Freeze for SENS_BATMON_DATA
impl RefUnwindSafe for SENS_BATMON_DATA
impl Send for SENS_BATMON_DATA
impl Sync for SENS_BATMON_DATA
impl Unpin for SENS_BATMON_DATA
impl UnwindSafe for SENS_BATMON_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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)