Tune the flywheel and accelerator
Change-Id: I04530b7b5e0565f4dfe6d2978d1beb259f1fb0af
diff --git a/y2020/control_loops/superstructure/shooter/shooter.cc b/y2020/control_loops/superstructure/shooter/shooter.cc
index 8cdcf8c..9db79b0 100644
--- a/y2020/control_loops/superstructure/shooter/shooter.cc
+++ b/y2020/control_loops/superstructure/shooter/shooter.cc
@@ -16,8 +16,11 @@
} // namespace
Shooter::Shooter()
- : finisher_(finisher::MakeIntegralFinisherLoop(), finisher::kBemf,
- finisher::kResistance),
+ : finisher_(
+ finisher::MakeIntegralFinisherLoop(), finisher::kBemf,
+ // There are 2 motors. So the current limit per motor is going to be
+ // using resistance * 2 to un-parallel the motor resistances.
+ finisher::kResistance * 2.0),
accelerator_left_(accelerator::MakeIntegralAcceleratorLoop(),
accelerator::kBemf, accelerator::kResistance),
accelerator_right_(accelerator::MakeIntegralAcceleratorLoop(),