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

@@ -253,7 +253,7 @@ def define_pybind_library(name, pkgcfgs = []):
"//wpiutil:robotpy-native-wpiutil",
],
strip_path_prefixes = ["wpiutil/src/main/python", "wpiutil"],
summary = "Binary wrapper for FRC WPIUtil library",
summary = "Binary wrapper for WPILib utilities library",
project_urls = {"Source code": "https://github.com/robotpy/mostrobotpy"},
author_email = "RobotPy Development Team <robotpy@googlegroups.com>",
requires = ["robotpy-native-wpiutil==0.0.0"],

View File

@@ -130,7 +130,7 @@ JNIEXPORT void JNICALL
Java_org_wpilib_util_WPIUtilJNI_enableMockTime
(JNIEnv*, jclass)
{
#ifdef __FRC_SYSTEMCORE__
#ifdef __FIRST_SYSTEMCORE__
wpi::util::print(stderr,
"WPIUtil: Mocking time is not available on systemcore\n");
#else

View File

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

View File

@@ -83,7 +83,7 @@ uint64_t wpi::util::NowDefault() {
// delta by 1,000,000
uint64_t delta_in_us = delta * 1000000ull / frequency_val;
return delta_in_us + zerotime_val;
#elif defined(__FRC_SYSTEMCORE__)
#elif defined(__FIRST_SYSTEMCORE__)
// We want clock synchronized across the system, so just use steady_clock.
return timestamp();
#else

View File

@@ -13,7 +13,7 @@
namespace wpi::util {
#if defined(__FRC_SYSTEMCORE__) && !defined(WPI_USE_PRIORITY_MUTEX)
#if defined(__FIRST_SYSTEMCORE__) && !defined(WPI_USE_PRIORITY_MUTEX)
#define WPI_USE_PRIORITY_MUTEX
#endif

View File

@@ -11,7 +11,7 @@ requires = [
[project]
name = "robotpy-wpiutil"
version = "0.0.0"
description = "Binary wrapper for FRC WPIUtil library"
description = "Binary wrapper for WPILib utilities library"
authors = [
{name = "RobotPy Development Team", email = "robotpy@googlegroups.com"},
]

View File

@@ -7,7 +7,7 @@ void cleanup_stack_trace_hook();
void setup_safethread_gil();
void cleanup_safethread_gil();
#ifndef __FRC_SYSTEMCORE__
#ifndef __FIRST_SYSTEMCORE__
namespace wpi::util::impl {
void ResetSendableRegistry();
@@ -38,4 +38,4 @@ SEMIWRAP_PYBIND11_MODULE(m) {
m.def("_setup_stack_trace_hook", &setup_stack_trace_hook);
m.add_object("_st_cleanup", cleanup);
}
}