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

@@ -6,9 +6,9 @@
/*----------------------------------------------------------------------------*/
#include <frc/DoubleSolenoid.h>
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/Solenoid.h>
#include <frc/TimedRobot.h>
/**
* This is a sample program showing the use of the solenoid classes during
@@ -30,7 +30,7 @@
* Additionally, double solenoids take up two channels on your PCM whereas
* single solenoids only take a single channel.
*/
class Robot : public frc::IterativeRobot {
class Robot : public frc::TimedRobot {
public:
void TeleopPeriodic() override {
/* The output of GetRawButton is true/false depending on whether the button