[wpilib] Remove Driverstation.waitForDsConnection (#8288)

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
This commit is contained in:
Jade
2025-10-23 09:43:29 +08:00
committed by GitHub
parent 7a2a982e66
commit 8992dcdc99
3 changed files with 0 additions and 49 deletions

View File

@@ -575,20 +575,6 @@ std::optional<int> DriverStation::GetLocation() {
}
}
bool DriverStation::WaitForDsConnection(units::second_t timeout) {
wpi::Event event{true, false};
HAL_ProvideNewDataEventHandle(event.GetHandle());
bool result = false;
if (timeout == 0_s) {
result = wpi::WaitForObject(event.GetHandle());
} else {
result = wpi::WaitForObject(event.GetHandle(), timeout.value(), nullptr);
}
HAL_RemoveNewDataEventHandle(event.GetHandle());
return result;
}
units::second_t DriverStation::GetMatchTime() {
int32_t status = 0;
return units::second_t{HAL_GetMatchTime(&status)};