blob: 84b049d15aad70c02b753165b48bf8dbed8187b2 [file] [log] [blame]
Austin Schuhc6423e62017-02-11 16:56:30 -08001#ifndef FRC971_ZEROING_WRAP_H_
2#define FRC971_ZEROING_WRAP_H_
3
4namespace frc971 {
5namespace zeroing {
6
7// Returns a modified value which has been wrapped such that it is +- period/2
8// away from nearest.
9double Wrap(double nearest, double value, double period);
10
11} // namespace zeroing
12} // namespace frc971
13
14#endif // FRC971_ZEROING_WRAP_H_