SimpleRobot Class Reference

#include <SimpleRobot.h>

Inheritance diagram for SimpleRobot:

Inheritance graph
[legend]
Collaboration diagram for SimpleRobot:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void Autonomous (void)
virtual void OperatorControl (void)
virtual void RobotMain (void)
void StartCompetition (void)


Detailed Description

Todo:
If this is going to last until release, it needs a better name.

Member Function Documentation

void SimpleRobot::Autonomous ( void   )  [virtual]

Autonomous should go here. Users should add autonomous code to this method that should run while the field is in the autonomous period.

void SimpleRobot::OperatorControl ( void   )  [virtual]

Operator control (tele-operated) code should go here. Users should add Operator Control code to this method that should run while the field is in the Operator Control (tele-operated) period.

void SimpleRobot::RobotMain ( void   )  [virtual]

Robot main program for free-form programs.

This should be overridden by user subclasses if the intent is to not use the Autonomous() and OperatorControl() methods. In that case, the program is responsible for sensing when to run the autonomous and operator control functions in their program.

This method will be called immediately after the constructor is called. If it has not been overridden by a user subclass (i.e. the default version runs), then the Autonomous() and OperatorControl() methods will be called.

void SimpleRobot::StartCompetition ( void   )  [virtual]

Start a competition. This code needs to track the order of the field starting to ensure that everything happens in the right order. Repeatedly run the correct method, either Autonomous or OperatorControl when the robot is enabled. After running the correct method, wait for some state to change, either the other mode starts or the robot is disabled. Then go back and wait for the robot to be enabled again.

Implements RobotBase.


The documentation for this class was generated from the following files:

Generated on Thu Oct 2 14:01:32 2008 for WPI Robotics Library by  doxygen 1.5.5