[hal,wpilib] Switch to new game data (#8584)

Game data is now limited to 8 bytes, and comes through the UDP packets.
This commit is contained in:
Thad House
2026-02-06 21:38:15 -08:00
committed by GitHub
parent ac45c694f3
commit 85adbf990e
45 changed files with 820 additions and 695 deletions

View File

@@ -43,3 +43,4 @@ functions:
HAL_ObserveUserProgram:
GetControlWord:
GetUncachedControlWord:
HAL_GetGameData:

View File

@@ -45,8 +45,6 @@ classes:
matchType:
matchNumber:
replayNumber:
gameSpecificMessage:
gameSpecificMessageSize:
HAL_JoystickTouchpadFinger:
attributes:
down:
@@ -93,6 +91,9 @@ classes:
IsTest:
IsTestEnabled:
GetValue:
HAL_GameData:
attributes:
gameData:
functions:
HAL_MakeControlWord:
HAL_ControlWord_GetOpModeHash:

View File

@@ -68,6 +68,11 @@ functions:
HALSIM_CancelMatchInfoCallback:
HALSIM_GetMatchInfo:
HALSIM_SetMatchInfo:
HALSIM_RegisterGameDataCallback:
ignore: true
HALSIM_CancelGameDataCallback:
HALSIM_GetGameData:
HALSIM_SetGameData:
HALSIM_SetJoystickButton:
HALSIM_SetJoystickAxis:
HALSIM_SetJoystickPOV:
@@ -80,11 +85,11 @@ functions:
auto s = wpi::util::make_string(sv);
HALSIM_SetJoystickName(stick, &s);
}
HALSIM_SetGameSpecificMessage:
HALSIM_SetGameDataString:
cpp_code: |
[](std::string_view sv) {
auto s = wpi::util::make_string(sv);
HALSIM_SetGameSpecificMessage(&s);
HALSIM_SetGameDataString(&s);
}
HALSIM_SetEventName:
cpp_code: |