Skip to content

Make yaml files more similar to semiwrap create-yaml outputs #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: 2027
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion subprojects/robotpy-apriltag/semiwrap/AprilTag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ classes:
ID:
pose:
methods:
operator==:
Generate36h11AprilTagImage:
ignore: true
Generate16h5AprilTagImage:
ignore: true
operator==:
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ classes:
enums:
OriginPosition:
methods:
LoadField:
AprilTagFieldLayout:
overloads:
'':
std::string_view:
std::vector<AprilTag>, units::meter_t, units::meter_t:
LoadField:
GetFieldLength:
GetFieldWidth:
GetTags:
Expand Down
6 changes: 3 additions & 3 deletions subprojects/robotpy-cscore/semiwrap/CameraServer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classes:
methods:
StartAutomaticCapture:
overloads:
"":
'':
int:
std::string_view, int:
std::string_view, std::string_view:
Expand All @@ -40,7 +40,7 @@ classes:
AddSwitchedCamera:
GetVideo:
overloads:
"":
'':
const cs::VideoSource&:
std::string_view:
PutVideo:
Expand All @@ -52,7 +52,7 @@ classes:
RemoveServer:
GetServer:
overloads:
"":
'':
std::string_view:
AddCamera:
RemoveCamera:
Expand Down
4 changes: 2 additions & 2 deletions subprojects/robotpy-cscore/semiwrap/cscore_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ classes:
methods:
VideoMode:
overloads:
"":
'':
PixelFormat, int, int, int:
operator==:
operator!=:
Expand Down Expand Up @@ -296,7 +296,7 @@ classes:
methods:
RawEvent:
overloads:
"":
'':
ignore: true
RawEvent::Kind:
ignore: true
Expand Down
4 changes: 2 additions & 2 deletions subprojects/robotpy-cscore/semiwrap/cscore_cv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ classes:
methods:
CvSource:
overloads:
"":
'':
ignore: true
std::string_view, const VideoMode&:
std::string_view, VideoMode::PixelFormat, int, int, int:
Expand All @@ -40,7 +40,7 @@ classes:
methods:
CvSink:
overloads:
"":
'':
ignore: true
std::string_view:
std::string_view, std::function<void (uint64_t time)>:
Expand Down
8 changes: 4 additions & 4 deletions subprojects/robotpy-cscore/semiwrap/cscore_oo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ classes:
methods:
VideoCamera:
overloads:
"":
'':
CS_Source:
SetBrightness:
GetBrightness:
Expand All @@ -83,7 +83,7 @@ classes:
methods:
UsbCamera:
overloads:
"":
'':
std::string_view, int:
std::string_view, std::string_view:
EnumerateUsbCameras:
Expand Down Expand Up @@ -168,7 +168,7 @@ classes:
methods:
MjpegServer:
overloads:
"":
'':
std::string_view, std::string_view, int:
std::string_view, int:
GetListenAddress:
Expand All @@ -194,5 +194,5 @@ classes:
methods:
VideoListener:
overloads:
"":
'':
std::function<void (const VideoEvent& event)>, int, bool:
2 changes: 0 additions & 2 deletions subprojects/robotpy-cscore/semiwrap/cscore_runloop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

functions:
RunMainRunLoop:
RunMainRunLoopTimeout:
Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/AddressableLED.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
6 changes: 2 additions & 4 deletions subprojects/robotpy-hal/semiwrap/AddressableLEDTypes.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---

strip_prefixes:
- HAL_

classes:
HAL_AddressableLEDData:
attributes:
b:
g:
r:
g:
b:
padding:
ignore: true
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/AnalogAccumulator.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/AnalogInput.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
4 changes: 1 addition & 3 deletions subprojects/robotpy-hal/semiwrap/CAN.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
---

strip_prefixes:
- HAL_

functions:
HAL_CAN_SendMessage:
HAL_CAN_ReceiveMessage:
HAL_CAN_GetCANStatus:
HAL_CAN_OpenStreamSession:
HAL_CAN_CloseStreamSession:
HAL_CAN_ReadStreamSession:
ignore: true # TODO: an array of messages
HAL_CAN_GetCANStatus:
classes:
HAL_CANStreamMessage:
attributes:
Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/CANAPI.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
4 changes: 1 addition & 3 deletions subprojects/robotpy-hal/semiwrap/CANAPITypes.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand All @@ -17,4 +15,4 @@ classes:
HAL_CANReceiveMessage:
attributes:
timeStamp:
message:
message:
1 change: 0 additions & 1 deletion subprojects/robotpy-hal/semiwrap/CTREPCM.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/Constants.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/Counter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/DIO.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/DriverStation.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
4 changes: 2 additions & 2 deletions subprojects/robotpy-hal/semiwrap/DriverStationTypes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ extra_includes:
enums:
HAL_AllianceStationID:
value_prefix: HAL_AllianceStationID
HAL_JoystickPOV:
value_prefix: HAL_JoystickPOV
HAL_MatchType:
value_prefix: HAL_kMatchType
HAL_JoystickPOV:
value_prefix: HAL_JoystickPOV
classes:
HAL_ControlWord:
attributes:
Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/DutyCycle.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/Encoder.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/Extensions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/HALBase.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/HandlesInternal.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/I2C.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/I2CTypes.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/LEDs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

enums:
HAL_RadioLEDState:
functions:
Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/Main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
4 changes: 1 addition & 3 deletions subprojects/robotpy-hal/semiwrap/Notifier.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
---

strip_prefixes:
- HAL_

functions:
HAL_InitializeNotifier:
HAL_SetNotifierThreadPriority:
HAL_SetNotifierName:
HAL_StopNotifier:
HAL_CleanNotifier:
HAL_UpdateNotifierAlarm:
HAL_CancelNotifierAlarm:
HAL_WaitForNotifierAlarm:
HAL_SetNotifierThreadPriority:
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/PWM.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/Ports.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/Power.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
1 change: 0 additions & 1 deletion subprojects/robotpy-hal/semiwrap/PowerDistribution.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
strip_prefixes:
- HAL_

Expand Down
3 changes: 1 addition & 2 deletions subprojects/robotpy-hal/semiwrap/REVPH.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
strip_prefixes:
- HAL_

Expand Down Expand Up @@ -78,6 +77,6 @@ classes:
brownout:
canWarning:
canBusOff:
hasReset:
hardwareFault:
firmwareFault:
hasReset:
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/SerialPort.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
4 changes: 2 additions & 2 deletions subprojects/robotpy-hal/semiwrap/SimDevice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ classes:
GetName:
CreateValue:
ignore: true
CreateInt:
CreateLong:
CreateDouble:
CreateEnum:
overloads:
Expand Down Expand Up @@ -180,8 +182,6 @@ classes:
}

CreateBoolean:
CreateInt:
CreateLong:

inline_code: |

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/Threads.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/UsageReporting.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HAL_

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HALSIM_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/simulation/AnalogInData.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HALSIM_

Expand Down
2 changes: 0 additions & 2 deletions subprojects/robotpy-hal/semiwrap/simulation/CTREPCMData.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---

strip_prefixes:
- HALSIM_

Expand Down
Loading
Loading