|
RobotCore 1.0
WPILib port to raspberry Pi
|
Static Public Member Functions | |
| static boolean | isEnabled () |
| static boolean | isDisabled () |
| static boolean | isEStopped () |
| static RobotMode | getRobotMode () |
| static boolean | isAutonomous () |
| static boolean | isAutonomousEnabled () |
| static boolean | isTeleop () |
| static boolean | isTeleopEnabled () |
| static boolean | isUtility () |
| static boolean | isUtilityEnabled () |
| static long | addOpMode (RobotMode mode, String name, String group, String description, Color textColor, Color backgroundColor) |
| static long | addOpMode (RobotMode mode, String name, String group, String description) |
| static long | addOpMode (RobotMode mode, String name, String group) |
| static long | addOpMode (RobotMode mode, String name) |
| static long | removeOpMode (RobotMode mode, String name) |
| static void | publishOpModes () |
| static void | clearOpModes () |
| static long | getOpModeId () |
| static String | getOpMode () |
| static boolean | isOpMode (long id) |
| static boolean | isOpMode (String mode) |
| static boolean | isDSAttached () |
| static boolean | isFMSAttached () |
Provides access to robot state information from the Driver Station.
Definition at line 12 of file RobotState.java.
|
static |
Adds an operating mode option. It's necessary to call publishOpModes() to make the added modes visible to the driver station.
| mode | robot mode |
| name | name of the operating mode |
| IllegalArgumentException | if name is empty or an operating mode with the same name already exists |
Definition at line 179 of file RobotState.java.
|
static |
Adds an operating mode option. It's necessary to call publishOpModes() to make the added modes visible to the driver station.
| mode | robot mode |
| name | name of the operating mode |
| group | group of the operating mode |
| IllegalArgumentException | if name is empty or an operating mode with the same name already exists |
Definition at line 165 of file RobotState.java.
|
static |
Adds an operating mode option. It's necessary to call publishOpModes() to make the added modes visible to the driver station.
| mode | robot mode |
| name | name of the operating mode |
| group | group of the operating mode |
| description | description of the operating mode |
| IllegalArgumentException | if name is empty or an operating mode with the same name already exists |
Definition at line 150 of file RobotState.java.
|
static |
Adds an operating mode option. It's necessary to call publishOpModes() to make the added modes visible to the driver station.
| mode | robot mode |
| name | name of the operating mode |
| group | group of the operating mode |
| description | description of the operating mode |
| textColor | text color, or null for default |
| backgroundColor | background color, or null for default |
| IllegalArgumentException | if name is empty or an operating mode with the same robot mode and name already exists |
Definition at line 127 of file RobotState.java.
|
static |
Clears all operating mode options and publishes an empty list to the driver station.
Definition at line 201 of file RobotState.java.
|
static |
Gets the operating mode selected on the driver station. Note this does not mean the robot is enabled; use isEnabled() for that. In a match, this will indicate the operating mode selected for auto before the match starts (i.e., while the robot is disabled in auto mode); after the auto period ends, this will change to reflect the operating mode selected for teleop.
Definition at line 227 of file RobotState.java.
|
static |
Gets the operating mode selected on the driver station. Note this does not mean the robot is enabled; use isEnabled() for that. In a match, this will indicate the operating mode selected for auto before the match starts (i.e., while the robot is disabled in auto mode); after the auto period ends, this will change to reflect the operating mode selected for teleop.
Definition at line 214 of file RobotState.java.
|
static |
Gets the current robot mode.
Note that this does not indicate whether the robot is enabled or disabled.
Definition at line 49 of file RobotState.java.
|
static |
Gets a value indicating whether the Driver Station requires the robot to be running in autonomous mode.
Definition at line 59 of file RobotState.java.
|
static |
Gets a value indicating whether the Driver Station requires the robot to be running in autonomous mode and enabled.
Definition at line 69 of file RobotState.java.
|
static |
Gets a value indicating whether the Driver Station requires the robot to be disabled.
Definition at line 29 of file RobotState.java.
|
static |
Gets a value indicating whether the Driver Station is attached.
Definition at line 258 of file RobotState.java.
|
static |
Gets a value indicating whether the Driver Station requires the robot to be enabled.
Definition at line 20 of file RobotState.java.
|
static |
Gets a value indicating whether the Robot is e-stopped.
Definition at line 38 of file RobotState.java.
|
static |
Gets if the driver station attached to a Field Management System.
Definition at line 267 of file RobotState.java.
|
static |
Check to see if the selected operating mode is a particular value. Note this does not mean the robot is enabled; use isEnabled() for that.
| id | operating mode unique ID |
Definition at line 238 of file RobotState.java.
|
static |
Check to see if the selected operating mode is a particular value. Note this does not mean the robot is enabled; use isEnabled() for that.
| mode | operating mode |
Definition at line 249 of file RobotState.java.
|
static |
Gets a value indicating whether the Driver Station requires the robot to be running in operator-controlled mode.
Definition at line 79 of file RobotState.java.
|
static |
Gets a value indicating whether the Driver Station requires the robot to be running in operator-controller mode and enabled.
Definition at line 89 of file RobotState.java.
|
static |
Gets a value indicating whether the Driver Station requires the robot to be running in Utility mode.
Definition at line 99 of file RobotState.java.
|
static |
Gets a value indicating whether the Driver Station requires the robot to be running in Utility mode and enabled.
Definition at line 109 of file RobotState.java.
|
static |
Publishes the operating mode options to the driver station.
Definition at line 196 of file RobotState.java.
|
static |
Removes an operating mode option. It's necessary to call publishOpModes() to make the removed mode no longer visible to the driver station.
| mode | robot mode |
| name | name of the operating mode |
Definition at line 191 of file RobotState.java.