diff --git a/eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/CANTalon/src/Robot.cpp b/eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/CANTalon/src/Robot.cpp index fe8c51f036..e175af4460 100644 --- a/eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/CANTalon/src/Robot.cpp +++ b/eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/CANTalon/src/Robot.cpp @@ -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);