YAMS
Yet Another Mechanism System
Loading...
Searching...
No Matches
NetworkTablesBackends.hpp
Go to the documentation of this file.
1// Copyright (c) 2026 Yet Another Software Suite
2// SPDX-License-Identifier: LGPL-3.0-or-later
3
4#pragma once
5
6#include <memory>
7
8#include "wpi/backend/NetworkTablesTelemetryBackend.hpp"
9#include "wpi/backend/NetworkTablesTunableBackend.hpp"
10#include "wpi/nt/NetworkTableInstance.hpp"
11#include "wpi/telemetry/TelemetryRegistry.hpp"
12#include "wpi/tunables/TunableRegistry.hpp"
13
14namespace yams::telemetry {
15
30 static bool registered = [] {
31 wpi::telemetry::TelemetryRegistry::RegisterBackend(
32 "/Mechanisms", std::make_shared<wpi::backend::NetworkTablesTelemetryBackend>(
33 wpi::nt::NetworkTableInstance::GetDefault(), ""));
34 return true;
35 }();
36 (void)registered;
37}
38
44 static bool registered = [] {
45 wpi::tunables::TunableRegistry::RegisterBackend(
46 "/Mechanisms", std::make_shared<wpi::backend::NetworkTablesTunableBackend>(
47 wpi::nt::NetworkTableInstance::GetDefault(), ""));
48 return true;
49 }();
50 (void)registered;
51}
52
58 static bool registered = [] {
59 wpi::tunables::TunableRegistry::RegisterBackend(
60 "/Tuning", std::make_shared<wpi::backend::NetworkTablesTunableBackend>(
61 wpi::nt::NetworkTableInstance::GetDefault(), ""));
62 return true;
63 }();
64 (void)registered;
65}
66
67} // namespace yams::telemetry
Definition SwerveDrive.hpp:864
void EnsureMechanismsTunableBackend()
Definition NetworkTablesBackends.hpp:43
void EnsureTuningTunableBackend()
Definition NetworkTablesBackends.hpp:57
void EnsureMechanismsTelemetryBackend()
Definition NetworkTablesBackends.hpp:29