mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Rename FRC to WPILib (#8637)
This commit is contained in:
2
wpiutil/robotpy_pybind_build_info.bzl
generated
2
wpiutil/robotpy_pybind_build_info.bzl
generated
@@ -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"],
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"},
|
||||
]
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user