Class NetworkTablesTransport
java.lang.Object
frc.spectrumLib.params.NetworkTablesTransport
- All Implemented Interfaces:
ParamTransport
Publishes params at
<prefix>/<group>/<key> on NetworkTables through AdvantageKit's
LoggedNetwork inputs, so the dashboard's requests are in the log too.-
Nested Class Summary
Nested classes/interfaces inherited from interface ParamTransport
ParamTransport.LiveValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPublishes a button (a Boolean the dashboard sets true; the code sets it back).Publishes a param with its current value.
-
Constructor Details
-
NetworkTablesTransport
- Parameters:
prefix- NT path the params go under, e.g./Tuning
-
-
Method Details
-
publish
Description copied from interface:ParamTransportPublishes a param with its current value. Called on the main thread.- Specified by:
publishin interfaceParamTransport
-
button
Description copied from interface:ParamTransportPublishes a button (a Boolean the dashboard sets true; the code sets it back).- Specified by:
buttonin interfaceParamTransport
-