[wpilib] Add function to wait for DS Connection (#5230)

This commit is contained in:
Thad House
2023-07-10 09:53:16 -07:00
committed by GitHub
parent a6463ed761
commit b250a03944
3 changed files with 49 additions and 0 deletions

View File

@@ -296,6 +296,14 @@ class DriverStation final {
*/
static int GetLocation();
/**
* Wait for a DS connection.
*
* @param timeout timeout in seconds. 0 for infinite.
* @return true if connected, false if timeout
*/
static bool WaitForDsConnection(units::second_t timeout);
/**
* Return the approximate match time.
*