Fixed a typo in the SRX sample project to correct a variable name error

Change-Id: I68f9cf33062bf2ef5df88247af8a5ee470a28d77
This commit is contained in:
Brad Miller
2014-11-28 11:07:08 -05:00
parent c683e24aa9
commit a9d30c0389

View File

@@ -22,7 +22,7 @@ public:
* Runs the motor from the output of a Joystick.
*/
void OperatorControl() {
talon.EnableControl();
m_motor.EnableControl();
while (IsOperatorControl() && IsEnabled()) {
// Takes a number from -1.0 (full reverse) to +1.0 (full forwards).
m_motor.Set(0.5);