7#include <networktables/NetworkTableInstance.h>
34 std::function<
void(
double)> onUpdateCallback,
35 const double defaultValue = 0.0,
36 const bool forceUpdate =
true);
Subscribes to Network Tables entry updates and calls a specified callback to use the new value.
Definition: nt_subscriber.h:16
void AddMonitor(const std::string &keyName, std::function< void(double)> onUpdateCallback, const double defaultValue=0.0, const bool forceUpdate=true)
Register a new listener for the specified key and send values to callback on update.
Definition: nt_subscriber.cpp:14
std::shared_ptr< nt::NetworkTable > m_pntTable
Table with monitored keys.
Definition: nt_subscriber.h:39
Definition: swap_controllers_command.h:12