94 std::vector<TimestampedValueType>
ReadQueue();
NetworkTables Float entry.
Definition: FloatTopic.h:159
NT_Entry GetHandle() const
Gets the native handle for the entry.
Definition: FloatTopic.h:192
void Unpublish()
Stops publishing the entry if it's published.
Definition: FloatTopic.inc:70
TopicType GetTopic() const
Get the corresponding topic.
Definition: FloatTopic.inc:66
FloatTopic TopicType
Definition: FloatTopic.h:163
NetworkTables Float publisher.
Definition: FloatTopic.h:110
float ParamType
Definition: FloatTopic.h:114
TopicType GetTopic() const
Get the corresponding topic.
Definition: FloatTopic.inc:57
void Set(ParamType value, int64_t time=0)
Publish a new value.
Definition: FloatTopic.inc:48
void SetDefault(ParamType value)
Publish a default value.
Definition: FloatTopic.inc:53
float ValueType
Definition: FloatTopic.h:113
NetworkTables Float subscriber.
Definition: FloatTopic.h:29
std::vector< TimestampedValueType > ReadQueue()
Get an array of all value changes since the last call to ReadQueue.
Definition: FloatTopic.inc:37
float ValueType
Definition: FloatTopic.h:32
ValueType Get() const
Get the last published value.
Definition: FloatTopic.inc:18
TimestampedValueType GetAtomic() const
Get the last published value along with its timestamp If no value has been published,...
Definition: FloatTopic.inc:27
FloatSubscriber()=default
TopicType GetTopic() const
Get the corresponding topic.
Definition: FloatTopic.inc:41
float ParamType
Definition: FloatTopic.h:33
NetworkTables Float topic.
Definition: FloatTopic.h:210
FloatSubscriber SubscriberType
Definition: FloatTopic.h:212
float ParamType
Definition: FloatTopic.h:216
static constexpr std::string_view kTypeString
The default type string for this topic type.
Definition: FloatTopic.h:219
EntryType GetEntryEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic, with specific type string.
Definition: FloatTopic.inc:109
FloatEntry EntryType
Definition: FloatTopic.h:214
SubscriberType SubscribeEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic, with specific type string.
Definition: FloatTopic.inc:81
EntryType GetEntry(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic.
Definition: FloatTopic.inc:102
SubscriberType Subscribe(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic.
Definition: FloatTopic.inc:74
PublisherType PublishEx(std::string_view typeString, const wpi::json &properties, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic, with type string and initial properties.
Definition: FloatTopic.inc:95
PublisherType Publish(const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.
Definition: FloatTopic.inc:89
FloatTopic(Topic topic)
Construct from a generic topic.
Definition: FloatTopic.h:236
FloatPublisher PublisherType
Definition: FloatTopic.h:213
FloatTopic(NT_Topic handle)
Construct from a topic handle; recommended to use NetworkTableInstance::GetFloatTopic() instead.
Definition: FloatTopic.h:229
float ValueType
Definition: FloatTopic.h:215
NetworkTables publisher.
Definition: Topic.h:345
NetworkTables subscriber.
Definition: Topic.h:290
NT_Subscriber m_subHandle
Definition: Topic.h:341
NetworkTables Topic.
Definition: Topic.h:30
a class to store JSON values
Definition: json.h:2655
basic_string_view< char > string_view
Definition: core.h:520
NT_Handle NT_Topic
Definition: ntcore_c.h:38
NT_Handle NT_Subscriber
Definition: ntcore_c.h:39
NT_Handle NT_Publisher
Definition: ntcore_c.h:40
NT_Handle NT_Entry
Definition: ntcore_c.h:33
constexpr PubSubOptions kDefaultPubSubOptions
Default publish/subscribe options.
Definition: ntcore_cpp.h:381
::int64_t int64_t
Definition: Meta.h:59
NetworkTables (ntcore) namespace.
Definition: ntcore_cpp.h:35
/file This file defines the SmallVector class.
Definition: AprilTagFieldLayout.h:18
NetworkTables publish/subscribe options.
Definition: ntcore_cpp.h:304
Timestamped Float.
Definition: ntcore_cpp_types.h:224