View Single Post
  #1   Spotlight this post!  
Unread 01-11-2013, 05:32 PM
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 65
jfitz0807 is an unknown quantity at this point
SimpleRobot versus IterativeRobot

We decided to switch to java this year. We're trying to get the framework set up.

The RobotBuilder tool created a Robot class that extends IterativeRobot. Most of the examples I have seen on line so far show a Robot class that extends SimpleRobot. What are the pros & cons of each?

Also, for the IterativeRobot, the autonomousPeriodic() and teleopPeriodic() methods both call Scheduler.getInstance().run(). What does this method do? Do I need to add code to these methods or does Scheduler.getInstance().run() call some other methods periodically in which I would put my code?
Reply With Quote