2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
angle_utils.h File Reference
#include "units/angle.h"

Go to the source code of this file.

Namespaces

namespace  argos_lib
 
namespace  argos_lib::angle
 

Functions

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.
 
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.
 
units::degree_t argos_lib::angle::ConstrainAngle (units::degree_t inVal, units::degree_t minVal, units::degree_t maxVal)
 Normalize angle to specified range.
 
double argos_lib::angle::ConstrainAngle (double inVal, double minVal, double maxVal)
 Normalize angle to specified range.