SCRIPT namespace replacements

This commit is contained in:
PJ Reiniger
2025-11-07 20:00:05 -05:00
committed by Peter Johnson
parent ae6c043632
commit 9aca8e0fd6
2622 changed files with 22275 additions and 22275 deletions

View File

@@ -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();
}