Fixed Austin's comments.
Squashed 'Changed fender shot to long without IMU' and
fixed Austin's comments.
Change-Id: Id81f4f8d35bb399d33bb74bd3d4e895603817711
diff --git a/y2016_bot3/joystick_reader.cc b/y2016_bot3/joystick_reader.cc
index a02142d..97bd089 100644
--- a/y2016_bot3/joystick_reader.cc
+++ b/y2016_bot3/joystick_reader.cc
@@ -143,11 +143,8 @@
saw_ball_when_started_intaking_ = ball_detected;
}
- if (data.IsPressed(kIntakeIn)) {
- is_intaking_ = (!ball_detected || saw_ball_when_started_intaking_);
- } else {
- is_intaking_ = false;
- }
+ is_intaking_ = data.IsPressed(kIntakeIn) &&
+ (!ball_detected || saw_ball_when_started_intaking_);
is_outtaking_ = data.IsPressed(kIntakeOut);