2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2016-01-02 03:02:34 -08:00
|
|
|
|
2025-11-08 15:08:38 -08:00
|
|
|
#include "wpi/framework/RobotState.hpp"
|
2014-08-08 17:05:49 -04:00
|
|
|
|
2025-11-07 19:56:21 -05:00
|
|
|
#include "wpi/driverstation/DriverStation.hpp"
|
2014-08-08 17:05:49 -04:00
|
|
|
|
2025-11-07 20:00:05 -05:00
|
|
|
using namespace wpi;
|
2016-11-01 22:33:12 -07:00
|
|
|
|
2014-08-08 17:05:49 -04:00
|
|
|
bool RobotState::IsDisabled() {
|
2021-06-15 23:06:03 -07:00
|
|
|
return DriverStation::IsDisabled();
|
2014-08-08 17:05:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool RobotState::IsEnabled() {
|
2021-06-15 23:06:03 -07:00
|
|
|
return DriverStation::IsEnabled();
|
2014-08-08 17:05:49 -04:00
|
|
|
}
|
|
|
|
|
|
2019-07-16 09:18:23 -05:00
|
|
|
bool RobotState::IsEStopped() {
|
2021-06-15 23:06:03 -07:00
|
|
|
return DriverStation::IsEStopped();
|
2019-07-16 09:18:23 -05:00
|
|
|
}
|
|
|
|
|
|
2021-08-11 23:04:43 -07:00
|
|
|
bool RobotState::IsTeleop() {
|
|
|
|
|
return DriverStation::IsTeleop();
|
2014-08-08 17:05:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool RobotState::IsAutonomous() {
|
2021-06-15 23:06:03 -07:00
|
|
|
return DriverStation::IsAutonomous();
|
2014-08-08 17:05:49 -04:00
|
|
|
}
|
|
|
|
|
|
2020-12-28 12:58:06 -08:00
|
|
|
bool RobotState::IsTest() {
|
2021-06-15 23:06:03 -07:00
|
|
|
return DriverStation::IsTest();
|
2020-12-28 12:58:06 -08:00
|
|
|
}
|