17 static float abs(
float f);
24 static float bound(
float value,
float capValue = 1);
31 static float cap(
float value,
float peak);
37 static void Deadband(
float &value,
float deadband = -.10f);
45 static bool IsWithin(
float value,
float compareTo,
float allowDelta);
60 static void Split_1(
float forward,
float turn,
float *left,
float *right);
68 static void Split_2(
float left,
float right,
float *forward,
float *turn);
70 static bool Contains(
char array[],
char item);
Class with basic utility methods.
Definition: Utilities.h:10
static int SmallerOf(int value_1, int value_2)
Gets the minimum of the two values.
static void Split_2(float left, float right, float *forward, float *turn)
Converts left and right to forward and turn speeds.
static void Deadband(float &value, float deadband=-.10f)
Deadbands the value.
static float cap(float value, float peak)
Caps the value.
static void Split_1(float forward, float turn, float *left, float *right)
Converts forward and turn to left and right speeds.
static bool IsWithin(float value, float compareTo, float allowDelta)
Calculates if value is within a delta.
static float bound(float value, float capValue=1)
Caps the value.
static float abs(float f)
Calculates absolute value of f.
namespace ctre
Definition: paramEnum.h:5