2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
angle_utils.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include "units/angle.h"
8
9namespace argos_lib {
10 namespace angle {
19 units::degree_t NearestAngle(units::degree_t desiredAngle, units::degree_t referenceAngle);
20
29 units::degree_t InvertedAngle(units::degree_t desiredAngle, units::degree_t referenceAngle);
30
39 units::degree_t ConstrainAngle(units::degree_t inVal, units::degree_t minVal, units::degree_t maxVal);
48 double ConstrainAngle(double inVal, double minVal, double maxVal);
49 } // namespace angle
50} // namespace argos_lib
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 referencedAngl...
Definition angle_utils.cpp:29
units::degree_t ConstrainAngle(units::degree_t inVal, units::degree_t minVal, units::degree_t maxVal)
Normalize angle to specified range.
Definition angle_utils.cpp:36
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 r...
Definition angle_utils.cpp:15
Definition swap_controllers_command.h:12