mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
ae6bdc9d25
commit
2109161534
@@ -13,10 +13,11 @@
|
||||
using namespace wpi::glass;
|
||||
|
||||
NTCommandSchedulerModel::NTCommandSchedulerModel(std::string_view path)
|
||||
: NTCommandSchedulerModel(wpi::nt::NetworkTableInstance::GetDefault(), path) {}
|
||||
: NTCommandSchedulerModel(wpi::nt::NetworkTableInstance::GetDefault(),
|
||||
path) {}
|
||||
|
||||
NTCommandSchedulerModel::NTCommandSchedulerModel(wpi::nt::NetworkTableInstance inst,
|
||||
std::string_view path)
|
||||
NTCommandSchedulerModel::NTCommandSchedulerModel(
|
||||
wpi::nt::NetworkTableInstance inst, std::string_view path)
|
||||
: m_inst{inst},
|
||||
m_name{inst.GetStringTopic(fmt::format("{}/.name", path)).Subscribe("")},
|
||||
m_commands{inst.GetStringArrayTopic(fmt::format("{}/Names", path))
|
||||
|
||||
Reference in New Issue
Block a user