mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Rename FRC to WPILib (#8637)
This commit is contained in:
@@ -68,7 +68,7 @@ static MotorSafetyManager& GetManager() {
|
||||
return manager;
|
||||
}
|
||||
|
||||
#ifndef __FRC_SYSTEMCORE__
|
||||
#ifndef __FIRST_SYSTEMCORE__
|
||||
namespace wpi::impl {
|
||||
void ResetMotorSafety() {
|
||||
auto& manager = GetManager();
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -45,7 +45,7 @@ static Instance& GetInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
#ifndef __FRC_SYSTEMCORE__
|
||||
#ifndef __FIRST_SYSTEMCORE__
|
||||
namespace wpi::impl {
|
||||
void ResetPreferencesInstance() {
|
||||
GetInstance() = Instance();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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