View Single Post
  #4   Spotlight this post!  
Unread 01-07-2013, 16:05
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Switching to Iterative

Quote:
Originally Posted by Jon Stratis View Post
This resource is out of date. It was last updated for the beta code in 2008. The up to date version is installed with the C++ update and can be found at C:\windriver\docs\extensions\FRC\WPILib C++ Reference.chm

In particular, the continuous methods no long exist, periodic rate has changed, and there are now test methods.

Quote:
RobotInit() -- provide for initialization at robot power-on

Init() functions -- each of the following functions is called once when the appropriate mode is entered:

DisabledInit() -- called only when first disabled
AutonomousInit() -- called each and every time autonomous is entered from another mode
TeleopInit() -- called each and every time teleop is entered from another mode
TestInit() -- called each and every time test is entered from another mode

Periodic() functions -- each of these functions is called iteratively at the appropriate periodic rate (aka the "slow loop"). The default period of the iterative robot is synced to the driver station control packets, giving a periodic frequency of about 50Hz (50 times per second).

DisabledPeriodic()
AutonomousPeriodic()
TeleopPeriodic()
TestPeriodic()
Reply With Quote