Speed up the turret acceleration
Faster reload times!
Change-Id: Id7daef61482de6e997a5e0e17cbce6505c53ace4
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2022/control_loops/superstructure/turret/aiming.cc b/y2022/control_loops/superstructure/turret/aiming.cc
index 6320cb7..c570856 100644
--- a/y2022/control_loops/superstructure/turret/aiming.cc
+++ b/y2022/control_loops/superstructure/turret/aiming.cc
@@ -18,7 +18,7 @@
constexpr double kTurretZeroOffset = M_PI;
constexpr double kMaxProfiledVelocity = 10.0;
-constexpr double kMaxProfiledAccel = 20.0;
+constexpr double kMaxProfiledAccel = 25.0;
flatbuffers::DetachedBuffer MakePrefilledGoal() {
flatbuffers::FlatBufferBuilder fbb;
diff --git a/y2022/joystick_reader.cc b/y2022/joystick_reader.cc
index 26c7f33..59d495a 100644
--- a/y2022/joystick_reader.cc
+++ b/y2022/joystick_reader.cc
@@ -308,7 +308,7 @@
if (turret_pos.has_value()) {
turret_offset = CreateStaticZeroingSingleDOFProfiledSubsystemGoal(
*builder.fbb(), turret_pos.value(),
- CreateProfileParameters(*builder.fbb(), 10.0, 20.0));
+ CreateProfileParameters(*builder.fbb(), 10.0, 25.0));
}
flatbuffers::Offset<StaticZeroingSingleDOFProfiledSubsystemGoal>