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

@@ -10,12 +10,12 @@
#include "wpi/util/StringExtras.hpp"
using namespace glass;
using namespace wpi::glass;
NTCommandSchedulerModel::NTCommandSchedulerModel(std::string_view path)
: NTCommandSchedulerModel(nt::NetworkTableInstance::GetDefault(), path) {}
: NTCommandSchedulerModel(wpi::nt::NetworkTableInstance::GetDefault(), path) {}
NTCommandSchedulerModel::NTCommandSchedulerModel(nt::NetworkTableInstance inst,
NTCommandSchedulerModel::NTCommandSchedulerModel(wpi::nt::NetworkTableInstance inst,
std::string_view path)
: m_inst{inst},
m_name{inst.GetStringTopic(fmt::format("{}/.name", path)).Subscribe("")},
@@ -25,7 +25,7 @@ NTCommandSchedulerModel::NTCommandSchedulerModel(nt::NetworkTableInstance inst,
inst.GetIntegerArrayTopic(fmt::format("{}/Ids", path)).Subscribe({})},
m_cancel{
inst.GetIntegerArrayTopic(fmt::format("{}/Cancel", path)).Publish()},
m_nameValue{wpi::rsplit(path, '/').second} {}
m_nameValue{wpi::util::rsplit(path, '/').second} {}
void NTCommandSchedulerModel::CancelCommand(size_t index) {
if (index < m_idsValue.size()) {