diff --git a/wpilibc/src/main/native/include/frc/IterativeRobot.h b/wpilibc/src/main/native/include/frc/IterativeRobot.h index c38aa31a0e..8ce63563d0 100644 --- a/wpilibc/src/main/native/include/frc/IterativeRobot.h +++ b/wpilibc/src/main/native/include/frc/IterativeRobot.h @@ -22,6 +22,9 @@ namespace frc { */ class IterativeRobot : public IterativeRobotBase { public: + WPI_DEPRECATED( + "Use TimedRobot instead. It's a drop-in replacement that provides more " + "regular execution periods.") IterativeRobot(); virtual ~IterativeRobot() = default; diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/IterativeRobot.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/IterativeRobot.java index e5bc4b69e1..e72033edae 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/IterativeRobot.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/IterativeRobot.java @@ -18,7 +18,11 @@ import edu.wpi.first.hal.HAL; * *
periodic() functions from the base class are called each time a new packet is received from * the driver station. + * + * @deprecated Use TimedRobot instead. It's a drop-in replacement that provides more regular + * execution periods. */ +@Deprecated public class IterativeRobot extends IterativeRobotBase { private static final double kPacketPeriod = 0.02;