Make initialization of 2020 constants explicit
By doing this, we will remember to initialize the constants
before RT so we don't malloc in RT.
Later we will replace this with the constants in a json file.
Signed-off-by: milind-u <milind.upadhyay@gmail.com>
Change-Id: I283f4accc3c180815abbc424d39c84fdd4c47d92
diff --git a/y2020/wpilib_interface.cc b/y2020/wpilib_interface.cc
index fb46d71..217c6b7 100644
--- a/y2020/wpilib_interface.cc
+++ b/y2020/wpilib_interface.cc
@@ -133,6 +133,8 @@
// we should ever see.
UpdateFastEncoderFilterHz(kMaxFastEncoderPulsesPerSecond);
UpdateMediumEncoderFilterHz(kMaxMediumEncoderPulsesPerSecond);
+
+ constants::InitValues();
}
// Hood