Rename FRC to WPILib (#8637)

This commit is contained in:
Thad House
2026-03-13 23:05:55 -07:00
committed by GitHub
parent 6830c65a15
commit b2b111dc11
73 changed files with 134 additions and 141 deletions

View File

@@ -68,7 +68,7 @@ static MotorSafetyManager& GetManager() {
return manager;
}
#ifndef __FRC_SYSTEMCORE__
#ifndef __FIRST_SYSTEMCORE__
namespace wpi::impl {
void ResetMotorSafety() {
auto& manager = GetManager();

View File

@@ -40,7 +40,7 @@ static Instance& GetInstance() {
return *GetInstanceHolder();
}
#ifndef __FRC_SYSTEMCORE__
#ifndef __FIRST_SYSTEMCORE__
namespace wpi::impl {
void ResetSmartDashboardInstance() {
std::make_unique<Instance>().swap(GetInstanceHolder());

View File

@@ -70,7 +70,7 @@ static std::string MakeLogDir(std::string_view dir) {
if (!dir.empty()) {
return std::string{dir};
}
#ifdef __FRC_SYSTEMCORE__
#ifdef __FIRST_SYSTEMCORE__
// prefer a mounted USB drive if one is accessible
std::error_code ec;
auto s = fs::status("/u", ec);

View File

@@ -45,7 +45,7 @@ static Instance& GetInstance() {
return instance;
}
#ifndef __FRC_SYSTEMCORE__
#ifndef __FIRST_SYSTEMCORE__
namespace wpi::impl {
void ResetPreferencesInstance() {
GetInstance() = Instance();

View File

@@ -6,7 +6,7 @@
#include <stdint.h>
#ifdef __FRC_SYSTEMCORE__
#ifdef __FIRST_SYSTEMCORE__
#include <dlfcn.h>
#endif
@@ -107,7 +107,7 @@ class WPILibMathShared : public wpi::math::MathShared {
} // namespace
static void SetupCameraServerShared() {
#ifdef __FRC_SYSTEMCORE__
#ifdef __FIRST_SYSTEMCORE__
#ifdef DYNAMIC_CAMERA_SERVER
#ifdef DYNAMIC_CAMERA_SERVER_DEBUG
auto cameraServerLib = dlopen("libcameraserverd.so", RTLD_NOW);

View File

@@ -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;