#[non_exhaustive]#[repr(u16)]pub enum DamiaoMotorType {
Show 13 variants
DM3507 = 0,
DM4310 = 1,
DM4310_48V = 2,
DM4340 = 3,
DM4340_48V = 4,
DM6006 = 5,
DM8006 = 6,
DM8009 = 7,
DM10010L = 8,
DM10010 = 9,
DMH3510 = 10,
DMH6215 = 11,
DMG6220 = 12,
}Expand description
Damiao motor SKUs supported by v1 of this codec.
Each variant maps to a unique u16 discriminant carried by
[MotorTypeId::Damiao]. Discriminants are intentionally explicit so they
remain stable across refactors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DM3507 = 0
DM-3507 — small ankle/wrist actuator.
DM4310 = 1
DM-4310 24V.
DM4310_48V = 2
DM-4310 48V.
DM4340 = 3
DM-4340 24V (default workhorse for OpenArm).
DM4340_48V = 4
DM-4340 48V.
DM6006 = 5
DM-6006.
DM8006 = 6
DM-8006.
DM8009 = 7
DM-8009.
DM10010L = 8
DM-10010L (low-speed, high-torque hip).
DM10010 = 9
DM-10010 (high-speed hip).
DMH3510 = 10
DM-H3510 (high-speed micro).
DMH6215 = 11
DM-H6215.
DMG6220 = 12
DM-G6220 (gearbox geared).
Implementations§
Source§impl DamiaoMotorType
impl DamiaoMotorType
Sourcepub fn from_discriminant(d: u16) -> Option<Self>
pub fn from_discriminant(d: u16) -> Option<Self>
Inverse of From<u16>; returns None for unknown discriminants.
Trait Implementations§
Source§impl Clone for DamiaoMotorType
impl Clone for DamiaoMotorType
Source§fn clone(&self) -> DamiaoMotorType
fn clone(&self) -> DamiaoMotorType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DamiaoMotorType
impl Debug for DamiaoMotorType
Source§impl From<DamiaoMotorType> for MotorTypeId
impl From<DamiaoMotorType> for MotorTypeId
Source§fn from(t: DamiaoMotorType) -> Self
fn from(t: DamiaoMotorType) -> Self
Converts to this type from the input type.
Source§impl Hash for DamiaoMotorType
impl Hash for DamiaoMotorType
Source§impl PartialEq for DamiaoMotorType
impl PartialEq for DamiaoMotorType
Source§fn eq(&self, other: &DamiaoMotorType) -> bool
fn eq(&self, other: &DamiaoMotorType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DamiaoMotorType
impl Eq for DamiaoMotorType
impl StructuralPartialEq for DamiaoMotorType
Auto Trait Implementations§
impl Freeze for DamiaoMotorType
impl RefUnwindSafe for DamiaoMotorType
impl Send for DamiaoMotorType
impl Sync for DamiaoMotorType
impl Unpin for DamiaoMotorType
impl UnsafeUnpin for DamiaoMotorType
impl UnwindSafe for DamiaoMotorType
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