Fixed plumbing for intake pistons.
Change-Id: Iac76cd83279f2a6ee6ac7367c3fd3972333d0865
diff --git a/bot3/control_loops/intake/intake.cc b/bot3/control_loops/intake/intake.cc
index 4788a7a..126e491 100644
--- a/bot3/control_loops/intake/intake.cc
+++ b/bot3/control_loops/intake/intake.cc
@@ -17,19 +17,7 @@
if (output != nullptr) {
output->Zero();
- const int16_t intake_movement = goal->movement;
-
- if (intake_movement > 0.0) {
- // Suck.
- output->intake = kIntakeVoltageFullPower;
- } else if (intake_movement < 0.0) {
- // Spit.
- output->intake = -kIntakeVoltageFullPower;
- } else {
- // Stationary.
- output->intake = 0.0;
- }
-
+ output->intake = goal->movement;
output->claw_closed = goal->claw_closed;
}
}