From 004532dac03e98579cf19d446746f1e1921d02ce Mon Sep 17 00:00:00 2001 From: Benjamin Hall Date: Sat, 27 Jun 2026 01:39:13 -0400 Subject: [PATCH] [hal] Add Python wpistruct support for ControlWord (#9029) Both C++ and Java already have Struct support for `ControlWord`. --- hal/src/main/python/semiwrap/DriverStationTypes.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hal/src/main/python/semiwrap/DriverStationTypes.yml b/hal/src/main/python/semiwrap/DriverStationTypes.yml index b82c26b011..f807aaee44 100644 --- a/hal/src/main/python/semiwrap/DriverStationTypes.yml +++ b/hal/src/main/python/semiwrap/DriverStationTypes.yml @@ -3,6 +3,7 @@ strip_prefixes: extra_includes: - src/ds_types_fmt.h +- wpystruct.h enums: AllianceStationID: @@ -33,3 +34,6 @@ classes: IsUtility: IsUtilityEnabled: GetValue: + +inline_code: | + SetupWPyStruct(cls_ControlWord);