pub struct ESC_STATUS_DATA {
pub time_usec: u64,
pub rpm: [i32; 4],
pub voltage: [f32; 4],
pub current: [f32; 4],
pub index: u8,
}Available on crate feature
common only.Expand description
ESC information for higher rate streaming. Recommended streaming rate is ~10 Hz. Information that changes more slowly is sent in ESC_INFO. It should typically only be streamed on high-bandwidth links (i.e. to a companion computer).
ID: 291
Fields§
§time_usec: u64Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
rpm: [i32; 4]Reported motor RPM from each ESC (negative for reverse rotation).
voltage: [f32; 4]Voltage measured from each ESC.
current: [f32; 4]Current measured from each ESC.
index: u8Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4.
Implementations§
Source§impl ESC_STATUS_DATA
impl ESC_STATUS_DATA
pub const ENCODED_LEN: usize = 57usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for ESC_STATUS_DATA
impl Clone for ESC_STATUS_DATA
Source§fn clone(&self) -> ESC_STATUS_DATA
fn clone(&self) -> ESC_STATUS_DATA
Returns a duplicate 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 ESC_STATUS_DATA
impl Debug for ESC_STATUS_DATA
Source§impl Default for ESC_STATUS_DATA
impl Default for ESC_STATUS_DATA
Source§impl<'de> Deserialize<'de> for ESC_STATUS_DATA
impl<'de> Deserialize<'de> for ESC_STATUS_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 ESC_STATUS_DATA
impl MessageData for ESC_STATUS_DATA
Source§impl PartialEq for ESC_STATUS_DATA
impl PartialEq for ESC_STATUS_DATA
Source§impl Serialize for ESC_STATUS_DATA
impl Serialize for ESC_STATUS_DATA
impl StructuralPartialEq for ESC_STATUS_DATA
Auto Trait Implementations§
impl Freeze for ESC_STATUS_DATA
impl RefUnwindSafe for ESC_STATUS_DATA
impl Send for ESC_STATUS_DATA
impl Sync for ESC_STATUS_DATA
impl Unpin for ESC_STATUS_DATA
impl UnwindSafe for ESC_STATUS_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