pub struct FirmwareVersionQueryCommand;Expand description
固件版本查询指令 (0x4AF)
用于查询机械臂固件版本信息。
查询和反馈使用相同的 CAN ID (0x4AF)。
查询命令的数据负载为固定值:[0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
注意:发送查询命令前应清空固件数据缓存,以便接收新的反馈数据。
Implementations§
Source§impl FirmwareVersionQueryCommand
impl FirmwareVersionQueryCommand
Sourcepub fn to_frame(self) -> PiperFrame
pub fn to_frame(self) -> PiperFrame
转换为 CAN 帧
根据 Python SDK 的实现,查询命令的数据为:
[0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
Trait Implementations§
Source§impl Clone for FirmwareVersionQueryCommand
impl Clone for FirmwareVersionQueryCommand
Source§fn clone(&self) -> FirmwareVersionQueryCommand
fn clone(&self) -> FirmwareVersionQueryCommand
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 FirmwareVersionQueryCommand
impl Debug for FirmwareVersionQueryCommand
impl Copy for FirmwareVersionQueryCommand
Auto Trait Implementations§
impl Freeze for FirmwareVersionQueryCommand
impl RefUnwindSafe for FirmwareVersionQueryCommand
impl Send for FirmwareVersionQueryCommand
impl Sync for FirmwareVersionQueryCommand
impl Unpin for FirmwareVersionQueryCommand
impl UnwindSafe for FirmwareVersionQueryCommand
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