Package edu.wpi.first.networktables
Interface FloatPublisher
- All Superinterfaces:
AutoCloseable
,FloatConsumer
,Publisher
,PubSub
- All Known Subinterfaces:
FloatEntry
public interface FloatPublisher extends Publisher, FloatConsumer
NetworkTables Float publisher.
-
Method Summary
Modifier and Type Method Description default void
accept(float value)
Performs this operation on the given argument.FloatTopic
getTopic()
Get the corresponding topic.default void
set(float value)
Publish a new value using current NT time.void
set(float value, long time)
Publish a new value.void
setDefault(float value)
Publish a default value.
-
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
Description copied from interface:FloatConsumer
Performs this operation on the given argument.- Specified by:
accept
in interfaceFloatConsumer
- Parameters:
value
- the input argument
-