pub struct MotorSpec {
pub name: String,
pub motor_type: MotorTypeId,
pub send_id: u32,
pub recv_id: u32,
}Expand description
User-supplied motor specification for the crate::RobotBuilder.
Fields§
§name: StringHuman-readable motor name unique within the group.
motor_type: MotorTypeIdVendor type identifier (e.g. MotorTypeId::Damiao(<DM4340 disc>)).
send_id: u32CAN ID this motor accepts commands on.
recv_id: u32CAN ID this motor emits state and replies from.
Implementations§
Trait Implementations§
impl StructuralPartialEq for MotorSpec
Auto Trait Implementations§
impl Freeze for MotorSpec
impl RefUnwindSafe for MotorSpec
impl Send for MotorSpec
impl Sync for MotorSpec
impl Unpin for MotorSpec
impl UnsafeUnpin for MotorSpec
impl UnwindSafe for MotorSpec
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