Made pistol grip controller work with the drivetrain.
Change-Id: Id5ede34e9a9981c338aaa6118eb5085578a8ecd3
diff --git a/y2014_bot3/autonomous/auto.cc b/y2014_bot3/autonomous/auto.cc
index 90d8457..6b63fab 100644
--- a/y2014_bot3/autonomous/auto.cc
+++ b/y2014_bot3/autonomous/auto.cc
@@ -36,7 +36,7 @@
LOG(INFO, "resetting the drivetrain\n");
::frc971::control_loops::drivetrain_queue.goal.MakeWithBuilder()
.control_loop_driving(false)
- .steering(0.0)
+ .wheel(0.0)
.throttle(0.0)
.left_goal(left_initial_position)
.left_velocity_goal(0)
@@ -68,7 +68,7 @@
.control_loop_driving(false)
.highgear(false)
.quickturn(false)
- .steering(0.0)
+ .wheel(0.0)
.throttle(0.5)
.left_goal(left_initial_position)
.left_velocity_goal(0)
@@ -81,7 +81,7 @@
.control_loop_driving(false)
.highgear(false)
.quickturn(false)
- .steering(0.0)
+ .wheel(0.0)
.throttle(0.0)
.left_goal(left_initial_position)
.left_velocity_goal(0)
diff --git a/y2014_bot3/joystick_reader.cc b/y2014_bot3/joystick_reader.cc
index a29856b..b4126d1 100644
--- a/y2014_bot3/joystick_reader.cc
+++ b/y2014_bot3/joystick_reader.cc
@@ -81,7 +81,7 @@
}
if (!drivetrain_queue.goal.MakeWithBuilder()
- .steering(wheel)
+ .wheel(wheel)
.throttle(throttle)
.highgear(is_high_gear_)
.quickturn(data.IsPressed(kQuickTurn))