mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -301,9 +301,9 @@ void DriverStationSim::SetJoystickName(int stick, std::string_view name) {
|
||||
HALSIM_SetJoystickName(stick, &str);
|
||||
}
|
||||
|
||||
void DriverStationSim::SetGameSpecificMessage(std::string_view message) {
|
||||
void DriverStationSim::SetGameData(std::string_view message) {
|
||||
auto str = wpi::util::make_string(message);
|
||||
HALSIM_SetGameSpecificMessage(&str);
|
||||
HALSIM_SetGameDataString(&str);
|
||||
}
|
||||
|
||||
void DriverStationSim::SetEventName(std::string_view name) {
|
||||
|
||||
Reference in New Issue
Block a user