Fix output ratios in wpilib_interface
Signed-off-by: Filip Kujawa <filip.j.kujawa@gmail.com>
Change-Id: Ie70dec56dc1f6859a9a17bfb3dfe9ae5af23c5c4
diff --git a/y2024/constants.h b/y2024/constants.h
index a5bef55..2e482e6 100644
--- a/y2024/constants.h
+++ b/y2024/constants.h
@@ -108,6 +108,14 @@
control_loops::superstructure::extend::kOutputRatio /
kExtendEncoderRatio() * kExtendEncoderCountsPerRevolution();
}
+
+ // 20 -> 28 reduction to a 0.5" radius roller
+ static constexpr double kTransferRollerOutputRatio = (20.0 / 28.0) * 0.0127;
+ // 20 -> 34 reduction, and the 34 is on a 0.625" radius roller
+ static constexpr double kIntakeRollerOutputRatio = (20.0 / 34.0) * 0.015875;
+ // 20 -> 28 reduction to a 0.5" radius roller
+ static constexpr double kExtendRollerOutputRatio = (20.0 / 28.0) * 0.0127;
+
struct PotAndAbsEncoderConstants {
::frc971::control_loops::StaticZeroingSingleDOFProfiledSubsystemParams<
::frc971::zeroing::PotAndAbsoluteEncoderZeroingEstimator>