SimpleRobot Class Reference
#include <SimpleRobot.h>


Public Member Functions | |
| virtual void | RobotInit () |
| virtual void | Disabled () |
| virtual void | Autonomous () |
| virtual void | OperatorControl () |
| virtual void | RobotMain () |
| void | StartCompetition () |
Detailed Description
- Todo:
- If this is going to last until release, it needs a better name.
Definition at line 15 of file SimpleRobot.h.
Member Function Documentation
| void SimpleRobot::Autonomous | ( | ) | [virtual] |
Autonomous should go here. Programmers should override this method to run code that should run while the field is in the autonomous period.
Definition at line 44 of file SimpleRobot.cpp.
| void SimpleRobot::Disabled | ( | ) | [virtual] |
Disabled should go here. Programmers should override this method to run code that should run while the field is disabled.
Definition at line 34 of file SimpleRobot.cpp.
| void SimpleRobot::OperatorControl | ( | ) | [virtual] |
Operator control (tele-operated) code should go here. Programmers should override this method to run code that should run while the field is in the Operator Control (tele-operated) period.
Definition at line 54 of file SimpleRobot.cpp.
| void SimpleRobot::RobotInit | ( | ) | [virtual] |
Robot-wide initialization code should go here.
Programmers should override this method for default Robot-wide initialization which will be called when the robot is first powered on. It will be called exactly 1 time.
Definition at line 24 of file SimpleRobot.cpp.
| void SimpleRobot::RobotMain | ( | ) | [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.
Definition at line 70 of file SimpleRobot.cpp.
| void SimpleRobot::StartCompetition | ( | ) | [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.
Definition at line 83 of file SimpleRobot.cpp.
The documentation for this class was generated from the following files:
Generated on Thu Jan 12 2012 22:35:36 for WPILibC++ by
1.7.1