Switch Command Templates to TimedRobot (#719)

This commit is contained in:
sciencewhiz
2017-11-09 20:08:41 -08:00
committed by Peter Johnson
parent 7bbd13d914
commit 6be9e69d13
2 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
#include <Commands/Command.h>
#include <Commands/Scheduler.h>
#include <IterativeRobot.h>
#include <TimedRobot.h>
#include <LiveWindow/LiveWindow.h>
#include <SmartDashboard/SendableChooser.h>
#include <SmartDashboard/SmartDashboard.h>
@@ -15,7 +15,7 @@
#include "Commands/ExampleCommand.h"
#include "Commands/MyAutoCommand.h"
class Robot : public frc::IterativeRobot {
class Robot : public frc::TimedRobot {
public:
void RobotInit() override {
m_chooser.AddDefault("Default Auto", &m_defaultAuto);

View File

@@ -7,7 +7,7 @@
package edu.wpi.first.wpilibj.templates.commandbased;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Scheduler;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
@@ -18,12 +18,12 @@ import edu.wpi.first.wpilibj.templates.commandbased.subsystems.ExampleSubsystem;
/**
* The VM is configured to automatically run this class, and to call the
* functions corresponding to each mode, as described in the IterativeRobot
* functions corresponding to each mode, as described in the TimedRobot
* documentation. If you change the name of this class or the package after
* creating this project, you must also update the build.properties file in the
* project.
*/
public class Robot extends IterativeRobot {
public class Robot extends TimedRobot {
public static final ExampleSubsystem kExampleSubsystem
= new ExampleSubsystem();