[wpilib] Use IsSimulation() consistently (#3534)

This commit is contained in:
Tyler Veness
2023-09-15 20:05:16 -07:00
committed by GitHub
parent 12e2043b77
commit 575348b81c
5 changed files with 21 additions and 15 deletions

View File

@@ -227,7 +227,13 @@ class RobotBase {
*
* @return If the robot is running in simulation.
*/
static constexpr bool IsSimulation() { return !IsReal(); }
static constexpr bool IsSimulation() {
#ifdef __FRC_ROBORIO__
return false;
#else
return true;
#endif
}
/**
* Constructor for a generic robot program.