Don't give the profile a velocity
We don't support velocities, and it crashes when we do that. Stop it.
Change-Id: I7608c9eaa3855f60e69f2061dccb68c05df0d2a7
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 2a600d8..e1d24f8 100644
--- a/y2022/control_loops/superstructure/turret/aiming.cc
+++ b/y2022/control_loops/superstructure/turret/aiming.cc
@@ -68,7 +68,7 @@
goal_.mutable_message()->mutate_unsafe_goal(current_goal_.position);
goal_.mutable_message()->mutate_goal_velocity(
- std::clamp(current_goal_.velocity, -2.0, 2.0));
+ std::clamp(current_goal_.velocity, 0.0, 0.0));
}
flatbuffers::Offset<AimerStatus> Aimer::PopulateStatus(