Quote:
Originally Posted by Jon Stratis
|
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()
|