pub struct CollisionProtectionLevelCommand {
pub levels: [u8; 6],
}Expand description
碰撞防护等级设置指令 (0x47A)
用于设置6个关节的碰撞防护等级(0~8,等级0代表不检测碰撞)。
Fields§
§levels: [u8; 6]Implementations§
Source§impl CollisionProtectionLevelCommand
impl CollisionProtectionLevelCommand
Sourcepub fn all_joints(level: u8) -> Self
pub fn all_joints(level: u8) -> Self
设置所有关节为相同等级
Sourcepub fn to_frame(self) -> PiperFrame
pub fn to_frame(self) -> PiperFrame
转换为 CAN 帧
Trait Implementations§
Source§impl Clone for CollisionProtectionLevelCommand
impl Clone for CollisionProtectionLevelCommand
Source§fn clone(&self) -> CollisionProtectionLevelCommand
fn clone(&self) -> CollisionProtectionLevelCommand
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 moreimpl Copy for CollisionProtectionLevelCommand
Auto Trait Implementations§
impl Freeze for CollisionProtectionLevelCommand
impl RefUnwindSafe for CollisionProtectionLevelCommand
impl Send for CollisionProtectionLevelCommand
impl Sync for CollisionProtectionLevelCommand
impl Unpin for CollisionProtectionLevelCommand
impl UnwindSafe for CollisionProtectionLevelCommand
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