mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilib] Deprecate getInstance() in favor of static functions (#3440)
Co-authored-by: Noam Zaks <imnoamzaks@gmail.com>
This commit is contained in:
@@ -40,12 +40,12 @@ class TestEnvironment : public testing::Environment {
|
||||
// station returns that the robot is enabled, to ensure that tests will be
|
||||
// able to run on the hardware.
|
||||
HAL_ObserveUserProgramStarting();
|
||||
frc::LiveWindow::GetInstance()->SetEnabled(false);
|
||||
frc::LiveWindow::SetEnabled(false);
|
||||
|
||||
fmt::print("Started coms\n");
|
||||
|
||||
int enableCounter = 0;
|
||||
while (!frc::DriverStation::GetInstance().IsEnabled()) {
|
||||
while (!frc::DriverStation::IsEnabled()) {
|
||||
if (enableCounter > 50) {
|
||||
// Robot did not enable properly after 5 seconds.
|
||||
// Force exit
|
||||
|
||||
Reference in New Issue
Block a user