Do We Have to use the new ReWrite for the 2020 Season?

Good evening all. We are a relatively seasoned team and have used LabView for the last 4 years. However due to an agreement and update, we have now changed to Java. We are of intermediate experience in regards to our programming abilities. We have written our program as a TimeRobot object. I understand with the 2020rewrite (from the FRC website) IterativeRobot was removed. Does this mean we are forced to use the new system with Subsystem and Command interfaces, and RobotContainer? If this is the case, what is the best way to do this? As of now, we have the Robot extends TimeRobot, and we override all of the init and periodic methods. What is the best way to move forward? Best - Xbots Robotics Programming Team.

The Rewrite for this year was just for the Command-Based Framework. TimedRobot has been the recommended default “robot base class” (Command Based Framework also uses it for its base) for a couple years now instead of IterativeRobot.

By no means are you required to use the Command Based Framework. However if you do decide to use it, I’d recommend using the rewrite. The old Command Based Framework is still available, however it is deprecated, which means it is highly recommended you don’t use it as you cannot expect any bug fixes or other improvements to be made to it, even ones that may otherwise we breaking bugs.

2 Likes

IterativeRobot and TimedRobot are both very similar. There’s a few technical things that TimedRobot changed compared to IterativeRobot, but nothing major. In TimedRobot you still get all your periodic and init methods.

It’s up to you how you want to structure your robot code. Many teams are finding success with the newer Command based approach. Some teams will go with a TimedRobot approach without using Commands or Subsystems, which is fine too.

I can’t really say which one is better, but I can suggest that you go with whatever one you are most comfortable with.

2 Likes

gixxy, Thank you very much! You helped us avoid unnecessary panic.

retrodaredevil, Thank you for your response. Much obliged!

gixxy, Thank you very much for clearing out confusion! Much appreciated!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.