Package edu.wpi.first.networktables
Interface DoublePublisher
- All Superinterfaces:
AutoCloseable,DoubleConsumer,Publisher,PubSub
- All Known Subinterfaces:
DoubleEntry
NetworkTables Double publisher.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(double value) getTopic()Get the corresponding topic.default voidset(double value) Publish a new value using current NT time.voidset(double value, long time) Publish a new value.voidsetDefault(double value) Publish a default value.Methods inherited from interface java.util.function.DoubleConsumer
andThen
-
Method Details
-
getTopic
Get the corresponding topic. -
set
Publish a new value using current NT time.- Parameters:
value- value to publish
-
set
Publish a new value.- Parameters:
value- value to publishtime- timestamp; 0 indicates current NT time should be used
-
setDefault
Publish a default value. On reconnect, a default value will never be used in preference to a published value.- Parameters:
value- value
-
accept
- Specified by:
acceptin interfaceDoubleConsumer
-