pub struct MasterSlaveControlModeState {
pub hardware_timestamp_us: u64,
pub system_timestamp_us: u64,
pub control_mode: u8,
pub move_mode: u8,
pub speed_percent: u8,
pub mit_mode: u8,
pub trajectory_stay_time: u8,
pub install_position: u8,
pub is_valid: bool,
}Expand description
主从模式控制模式指令状态
更新频率:~200Hz(取决于主臂发送频率) CAN ID:0x151 同步机制:ArcSwap(温数据,高频访问)
Fields§
§hardware_timestamp_us: u64硬件时间戳(微秒)
system_timestamp_us: u64系统接收时间戳(微秒)
control_mode: u8控制模式指令(来自 0x151)
move_mode: u8§speed_percent: u8§mit_mode: u8§trajectory_stay_time: u8§install_position: u8§is_valid: bool是否有效(已收到至少一帧)
Trait Implementations§
Source§impl Clone for MasterSlaveControlModeState
impl Clone for MasterSlaveControlModeState
Source§fn clone(&self) -> MasterSlaveControlModeState
fn clone(&self) -> MasterSlaveControlModeState
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 MasterSlaveControlModeState
impl Debug for MasterSlaveControlModeState
Source§impl Default for MasterSlaveControlModeState
impl Default for MasterSlaveControlModeState
Source§fn default() -> MasterSlaveControlModeState
fn default() -> MasterSlaveControlModeState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MasterSlaveControlModeState
impl RefUnwindSafe for MasterSlaveControlModeState
impl Send for MasterSlaveControlModeState
impl Sync for MasterSlaveControlModeState
impl Unpin for MasterSlaveControlModeState
impl UnwindSafe for MasterSlaveControlModeState
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more