Skip to content

Commit

Permalink
Update MathUtil.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Advay17 committed Nov 23, 2024
1 parent e565054 commit 29afc96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wpimath/src/main/native/include/frc/MathUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ constexpr bool IsNear(T expected, T actual, T tolerance, T min, T max) {
WPILIB_DLLEXPORT
constexpr units::radian_t AngleModulus(units::radian_t angle) {
return InputModulus<units::radian_t>(angle,
units::radian_t{-std::numbers::pi},
units::radian_t{std::numbers::pi});
-1_pi_rad,
1_pi_rad);
}

// floorDiv and floorMod algorithms taken from Java
Expand Down

0 comments on commit 29afc96

Please sign in to comment.