|
static double | deadBand (double input) |
|
static double | RPMToFalcon (double RPM, double gearRatio) |
|
static double | falconToRPM (double velocityCounts, double gearRatio) |
|
static double | MPSToFalcon (double velocity, double circumference, double gearRatio) |
|
static double | falconToMPS (double velocitycounts, double circumference, double gearRatio) |
|
static double | falconToDegrees (double counts, double gearRatio) |
|
static double | degreesToFalcon (double degrees, double gearRatio) |
|
static double | normalize (final double angle) |
|
A collection of static utility methods.
◆ deadBand()
static double lib.utils.Utils.deadBand |
( |
double |
input | ) |
|
|
static |
Joystick deadband - The absolute value of the joystick must be larger than a constant for an output to be returned.
- Parameters
-
input | The current joystick input value |
- Returns
- The output
◆ falconToDegrees()
static double lib.utils.Utils.falconToDegrees |
( |
double |
counts, |
|
|
double |
gearRatio |
|
) |
| |
|
static |
- Parameters
-
counts | Falcon Counts |
gearRatio | Gear Ratio between Falcon and Mechanism |
- Returns
- Degrees of Rotation of Mechanism
◆ falconToMPS()
static double lib.utils.Utils.falconToMPS |
( |
double |
velocitycounts, |
|
|
double |
circumference, |
|
|
double |
gearRatio |
|
) |
| |
|
static |
- Parameters
-
velocitycounts | Falcon Velocity Counts |
circumference | Circumference of Wheel |
gearRatio | Gear Ratio between Falcon and Mechanism (set to 1 for Falcon RPM) |
- Returns
- Falcon Velocity Counts
◆ falconToRPM()
static double lib.utils.Utils.falconToRPM |
( |
double |
velocityCounts, |
|
|
double |
gearRatio |
|
) |
| |
|
static |
- Parameters
-
velocityCounts | Falcon Velocity Counts |
gearRatio | Gear Ratio between Falcon and Mechanism (set to 1 for Falcon RPM) |
- Returns
- RPM of Mechanism
The documentation for this class was generated from the following file:
- src/main/java/lib/utils/Utils.java