HAND FIX: Fix robotpy yaml files

This commit is contained in:
PJ Reiniger
2025-11-07 19:58:22 -05:00
committed by Peter Johnson
parent d3da30d53a
commit cf711a125e
21 changed files with 323 additions and 47 deletions

View File

@@ -41,8 +41,6 @@ packages = ["hal"]
[tool.semiwrap]
update_init = []
scan_headers_ignore = [
"hal/ChipObject.h",
"hal/DMA.h",
"wpi/hal/Errors.h",
"wpi/hal/HAL.h",
"wpi/hal/IMU.h",
@@ -51,8 +49,6 @@ scan_headers_ignore = [
"wpi/hal/Types.h",
"wpi/hal/Value.h",
"hal/cpp/SerialHelper.h",
"hal/cpp/UnsafeDIO.h",
"wpi/hal/cpp/fpga_clock.h",
"wpi/hal/handles/DigitalHandleResource.h",
@@ -62,15 +58,11 @@ scan_headers_ignore = [
"wpi/hal/handles/LimitedHandleResource.h",
"wpi/hal/handles/UnlimitedHandleResource.h",
"hal/proto/*",
"hal/roborio/HMB.h",
"hal/roborio/InterruptManager.h",
"wpi/hal/proto/*",
"wpi/hal/simulation/CanData.h",
"wpi/hal/simulation/I2CData.h",
"wpi/hal/simulation/NotifyListener.h",
"hal/simulation/SPIData.h",
"wpi/hal/simulation/SimCallbackRegistry.h",
"wpi/hal/simulation/SimDataValue.h",

View File

@@ -26,7 +26,6 @@ functions:
WPI_FreeString(&name);
return sname;
}
HAL_GetJoystickAxisType:
HAL_SetJoystickOutputs:
HAL_GetMatchTime:
HAL_GetOutputsEnabled:

View File

@@ -21,27 +21,24 @@ classes:
fmsAttached:
dsAttached:
control_reserved:
watchdogEnabled:
HAL_JoystickAxes:
attributes:
count:
axes:
raw:
available:
HAL_JoystickPOVs:
attributes:
count:
povs:
available:
HAL_JoystickButtons:
attributes:
buttons:
count:
available:
HAL_JoystickDescriptor:
attributes:
type:
name:
axisCount:
axisTypes:
buttonCount:
povCount:
isGamepad:
HAL_MatchInfo:
attributes:

View File

@@ -77,10 +77,6 @@ functions:
HALSIM_SetJoystickAxis:
HALSIM_SetJoystickPOV:
HALSIM_SetJoystickButtonsValue:
HALSIM_SetJoystickAxisCount:
HALSIM_SetJoystickPOVCount:
HALSIM_SetJoystickButtonCount:
HALSIM_GetJoystickCounts:
HALSIM_SetJoystickType:
HALSIM_SetJoystickName:
cpp_code: |
@@ -88,7 +84,6 @@ functions:
auto s = wpi::make_string(sv);
HALSIM_SetJoystickName(stick, &s);
}
HALSIM_SetJoystickAxisType:
HALSIM_SetGameSpecificMessage:
cpp_code: |
[](std::string_view sv) {
@@ -111,3 +106,7 @@ functions:
HALSIM_CancelDriverStationNewDataCallback:
HALSIM_NotifyDriverStationNewData:
HALSIM_SetJoystickIsGamepad:
HALSIM_SetJoystickAxesAvailable:
HALSIM_SetJoystickPOVsAvailable:
HALSIM_SetJoystickButtonsAvailable:
HALSIM_GetJoystickAvailables: