2014-08-08 17:05:49 -04:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2020-10-03 12:21:03 -04:00
|
|
|
/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */
|
2014-08-08 17:05:49 -04:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
2016-01-02 03:02:34 -08:00
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
2014-08-08 17:05:49 -04:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2016-01-02 03:02:34 -08:00
|
|
|
|
2014-08-08 17:05:49 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
2016-11-01 22:33:12 -07:00
|
|
|
namespace frc {
|
|
|
|
|
|
2015-06-25 15:07:55 -04:00
|
|
|
class RobotState {
|
|
|
|
|
public:
|
2019-08-24 22:28:39 -07:00
|
|
|
RobotState() = delete;
|
|
|
|
|
|
2015-06-25 15:07:55 -04:00
|
|
|
static bool IsDisabled();
|
|
|
|
|
static bool IsEnabled();
|
2019-07-16 09:18:23 -05:00
|
|
|
static bool IsEStopped();
|
2015-06-25 15:07:55 -04:00
|
|
|
static bool IsOperatorControl();
|
|
|
|
|
static bool IsAutonomous();
|
|
|
|
|
static bool IsTest();
|
|
|
|
|
};
|
2016-11-01 22:33:12 -07:00
|
|
|
|
|
|
|
|
} // namespace frc
|