Convert drivetrain mode from a bool to a number
This lets us support more than 2 drivetrain controller types in
perparation for splines.
Change-Id: I943d6073e6c5facae7223cc6111551a57b039a04
diff --git a/y2016/joystick_reader.cc b/y2016/joystick_reader.cc
index 99bfb68..8f99e4c 100644
--- a/y2016/joystick_reader.cc
+++ b/y2016/joystick_reader.cc
@@ -163,7 +163,7 @@
.throttle(throttle)
.highgear(is_high_gear_)
.quickturn(data.IsPressed(kQuickTurn))
- .control_loop_driving(is_control_loop_driving)
+ .controller_type(is_control_loop_driving ? 1 : 0)
.left_goal(left_goal_ - wheel * 0.5 + throttle * 0.3)
.right_goal(right_goal_ + wheel * 0.5 + throttle * 0.3)
.left_velocity_goal(0)