Ejemplo n.º 1
0
 /**
  * Gets a value indicating whether the Driver Station requires the robot to be running in
  * operator-controlled mode.
  *
  * @return True if operator-controlled mode should be enabled, false otherwise.
  */
 public boolean isOperatorControl() {
   return !m_controlData.autonomous();
 }
Ejemplo n.º 2
0
 /**
  * Gets a value indicating whether the Driver Station requires the robot to be running in
  * autonomous mode.
  *
  * @return True if autonomous mode should be enabled, false otherwise.
  */
 public boolean isAutonomous() {
   return m_controlData.autonomous();
 }