2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
|
Functions | |
units::degree_t | NearestAngle (units::degree_t desiredAngle, units::degree_t referenceAngle) |
Finds closest angle alias of desiredAngle relative to referencedAngle. All inputs are normalized so ranges are unbounded. | |
units::degree_t | InvertedAngle (units::degree_t desiredAngle, units::degree_t referenceAngle) |
Finds closest angle alias of a vector 180-degrees offset from desiredAngle relative to referencedAngle. All inputs are normalized so ranges are unbounded. | |
units::degree_t | ConstrainAngle (units::degree_t inVal, units::degree_t minVal, units::degree_t maxVal) |
Normalize angle to specified range. | |
double | ConstrainAngle (double inVal, double minVal, double maxVal) |
Normalize angle to specified range. | |
double argos_lib::angle::ConstrainAngle | ( | double | inVal, |
double | minVal, | ||
double | maxVal | ||
) |
Normalize angle to specified range.
inVal | Angle to constrain (degrees) |
minVal | Normalization lower bound (degrees) |
maxVal | Normalization upper bound (degrees) |
units::degree_t argos_lib::angle::ConstrainAngle | ( | units::degree_t | inVal, |
units::degree_t | minVal, | ||
units::degree_t | maxVal | ||
) |
Normalize angle to specified range.
inVal | Angle to constrain |
minVal | Normalization lower bound |
maxVal | Normalization upper bound |
units::degree_t argos_lib::angle::InvertedAngle | ( | units::degree_t | desiredAngle, |
units::degree_t | referenceAngle | ||
) |
Finds closest angle alias of a vector 180-degrees offset from desiredAngle relative to referencedAngle. All inputs are normalized so ranges are unbounded.
desiredAngle | Angle to find 180-degree offset alias for |
referenceAngle | Defines desired alias range |
units::degree_t argos_lib::angle::NearestAngle | ( | units::degree_t | desiredAngle, |
units::degree_t | referenceAngle | ||
) |
Finds closest angle alias of desiredAngle relative to referencedAngle. All inputs are normalized so ranges are unbounded.
desiredAngle | Angle to find alias for |
referenceAngle | Defines desired alias range |