pub trait Motor {
// Required methods
fn raw(&mut self, command: Command) -> Result<()>;
fn motor_reset(&mut self, stop_action: Option<StopAction>) -> Result<()>;
fn wait(&self, timeout: Option<Duration>) -> Result<()>;
fn speed(&self) -> Result<Speed>;
fn motor_angle(&self) -> Result<Distance>;
}Required Methods§
Sourcefn motor_reset(&mut self, stop_action: Option<StopAction>) -> Result<()>
fn motor_reset(&mut self, stop_action: Option<StopAction>) -> Result<()>
Resets the angle of a motor to 0 this method sets the stopping action for implicit stops
Sourcefn motor_angle(&self) -> Result<Distance>
fn motor_angle(&self) -> Result<Distance>
Retrieves the angle of a motor in distance from the last reset