Class DifferentialDriveCalculation
- java.lang.Object
-
- io.github.frc5024.common_drive.calculation.DifferentialDriveCalculation
-
@Deprecated(since="October 2020", forRemoval=true) public class DifferentialDriveCalculation extends java.lang.ObjectDeprecated, 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 DifferentialDriveWheelSpeedsarcade(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 DifferentialDriveWheelSpeedsnormalize(DifferentialDriveWheelSpeeds signal)Deprecated, for removal: This API element is subject to removal in a future version.Normalize a percent output DriveSignalstatic DifferentialDriveWheelSpeedssemiConstCurve(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
-
-
-
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 speedrotation- 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 speedrotation- Desired rotation- Returns:
- Computed DriveSignal
-
-