|
RobotCore 1.0
WPILib port to raspberry Pi
|
Static Public Member Functions | |
| static double | getMatchTime () |
| static Optional< Alliance > | getAlliance () |
| static OptionalInt | getLocation () |
| static int | getReplayNumber () |
| static int | getMatchNumber () |
| static MatchType | getMatchType () |
| static String | getEventName () |
| static Optional< String > | getGameData () |
Provides access to match state information from the Driver Station.
Definition at line 12 of file MatchState.java.
|
static |
Get the current alliance from the FMS.
If the FMS is not connected, it is set from the team alliance setting on the driver station.
Definition at line 43 of file MatchState.java.
|
static |
Get the event name from the FMS.
Definition at line 90 of file MatchState.java.
|
static |
Get the game specific message from the FMS.
If the FMS is not connected, it is set from the game data setting on the driver station.
Definition at line 101 of file MatchState.java.
|
static |
Gets the location of the team's driver station controls from the FMS.
If the FMS is not connected, it is set from the team alliance setting on the driver station.
Definition at line 54 of file MatchState.java.
|
static |
Get the match number from the FMS.
Definition at line 72 of file MatchState.java.
|
static |
Return the approximate match time. The FMS does not send an official match time to the robots, but does send an approximate match time. The value will count down the time remaining in the current period (auto or teleop). Warning: This is not an official time (so it cannot be used to dispute ref calls or guarantee that a function will trigger before the match ends).
When connected to the real field, this number only changes in full integer increments, and always counts down.
When the DS is in practice mode, this number is a floating point number, and counts down.
When the DS is in teleop or autonomous mode, this number returns -1.0.
Simulation matches DS behavior without an FMS connected.
Definition at line 32 of file MatchState.java.
|
static |
Get the match type from the FMS.
Definition at line 81 of file MatchState.java.
|
static |
Get the replay number from the FMS.
Definition at line 63 of file MatchState.java.