Files
allwpilib/wpilibc/src/main/native/include/frc/RobotState.h

25 lines
768 B
C
Raw Normal View History

/*----------------------------------------------------------------------------*/
/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
#pragma once
namespace frc {
class RobotState {
public:
RobotState() = delete;
static bool IsDisabled();
static bool IsEnabled();
static bool IsEStopped();
static bool IsOperatorControl();
static bool IsAutonomous();
static bool IsTest();
};
} // namespace frc