#include <numbers>
#include <wpi/SymbolExports.h>
#include "units/angle.h"
#include "units/base.h"
#include "units/math.h"
Go to the source code of this file.
|
template<typename T , typename = std::enable_if_t<std::disjunction_v< std::is_floating_point<T>, units::traits::is_unit_t<T>>>> |
T | frc::ApplyDeadband (T value, T deadband, T maxMagnitude=T{1.0}) |
| Returns 0.0 if the given value is within the specified range around zero. More...
|
|
template<typename T > |
constexpr T | frc::InputModulus (T input, T minimumInput, T maximumInput) |
| Returns modulus of input. More...
|
|
WPILIB_DLLEXPORT constexpr units::radian_t | frc::AngleModulus (units::radian_t angle) |
| Wraps an angle to the range -pi to pi radians (-180 to 180 degrees). More...
|
|