Function get_position

Source
pub fn get_position(port: SmartPort) -> Result<i32, PROSErr>
Expand description

Gets the Rotation Sensor’s current position in centidegrees

§Errors

Returns PROSErr::NoDev if the port cannot be configured as a Rotation Sensor