|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMIDlet
edu.wpi.first.wpilibj.RobotBase
edu.wpi.first.wpilibj.SimpleRobot
public class SimpleRobot
A simple robot base class that knows the standard FRC competition states (disabled, autonomous, or operator controlled). You can build a simple robot program off of this by overriding the robotinit(), disabled(), autonomous() and operatorControl() methods. The startCompetition() method will calls these methods (sometimes repeatedly). depending on the state of the competition. Alternatively you can override the robotMain() method and manage all aspects of the robot yourself.
Field Summary |
---|
Fields inherited from class edu.wpi.first.wpilibj.RobotBase |
---|
ERRORS_TO_DRIVERSTATION_PROP, FILE_NAME, m_ds, ROBOT_TASK_PRIORITY, VERSION_CONTENTS |
Constructor Summary | |
---|---|
SimpleRobot()
Create a new SimpleRobot |
Method Summary | |
---|---|
void |
autonomous()
Autonomous should go here. |
protected void |
disabled()
Disabled should go here. |
void |
operatorControl()
Operator control (tele-operated) code should go here. |
protected void |
robotInit()
Robot-wide initialization code should go here. |
void |
robotMain()
Robot main program for free-form programs. |
void |
startCompetition()
Start a competition. |
void |
test()
Test code should go here. |
Methods inherited from class edu.wpi.first.wpilibj.RobotBase |
---|
destroyApp, free, getBooleanProperty, getWatchdog, isAutonomous, isDisabled, isEnabled, isNewDataAvailable, isOperatorControl, isReal, isSimulation, isSystemActive, isTest, pauseApp, startApp, writeVersionString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleRobot()
Method Detail |
---|
protected void robotInit()
protected void disabled()
public void autonomous()
public void operatorControl()
public void test()
public void robotMain()
public void startCompetition()
startCompetition
in class RobotBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |