Class OdomRotationSensor

Inheritance Relationships

Base Type

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