Replace IterativeRobot in examples with TimedRobot (#1310)

Fixes #1309.
This commit is contained in:
Tyler Veness
2018-09-19 21:41:08 -07:00
committed by Peter Johnson
parent 59386635e7
commit bedef476fd
36 changed files with 75 additions and 75 deletions

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/Spark.h>
#include <frc/TimedRobot.h>
/**
* This sample program shows how to control a motor using a joystick. In the
@@ -17,7 +17,7 @@
* Joystick analog values range from -1 to 1 and speed controller inputs as
* range from -1 to 1 making it easy to work together.
*/
class Robot : public frc::IterativeRobot {
class Robot : public frc::TimedRobot {
public:
void TeleopPeriodic() override { m_motor.Set(m_stick.GetY()); }