mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
[wpilib] Add function to wait for DS Connection (#5230)
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user