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

@@ -12,9 +12,9 @@
#include "wpi/system/Errors.hpp"
#include "wpi/util/print.hpp"
using namespace frc;
using namespace wpi;
IterativeRobotBase::IterativeRobotBase(units::second_t period)
IterativeRobotBase::IterativeRobotBase(wpi::units::second_t period)
: m_period(period),
m_watchdog(period, [this] { PrintLoopOverrunMessage(); }) {}
@@ -33,7 +33,7 @@ void IterativeRobotBase::TestInit() {}
void IterativeRobotBase::RobotPeriodic() {
static bool firstRun = true;
if (firstRun) {
wpi::print("Default {}() method... Override me!\n", __FUNCTION__);
wpi::util::print("Default {}() method... Override me!\n", __FUNCTION__);
firstRun = false;
}
}
@@ -41,7 +41,7 @@ void IterativeRobotBase::RobotPeriodic() {
void IterativeRobotBase::SimulationPeriodic() {
static bool firstRun = true;
if (firstRun) {
wpi::print("Default {}() method... Override me!\n", __FUNCTION__);
wpi::util::print("Default {}() method... Override me!\n", __FUNCTION__);
firstRun = false;
}
}
@@ -49,7 +49,7 @@ void IterativeRobotBase::SimulationPeriodic() {
void IterativeRobotBase::DisabledPeriodic() {
static bool firstRun = true;
if (firstRun) {
wpi::print("Default {}() method... Override me!\n", __FUNCTION__);
wpi::util::print("Default {}() method... Override me!\n", __FUNCTION__);
firstRun = false;
}
}
@@ -57,7 +57,7 @@ void IterativeRobotBase::DisabledPeriodic() {
void IterativeRobotBase::AutonomousPeriodic() {
static bool firstRun = true;
if (firstRun) {
wpi::print("Default {}() method... Override me!\n", __FUNCTION__);
wpi::util::print("Default {}() method... Override me!\n", __FUNCTION__);
firstRun = false;
}
}
@@ -65,7 +65,7 @@ void IterativeRobotBase::AutonomousPeriodic() {
void IterativeRobotBase::TeleopPeriodic() {
static bool firstRun = true;
if (firstRun) {
wpi::print("Default {}() method... Override me!\n", __FUNCTION__);
wpi::util::print("Default {}() method... Override me!\n", __FUNCTION__);
firstRun = false;
}
}
@@ -73,7 +73,7 @@ void IterativeRobotBase::TeleopPeriodic() {
void IterativeRobotBase::TestPeriodic() {
static bool firstRun = true;
if (firstRun) {
wpi::print("Default {}() method... Override me!\n", __FUNCTION__);
wpi::util::print("Default {}() method... Override me!\n", __FUNCTION__);
firstRun = false;
}
}
@@ -90,7 +90,7 @@ void IterativeRobotBase::SetNetworkTablesFlushEnabled(bool enabled) {
m_ntFlushEnabled = enabled;
}
units::second_t IterativeRobotBase::GetPeriod() const {
wpi::units::second_t IterativeRobotBase::GetPeriod() const {
return m_period;
}
@@ -183,7 +183,7 @@ void IterativeRobotBase::LoopFunc() {
// Flush NetworkTables
if (m_ntFlushEnabled) {
nt::NetworkTableInstance::GetDefault().FlushLocal();
wpi::nt::NetworkTableInstance::GetDefault().FlushLocal();
}
// Warn on loop time overruns