From bd9484a2f4fcb352e9603df15eb8f89d6ea1914f Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Fri, 12 Oct 2018 23:41:05 -0700 Subject: [PATCH] Make MyRobot compilation test use TimedRobot (#1363) IterativeRobot is deprecated. --- myRobot/src/main/java/MyRobot.java | 4 ++-- myRobot/src/main/native/cpp/MyRobot.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/myRobot/src/main/java/MyRobot.java b/myRobot/src/main/java/MyRobot.java index 50fe72b41f..fc69d42481 100644 --- a/myRobot/src/main/java/MyRobot.java +++ b/myRobot/src/main/java/MyRobot.java @@ -5,10 +5,10 @@ /* the project. */ /*----------------------------------------------------------------------------*/ -import edu.wpi.first.wpilibj.IterativeRobot; +import edu.wpi.first.wpilibj.TimedRobot; @SuppressWarnings("all") -public class MyRobot extends IterativeRobot { +public class MyRobot extends TimedRobot { /** * This function is run when the robot is first started up and should be * used for any initialization code. diff --git a/myRobot/src/main/native/cpp/MyRobot.cpp b/myRobot/src/main/native/cpp/MyRobot.cpp index f9587e8be5..ff066d8844 100644 --- a/myRobot/src/main/native/cpp/MyRobot.cpp +++ b/myRobot/src/main/native/cpp/MyRobot.cpp @@ -5,9 +5,9 @@ /* the project. */ /*----------------------------------------------------------------------------*/ -#include +#include -class MyRobot : public frc::IterativeRobot { +class MyRobot : public frc::TimedRobot { /** * This function is run when the robot is first started up and should be * used for any initialization code.