SensorAngle

Trait SensorAngle 

Source
pub trait SensorAngle {
    // Required method
    fn get_angle(&mut self) -> Result<I16F16>;
}
Expand description

The trait for getting the shaft angle of the motor from some sensor

Required Methods§

Source

fn get_angle(&mut self) -> Result<I16F16>

Retrieve the angle from the sensor, in a synchrounous way Return on success the raw angle from the sensor, in radians from 0 .. 2 pi

Implementors§