pub struct MotorGroup { /* private fields */ }Expand description
Collection of motors that share a CAN bus and a vendor codec.
Implementations§
Source§impl MotorGroup
impl MotorGroup
Sourcepub fn enable_all(&mut self) -> Result<(), Error>
pub fn enable_all(&mut self) -> Result<(), Error>
Send the codec’s enable frame to every motor in insertion order.
Sourcepub fn disable_all(&mut self) -> Result<(), Error>
pub fn disable_all(&mut self) -> Result<(), Error>
Send the codec’s disable frame to every motor in insertion order. (Robot::disable reverses group order; individual groups disable motors in declaration order.)
Sourcepub fn set_zero_all(&mut self) -> Result<(), Error>
pub fn set_zero_all(&mut self) -> Result<(), Error>
Send the codec’s set-zero frame to every motor in insertion order.
Sourcepub fn refresh_all(&mut self) -> Result<(), Error>
pub fn refresh_all(&mut self) -> Result<(), Error>
Send the codec’s state-refresh query to every motor that supports one,
in insertion order. Motors whose codec returns None (no refresh) are
skipped. Send-only: this never drains inbound frames — call tick to
receive the replies. Commands no motion.
Auto Trait Implementations§
impl Freeze for MotorGroup
impl RefUnwindSafe for MotorGroup
impl Send for MotorGroup
impl Sync for MotorGroup
impl Unpin for MotorGroup
impl UnsafeUnpin for MotorGroup
impl UnwindSafe for MotorGroup
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