mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
[wpilib] Use IsSimulation() consistently (#3534)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user