Spring works.
Change-Id: I370012cc80e9019467100bec631c488c10a73141
diff --git a/frc971/zeroing/wrap.cc b/frc971/zeroing/wrap.cc
index 2698928..593ac97 100644
--- a/frc971/zeroing/wrap.cc
+++ b/frc971/zeroing/wrap.cc
@@ -5,8 +5,12 @@
namespace frc971 {
namespace zeroing {
+float Wrap(float nearest, float value, float period) {
+ return remainderf(value - nearest, period) + nearest;
+}
+
double Wrap(double nearest, double value, double period) {
- return ::std::remainder(value - nearest, period) + nearest;
+ return remainder(value - nearest, period) + nearest;
}
} // namespace zeroing