Skip to content

Commit 6cd9be6

Browse files
committed
Replace roborio macros/paths with systemcore macros/paths
1 parent d31f991 commit 6cd9be6

File tree

15 files changed

+29
-29
lines changed

15 files changed

+29
-29
lines changed

subprojects/robotpy-cscore/cscore/src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "cscore_cpp.h"
55

6-
#ifdef __FRC_ROBORIO__
6+
#ifdef __FRC_SYSTEMCORE__
77
extern "C" {
88
void WPI_Impl_SetupNowUseDefaultOnRio(void);
99
}
@@ -23,7 +23,7 @@ SEMIWRAP_PYBIND11_MODULE(m) {
2323
});
2424
m.add_object("_cleanup", cleanup);
2525

26-
#ifdef __FRC_ROBORIO__
26+
#ifdef __FRC_SYSTEMCORE__
2727
m.def("_setupWpiNow", WPI_Impl_SetupNowUseDefaultOnRio);
2828
#endif
2929
}

subprojects/robotpy-hal/hal/simulation/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SEMIWRAP_PYBIND11_MODULE(m) {
2222
m.def(
2323
"resetGlobalHandles",
2424
[]() {
25-
#ifndef __FRC_ROBORIO__
25+
#ifndef __FRC_SYSTEMCORE__
2626
HALSIM_ResetGlobalHandles();
2727
#endif
2828
},

subprojects/robotpy-hal/hal/simulation/resethandles.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
#ifndef __FRC_ROBORIO__
3+
#ifndef __FRC_SYSTEMCORE__
44
#include <hal/Notifier.h>
55
#include <hal/handles/HandlesInternal.h>
66
#include <hal/simulation/NotifierData.h>

subprojects/robotpy-hal/hal/src/hal.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ SEMIWRAP_PYBIND11_MODULE(m) {
6060

6161
initWrapper(m);
6262

63-
#ifdef __FRC_ROBORIO__
64-
m.attr("__halplatform__") = "roboRIO";
63+
#ifdef __FRC_SYSTEMCORE__
64+
m.attr("__halplatform__") = "Systemcore";
6565
m.attr("__hal_simulation__") = false;
6666
#else
6767
m.attr("__halplatform__") = "sim";

subprojects/robotpy-hal/semiwrap/DutyCycle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ functions:
77
HAL_InitializeDutyCycle:
88
HAL_FreeDutyCycle:
99
HAL_SetDutyCycleSimDevice:
10-
ifndef: __FRC_ROBORIO__
10+
ifndef: __FRC_SYSTEMCORE__
1111
HAL_GetDutyCycleFrequency:
1212
HAL_GetDutyCycleOutput:
1313
HAL_GetDutyCycleHighTime:

subprojects/robotpy-hal/semiwrap/Extensions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ strip_prefixes:
55

66
functions:
77
HAL_LoadOneExtension:
8-
ifndef: __FRC_ROBORIO__
8+
ifndef: __FRC_SYSTEMCORE__
99
HAL_LoadExtensions:
10-
ifndef: __FRC_ROBORIO__
10+
ifndef: __FRC_SYSTEMCORE__
1111
HAL_RegisterExtension:
1212
ignore: true
1313
HAL_RegisterExtensionListener:
1414
ignore: true
1515
HAL_SetShowExtensionsNotFoundMessages:
16-
ifndef: __FRC_ROBORIO__
16+
ifndef: __FRC_SYSTEMCORE__
1717
HAL_OnShutdown:
1818
ignore: true

subprojects/robotpy-hal/semiwrap/PowerDistribution.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ functions:
2727
HAL_GetPowerDistributionFaults:
2828
HAL_GetPowerDistributionStickyFaults:
2929
HAL_StartPowerDistributionStream:
30-
ifdef: __FRC_ROBORIO__
30+
ifdef: __FRC_SYSTEMCORE__
3131
HAL_GetPowerDistributionStreamData:
32-
ifdef: __FRC_ROBORIO__
32+
ifdef: __FRC_SYSTEMCORE__
3333
HAL_FreePowerDistributionStreamData:
34-
ifdef: __FRC_ROBORIO__
34+
ifdef: __FRC_SYSTEMCORE__
3535
HAL_StopPowerDistributionStream:
36-
ifdef: __FRC_ROBORIO__
36+
ifdef: __FRC_SYSTEMCORE__
3737
classes:
3838
HAL_PowerDistributionVersion:
3939
attributes:

subprojects/robotpy-hal/semiwrap/SimDevice.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ inline_code: |
263263
return (bool)self;
264264
})
265265
.def_property_readonly("name", [](const hal::SimDevice &self) -> py::str {
266-
#ifdef __FRC_ROBORIO__
266+
#ifdef __FRC_SYSTEMCORE__
267267
return "<invalid>";
268268
#else
269269
if (!self) {
@@ -279,7 +279,7 @@ inline_code: |
279279
#endif
280280
})
281281
.def("__repr__", [](const hal::SimDevice &self) -> py::str {
282-
#ifdef __FRC_ROBORIO__
282+
#ifdef __FRC_SYSTEMCORE__
283283
return "<SimDevice (invalid)>";
284284
#else
285285
if (!self) {
@@ -312,7 +312,7 @@ inline_code: |
312312
cls_SimEnum
313313
.def_property("value", &SimEnum::Get, &SimEnum::Set)
314314
.def("__repr__", [](const SimEnum &self) -> py::str {
315-
#ifdef __FRC_ROBORIO__
315+
#ifdef __FRC_SYSTEMCORE__
316316
return "<SimEnum (invalid)>";
317317
#else
318318
if (self) {

subprojects/robotpy-wpilib/wpilib/_impl/start.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def _start(self, robot_cls: wpilib.RobotBase) -> bool:
191191
msub = ntcore.MultiSubscriber(inst, [""])
192192

193193
if not isSimulation:
194-
inst.startServer("/home/lvuser/networktables.ini")
194+
inst.startServer("/home/systemcore/networktables.ini")
195195
else:
196196
inst.startServer()
197197

subprojects/robotpy-wpilib/wpilib/cameraserver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ def launch(cls, vision_py: Optional[str] = None) -> None:
7373

7474
if vision_py:
7575
if not vision_py.startswith("/"):
76-
vision_py = "/home/lvuser/py/" + vision_py
76+
vision_py = "/home/systemcore/py/" + vision_py
7777
args.append(vision_py)
7878
hal.report(hal.tResourceType.kResourceType_PCVideoServer, 0x51)
7979
else:
8080
hal.report(hal.tResourceType.kResourceType_PCVideoServer, 0x52)
8181

8282
# We open a pipe to it so that when this process exits, it dies
8383
proc = subprocess.Popen(
84-
args, close_fds=True, stdin=subprocess.PIPE, cwd="/home/lvuser/py"
84+
args, close_fds=True, stdin=subprocess.PIPE, cwd="/home/systemcore/py"
8585
)
8686
th = threading.Thread(target=cls._monitor_child, args=(proc,))
8787
th.daemon = True

0 commit comments

Comments
 (0)