Class ModuleState


  • public class ModuleState
    extends java.lang.Object
    Encapsulates the running state of a single swerve module.
    • Constructor Summary

      Constructors 
      Constructor Description
      ModuleState​(double azimuthPosition, double wheelSpeed)
      Constructs a module state.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getAzimuthPosition()
      Gets the azimuth position.
      double getWheelSpeed()
      Gets the wheel speed.
      • Methods inherited from class java.lang.Object

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

      • ModuleState

        public ModuleState​(double azimuthPosition,
                           double wheelSpeed)
        Constructs a module state.
        Parameters:
        azimuthPosition - The angle of the module, in degrees.
        wheelSpeed - The speed of the wheel, in feet per second.
    • Method Detail

      • getAzimuthPosition

        public double getAzimuthPosition()
        Gets the azimuth position.
        Returns:
        The angle of the module, in degrees.
      • getWheelSpeed

        public double getWheelSpeed()
        Gets the wheel speed.
        Returns:
        The speed of the wheel, in feet per second.