Class DifferentialDriveCalculation


  • @Deprecated(since="October 2020",
                forRemoval=true)
    public class DifferentialDriveCalculation
    extends java.lang.Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    Helpers for calculating differential drive kinematics
    • Constructor Summary

      Constructors 
      Constructor Description
      DifferentialDriveCalculation()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static DifferentialDriveWheelSpeeds arcade​(double speed, double rotation)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Calculate a percent motor output from speed and rotation inputs using "arcade calculation"
      static DifferentialDriveWheelSpeeds normalize​(DifferentialDriveWheelSpeeds signal)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Normalize a percent output DriveSignal
      static DifferentialDriveWheelSpeeds semiConstCurve​(double speed, double rotation)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Calculate a percent motor output from speed and rotation inputs using "semi-constant curvature" calculation
      • Methods inherited from class java.lang.Object

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

      • DifferentialDriveCalculation

        public DifferentialDriveCalculation()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • normalize

        public static DifferentialDriveWheelSpeeds normalize​(DifferentialDriveWheelSpeeds signal)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Normalize a percent output DriveSignal
        Parameters:
        signal - Input signal
        Returns:
        Normalized signal
      • semiConstCurve

        public static DifferentialDriveWheelSpeeds semiConstCurve​(double speed,
                                                                  double rotation)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Calculate a percent motor output from speed and rotation inputs using "semi-constant curvature" calculation
        Parameters:
        speed - Desired speed
        rotation - Desired rotation
        Returns:
        Computed DriveSignal
      • arcade

        public static DifferentialDriveWheelSpeeds arcade​(double speed,
                                                          double rotation)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Calculate a percent motor output from speed and rotation inputs using "arcade calculation"
        Parameters:
        speed - Desired speed
        rotation - Desired rotation
        Returns:
        Computed DriveSignal