Struct mavlink::common::ESC_STATUS_DATA
source · 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
id: 291 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)..
Fields§
§time_usec: u64
Timestamp (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: u8
Index 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 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 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
const ID: u32 = 291u32
const NAME: &'static str = "ESC_STATUS"
const EXTRA_CRC: u8 = 10u8
const ENCODED_LEN: usize = 57usize
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 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
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
)