RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
RobotState.java
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5package org.wpilib.driverstation;
6
7import org.wpilib.driverstation.internal.DriverStationBackend;
8import org.wpilib.hardware.hal.RobotMode;
9import org.wpilib.util.Color;
10
12public final class RobotState {
13 private RobotState() {}
14
20 public static boolean isEnabled() {
22 }
23
29 public static boolean isDisabled() {
31 }
32
38 public static boolean isEStopped() {
40 }
41
49 public static RobotMode getRobotMode() {
51 }
52
59 public static boolean isAutonomous() {
61 }
62
69 public static boolean isAutonomousEnabled() {
71 }
72
79 public static boolean isTeleop() {
81 }
82
89 public static boolean isTeleopEnabled() {
91 }
92
99 public static boolean isUtility() {
101 }
102
109 public static boolean isUtilityEnabled() {
111 }
112
127 public static long addOpMode(
128 RobotMode mode,
129 String name,
130 String group,
131 String description,
132 Color textColor,
133 Color backgroundColor) {
135 mode, name, group, description, textColor, backgroundColor);
136 }
137
150 public static long addOpMode(RobotMode mode, String name, String group, String description) {
151 return DriverStationBackend.addOpMode(mode, name, group, description);
152 }
153
165 public static long addOpMode(RobotMode mode, String name, String group) {
166 return DriverStationBackend.addOpMode(mode, name, group);
167 }
168
179 public static long addOpMode(RobotMode mode, String name) {
180 return DriverStationBackend.addOpMode(mode, name);
181 }
182
191 public static long removeOpMode(RobotMode mode, String name) {
192 return DriverStationBackend.removeOpMode(mode, name);
193 }
194
196 public static void publishOpModes() {
198 }
199
201 public static void clearOpModes() {
203 }
204
214 public static long getOpModeId() {
216 }
217
227 public static String getOpMode() {
229 }
230
238 public static boolean isOpMode(long id) {
240 }
241
249 public static boolean isOpMode(String mode) {
250 return DriverStationBackend.isOpMode(mode);
251 }
252
258 public static boolean isDSAttached() {
260 }
261
267 public static boolean isFMSAttached() {
269 }
270}
static boolean isOpMode(long id)
static long addOpMode(RobotMode mode, String name)
static long addOpMode(RobotMode mode, String name, String group)
static long removeOpMode(RobotMode mode, String name)
static long addOpMode(RobotMode mode, String name, String group, String description)
static long addOpMode(RobotMode mode, String name, String group, String description, Color textColor, Color backgroundColor)
static boolean isOpMode(String mode)
static long addOpMode(RobotMode mode, String name, String group, String description, Color textColor, Color backgroundColor)