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

@@ -8,17 +8,17 @@
#include <array>
#include <frc/AnalogInput.h>
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/PIDController.h>
#include <frc/Spark.h>
#include <frc/TimedRobot.h>
/**
* This is a sample program to demonstrate how to use a soft potentiometer and a
* PID Controller to reach and maintain position setpoints on an elevator
* mechanism.
*/
class Robot : public frc::IterativeRobot {
class Robot : public frc::TimedRobot {
public:
void RobotInit() override { m_pidController.SetInputRange(0, 5); }