pub enum MotorControl {
Brake(BrakeMode),
Voltage(f64),
Velocity(i32),
Position(Position, i32),
}Expand description
Represents a possible target for a Motor.
Variants§
Brake(BrakeMode)
Motor is braking using a BrakeMode.
Voltage(f64)
Motor is outputting a raw voltage.
Velocity(i32)
Motor is attempting to hold a velocity using internal PID control.
Position(Position, i32)
Motor is attempting to reach a position using internal PID control.
Trait Implementations§
Source§impl Clone for MotorControl
impl Clone for MotorControl
Source§fn clone(&self) -> MotorControl
fn clone(&self) -> MotorControl
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 MotorControl
impl Debug for MotorControl
Source§impl PartialEq for MotorControl
impl PartialEq for MotorControl
impl Copy for MotorControl
impl StructuralPartialEq for MotorControl
Auto Trait Implementations§
impl Freeze for MotorControl
impl RefUnwindSafe for MotorControl
impl Send for MotorControl
impl Sync for MotorControl
impl Unpin for MotorControl
impl UnwindSafe for MotorControl
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