Fix climber pot/encoder reduction
Change-Id: Ia52c9d57baa8b2a0241b99040d6e3575c3661550
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2024/constants.h b/y2024/constants.h
index 2e482e6..254b180 100644
--- a/y2024/constants.h
+++ b/y2024/constants.h
@@ -73,11 +73,11 @@
static constexpr double kClimberEncoderRatio() { return (16.0 / 60.0); }
static constexpr double kClimberPotMetersPerRevolution() {
- return 16 * 0.25 * 0.0254 * kClimberEncoderRatio();
+ return 16 * 0.25 * 0.0254;
}
static constexpr double kClimberEncoderMetersPerRevolution() {
- return kClimberPotMetersPerRevolution();
+ return kClimberEncoderRatio() * kClimberPotMetersPerRevolution();
}
static constexpr double kClimberPotMetersPerVolt() {