Class OdomRotationSensor
Defined in File OdomRotationSensor.hpp
Inheritance Relationships
Base Type
public LouLib::Odometry::AbstractOdomSensor
(Class AbstractOdomSensor)
Class Documentation
-
class OdomRotationSensor : public LouLib::Odometry::AbstractOdomSensor
Class representing a rotation sensor being used as an odometry tracking sensor.
Public Functions
-
OdomRotationSensor(int port, bool reversed, const Units::Length &wheelDiam)
Constructor
- Parameters
port –
reversed –
wheelDiam –
-
virtual void setGearRatio(int wheelSide, int sensorSide) override
Sets the gear ratio of the sensor
-
virtual Units::Length getPosition() override
Returns the position of the sensor
-
OdomRotationSensor(int port, bool reversed, const Units::Length &wheelDiam)