mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Rename FRC to WPILib (#8637)
This commit is contained in:
@@ -24,7 +24,7 @@ namespace wpi {
|
||||
int RunHALInitialization();
|
||||
|
||||
namespace impl {
|
||||
#ifndef __FRC_SYSTEMCORE__
|
||||
#ifndef __FIRST_SYSTEMCORE__
|
||||
void ResetMotorSafety();
|
||||
#endif
|
||||
|
||||
@@ -124,7 +124,7 @@ int StartRobot() {
|
||||
impl::RunRobot<Robot>(m, &robot);
|
||||
}
|
||||
|
||||
#ifndef __FRC_SYSTEMCORE__
|
||||
#ifndef __FIRST_SYSTEMCORE__
|
||||
wpi::impl::ResetMotorSafety();
|
||||
#endif
|
||||
HAL_Shutdown();
|
||||
@@ -254,7 +254,7 @@ class RobotBase {
|
||||
* @return If the robot is running in the real world.
|
||||
*/
|
||||
static constexpr bool IsReal() {
|
||||
#ifdef __FRC_SYSTEMCORE__
|
||||
#ifdef __FIRST_SYSTEMCORE__
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
@@ -267,7 +267,7 @@ class RobotBase {
|
||||
* @return If the robot is running in simulation.
|
||||
*/
|
||||
static constexpr bool IsSimulation() {
|
||||
#ifdef __FRC_SYSTEMCORE__
|
||||
#ifdef __FIRST_SYSTEMCORE__
|
||||
return false;
|
||||
#else
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user