Loosened shooter velocity threshold.
Change-Id: I0b67f434be39ad48e60ad9c7da17ef017a6699b2
diff --git a/frc971/control_loops/shooter/shooter.cc b/frc971/control_loops/shooter/shooter.cc
index 8e283ff..2a35c62 100755
--- a/frc971/control_loops/shooter/shooter.cc
+++ b/frc971/control_loops/shooter/shooter.cc
@@ -449,9 +449,8 @@
LOG(DEBUG, "PDIFF: absolute_position: %.2f, pow: %.2f\n",
shooter_.absolute_position(), PowerToPosition(goal->shot_power));
if (::std::abs(shooter_.absolute_position() -
- PowerToPosition(goal->shot_power)) +
- ::std::abs(shooter_.absolute_velocity()) <
- 0.001) {
+ PowerToPosition(goal->shot_power)) < 0.001 &&
+ ::std::abs(shooter_.absolute_velocity()) < 0.005) {
// We are there, set the brake and move on.
latch_piston_ = true;
brake_piston_ = true;