Work on getting wpilib_interface finished
I moved all the constants together to make it somewhat easier to work. I
also finished renaming serializer to indexer because Austin is more
stubborn than the rest of the team combined.
It at least compiles now. The TODOs are also also much more specific to
the few remaining pieces.
Change-Id: Id3baf2b5be0a946345b152612c2099cf1b599727
diff --git a/y2017/constants.cc b/y2017/constants.cc
index 05eca31..295a800 100644
--- a/y2017/constants.cc
+++ b/y2017/constants.cc
@@ -27,24 +27,34 @@
const int Values::kZeroingSampleSize;
-constexpr double Values::kDrivetrainEncoderRatio;
+constexpr double Values::kDrivetrainCyclesPerRevolution,
+ Values::kDrivetrainEncoderCountsPerRevolution,
+ Values::kDrivetrainEncoderRatio,
+ Values::kMaxDrivetrainEncoderPulsesPerSecond;
-constexpr double Values::kShooterEncoderRatio;
+constexpr double Values::kShooterEncoderCountsPerRevolution,
+ Values::kShooterEncoderRatio, Values::kMaxShooterEncoderPulsesPerSecond;
-constexpr double Values::kIntakeEncoderRatio, Values::kIntakePotRatio,
- Values::kIntakeEncoderIndexDifference;
+constexpr double Values::kIntakeEncoderCountsPerRevolution,
+ Values::kIntakeEncoderRatio, Values::kIntakePotRatio,
+ Values::kIntakeEncoderIndexDifference,
+ Values::kMaxIntakeEncoderPulsesPerSecond;
constexpr ::frc971::constants::Range Values::kIntakeRange;
-constexpr double Values::kHoodEncoderRatio, Values::kHoodPotRatio,
- Values::kHoodEncoderIndexDifference;
+constexpr double Values::kHoodEncoderCountsPerRevolution,
+ Values::kHoodEncoderRatio, Values::kHoodPotRatio,
+ Values::kHoodEncoderIndexDifference, Values::kMaxHoodEncoderPulsesPerSecond;
constexpr ::frc971::constants::Range Values::kHoodRange;
-constexpr double Values::kTurretEncoderRatio, Values::kTurretPotRatio,
- Values::kTurretEncoderIndexDifference;
+constexpr double Values::kTurretEncoderCountsPerRevolution,
+ Values::kTurretEncoderRatio, Values::kTurretPotRatio,
+ Values::kTurretEncoderIndexDifference,
+ Values::kMaxTurretEncoderPulsesPerSecond;
constexpr ::frc971::constants::Range Values::kTurretRange;
-constexpr double Values::kIndexerEncoderRatio,
- Values::kIndexerEncoderIndexDifference;
+constexpr double Values::kMaxIndexerEncoderCountsPerRevolution,
+ Values::kIndexerEncoderRatio, Values::kIndexerEncoderIndexDifference,
+ Values::kMaxIndexerEncoderPulsesPerSecond;
namespace {