mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -8,7 +8,7 @@
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/util/Synchronization.h"
|
||||
|
||||
using namespace frc::internal;
|
||||
using namespace wpi::internal;
|
||||
|
||||
DriverStationModeThread::DriverStationModeThread() {
|
||||
m_keepAlive = true;
|
||||
@@ -39,13 +39,13 @@ void DriverStationModeThread::InTest(bool entering) {
|
||||
}
|
||||
|
||||
void DriverStationModeThread::Run() {
|
||||
wpi::Event event{false, false};
|
||||
wpi::util::Event event{false, false};
|
||||
HAL_ProvideNewDataEventHandle(event.GetHandle());
|
||||
|
||||
while (m_keepAlive.load()) {
|
||||
bool timedOut = false;
|
||||
wpi::WaitForObject(event.GetHandle(), 0.1, &timedOut);
|
||||
frc::DriverStation::RefreshData();
|
||||
wpi::util::WaitForObject(event.GetHandle(), 0.1, &timedOut);
|
||||
wpi::DriverStation::RefreshData();
|
||||
if (m_userInDisabled) {
|
||||
HAL_ObserveUserProgramDisabled();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user