pub enum EncoderUnits {
EncoderTicks,
Degrees,
Rotations,
}Expand description
Represents the possible encoder units.
Variants§
EncoderTicks
The number of ticks of the internal motor encoder.
- 300 ticks/rev with
Gearset::SixToOne. - 900 ticks/rev with
Gearset::EighteenToOne. - 1800 ticks/rev with
Gearset::ThirtySixToOne.
Degrees
Degrees.
Rotations
Rotations.
Trait Implementations§
Source§impl Clone for EncoderUnits
impl Clone for EncoderUnits
Source§fn clone(&self) -> EncoderUnits
fn clone(&self) -> EncoderUnits
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 From<EncoderUnits> for c_uint
impl From<EncoderUnits> for c_uint
Source§fn from(units: EncoderUnits) -> Self
fn from(units: EncoderUnits) -> Self
Converts to this type from the input type.
impl Copy for EncoderUnits
Auto Trait Implementations§
impl Freeze for EncoderUnits
impl RefUnwindSafe for EncoderUnits
impl Send for EncoderUnits
impl Sync for EncoderUnits
impl Unpin for EncoderUnits
impl UnwindSafe for EncoderUnits
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