Package frc.team88.swerve.module.sensor
Class SwerveCANcoder
- java.lang.Object
-
- frc.team88.swerve.module.sensor.SwerveCANcoder
-
- All Implemented Interfaces:
PositionSensor
public class SwerveCANcoder extends java.lang.Object implements PositionSensor
Represents a cancoder.
-
-
Constructor Summary
Constructors Constructor Description SwerveCANcoder(int canID)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getPosition()
Get the position value of the sensor.
-
-
-
Method Detail
-
getPosition
public double getPosition()
Description copied from interface:PositionSensor
Get the position value of the sensor.- Specified by:
getPosition
in interfacePositionSensor
- Returns:
- The position value in rotations.
-
-