Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SwerveCANcoder

        public SwerveCANcoder​(int canID)
        Constructor.
        Parameters:
        canID - The CAN ID of the CANCoder.
    • Method Detail

      • getPosition

        public double getPosition()
        Description copied from interface: PositionSensor
        Get the position value of the sensor.
        Specified by:
        getPosition in interface PositionSensor
        Returns:
        The position value in rotations.