public abstract class RobotBase extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected DriverStation |
m_ds |
static int |
ROBOT_TASK_PRIORITY
The VxWorks priority that robot code should work at (so Java code should
run at)
|
| Modifier | Constructor and Description |
|---|---|
protected |
RobotBase()
Constructor for a generic robot program.
|
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Free the resources for a RobotBase class.
|
static boolean |
getBooleanProperty(java.lang.String name,
boolean defaultValue) |
static void |
initializeHardwareConfiguration()
Common initialization for all robot programs.
|
boolean |
isAutonomous()
Determine if the robot is currently in Autonomous mode.
|
boolean |
isDisabled()
Determine if the Robot is currently disabled.
|
boolean |
isEnabled()
Determine if the Robot is currently enabled.
|
boolean |
isNewDataAvailable()
Indicates if new data is available from the driver station.
|
boolean |
isOperatorControl()
Determine if the robot is currently in Operator Control mode.
|
static boolean |
isReal() |
static boolean |
isSimulation() |
boolean |
isTest()
Determine if the robot is currently in Test mode
$
|
static void |
main(java.lang.String[] args)
Starting point for the applications.
|
abstract void |
startCompetition()
Provide an alternate "main loop" via startCompetition().
|
public static final int ROBOT_TASK_PRIORITY
protected final DriverStation m_ds
protected RobotBase()
public void free()
public static boolean isSimulation()
public static boolean isReal()
public boolean isDisabled()
public boolean isEnabled()
public boolean isAutonomous()
public boolean isTest()
public boolean isOperatorControl()
public boolean isNewDataAvailable()
public abstract void startCompetition()
public static boolean getBooleanProperty(java.lang.String name, boolean defaultValue)
public static void initializeHardwareConfiguration()
public static void main(java.lang.String[] args)