Increase shot power and range
We can now shoot from further away. This change also sets us up so we
can shoot from off center better too.
The acceleration plant wasn't matching the deceleration plant very well
since the note was going away and we were fighting efficiency the other
way. Gain schedule to a different set of gains when decelerating the
cataputl.
Change-Id: Ie1955226e7148e10b447084ec04cc5bf7e91e78a
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2024/control_loops/superstructure/shooter.h b/y2024/control_loops/superstructure/shooter.h
index 5363288..e873629 100644
--- a/y2024/control_loops/superstructure/shooter.h
+++ b/y2024/control_loops/superstructure/shooter.h
@@ -138,6 +138,10 @@
CatapultSubsystem catapult_;
+ // Max speed we have seen during this shot. This is used to figure out when
+ // we start decelerating and switch controllers.
+ double max_catapult_goal_velocity_ = 0.0;
+
PotAndAbsoluteEncoderSubsystem turret_;
PotAndAbsoluteEncoderSubsystem altitude_;