pub struct MotorEnableCommand {
pub joint_index: u8,
pub enable: bool,
}Expand description
电机使能/失能设置指令 (0x471)
用于使能或失能指定的关节电机。
Fields§
§joint_index: u8§enable: boolImplementations§
Source§impl MotorEnableCommand
impl MotorEnableCommand
Sourcepub fn enable_all() -> Self
pub fn enable_all() -> Self
使能全部关节电机
Sourcepub fn disable_all() -> Self
pub fn disable_all() -> Self
失能全部关节电机
Sourcepub fn to_frame(self) -> PiperFrame
pub fn to_frame(self) -> PiperFrame
转换为 CAN 帧
Trait Implementations§
Source§impl Clone for MotorEnableCommand
impl Clone for MotorEnableCommand
Source§fn clone(&self) -> MotorEnableCommand
fn clone(&self) -> MotorEnableCommand
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 MotorEnableCommand
impl Debug for MotorEnableCommand
impl Copy for MotorEnableCommand
Auto Trait Implementations§
impl Freeze for MotorEnableCommand
impl RefUnwindSafe for MotorEnableCommand
impl Send for MotorEnableCommand
impl Sync for MotorEnableCommand
impl Unpin for MotorEnableCommand
impl UnwindSafe for MotorEnableCommand
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