Struct rrtk::MotorEncoderPair
source · pub struct MotorEncoderPair { /* private fields */ }Implementations§
Trait Implementations§
source§impl FeedbackMotor for MotorEncoderPair
impl FeedbackMotor for MotorEncoderPair
source§fn get_state(&mut self) -> Datum<State>
fn get_state(&mut self) -> Datum<State>
Get the motor’s current acceleration, velocity, and position and the time at which they
were recorded.
source§fn set_acceleration(&mut self, acceleration: f32)
fn set_acceleration(&mut self, acceleration: f32)
Make the motor run at a given acceleration.
source§fn set_velocity(&mut self, velocity: f32)
fn set_velocity(&mut self, velocity: f32)
Make the motor run at a given velocity.
source§fn set_position(&mut self, position: f32)
fn set_position(&mut self, position: f32)
Make the mootr go to a given position.
fn follow_motion_profile(&mut self, motion_profile: MotionProfile)
Auto Trait Implementations§
impl Freeze for MotorEncoderPair
impl !RefUnwindSafe for MotorEncoderPair
impl !Send for MotorEncoderPair
impl !Sync for MotorEncoderPair
impl Unpin for MotorEncoderPair
impl !UnwindSafe for MotorEncoderPair
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