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

@@ -6,15 +6,15 @@
#include "wpi/system/Errors.hpp"
using namespace frc;
using namespace wpi;
TimesliceRobot::TimesliceRobot(units::second_t robotPeriodicAllocation,
units::second_t controllerPeriod)
TimesliceRobot::TimesliceRobot(wpi::units::second_t robotPeriodicAllocation,
wpi::units::second_t controllerPeriod)
: m_nextOffset{robotPeriodicAllocation},
m_controllerPeriod{controllerPeriod} {}
void TimesliceRobot::Schedule(std::function<void()> func,
units::second_t allocation) {
wpi::units::second_t allocation) {
if (m_nextOffset + allocation > m_controllerPeriod) {
throw FRC_MakeError(err::Error,
"Function scheduled at offset {} with allocation {} "