97 std::vector<TimestampedValueType>
ReadQueue();
NetworkTables Double entry.
Definition: DoubleTopic.h:162
DoubleTopic TopicType
Definition: DoubleTopic.h:166
TopicType GetTopic() const
Get the corresponding topic.
Definition: DoubleTopic.inc:70
void Unpublish()
Stops publishing the entry if it's published.
Definition: DoubleTopic.inc:74
NT_Entry GetHandle() const
Gets the native handle for the entry.
Definition: DoubleTopic.h:195
NetworkTables Double publisher.
Definition: DoubleTopic.h:113
DoublePublisher()=default
TopicType GetTopic() const
Get the corresponding topic.
Definition: DoubleTopic.inc:61
double ParamType
Definition: DoubleTopic.h:117
double ValueType
Definition: DoubleTopic.h:116
void SetDefault(ParamType value)
Publish a default value.
Definition: DoubleTopic.inc:57
void Set(ParamType value, int64_t time=0)
Publish a new value.
Definition: DoubleTopic.inc:52
NetworkTables Double subscriber.
Definition: DoubleTopic.h:32
DoubleSubscriber()=default
TopicType GetTopic() const
Get the corresponding topic.
Definition: DoubleTopic.inc:45
double ParamType
Definition: DoubleTopic.h:36
std::vector< TimestampedValueType > ReadQueue()
Get an array of all value changes since the last call to ReadQueue.
Definition: DoubleTopic.inc:41
double ValueType
Definition: DoubleTopic.h:35
ValueType Get() const
Get the last published value.
Definition: DoubleTopic.inc:22
TimestampedValueType GetAtomic() const
Get the last published value along with its timestamp If no value has been published,...
Definition: DoubleTopic.inc:31
NetworkTables Double topic.
Definition: DoubleTopic.h:213
SubscriberType SubscribeEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic, with specific type string.
Definition: DoubleTopic.inc:85
double ValueType
Definition: DoubleTopic.h:218
DoubleTopic(NT_Topic handle)
Construct from a topic handle; recommended to use NetworkTableInstance::GetDoubleTopic() instead.
Definition: DoubleTopic.h:232
DoublePublisher PublisherType
Definition: DoubleTopic.h:216
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: DoubleTopic.inc:99
DoubleSubscriber SubscriberType
Definition: DoubleTopic.h:215
DoubleTopic(Topic topic)
Construct from a generic topic.
Definition: DoubleTopic.h:239
double ParamType
Definition: DoubleTopic.h:219
SubscriberType Subscribe(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic.
Definition: DoubleTopic.inc:78
DoubleEntry EntryType
Definition: DoubleTopic.h:217
EntryType GetEntry(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic.
Definition: DoubleTopic.inc:106
EntryType GetEntryEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic, with specific type string.
Definition: DoubleTopic.inc:113
static constexpr std::string_view kTypeString
The default type string for this topic type.
Definition: DoubleTopic.h:222
PublisherType Publish(const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.
Definition: DoubleTopic.inc:93
NetworkTables publisher.
Definition: Topic.h:364
NetworkTables subscriber.
Definition: Topic.h:309
NT_Subscriber m_subHandle
Definition: Topic.h:360
NetworkTables Topic.
Definition: Topic.h:28
basic_string_view< char > string_view
Definition: core.h:501
NT_Handle NT_Topic
Definition: ntcore_c.h:40
NT_Handle NT_Subscriber
Definition: ntcore_c.h:41
NT_Handle NT_Publisher
Definition: ntcore_c.h:42
NT_Handle NT_Entry
Definition: ntcore_c.h:35
Timestamped< double > TimestampedDouble
Timestamped Double.
Definition: ntcore_cpp_types.h:292
constexpr PubSubOptions kDefaultPubSubOptions
Default publish/subscribe options.
Definition: ntcore_cpp.h:390
NetworkTables (ntcore) namespace.
Definition: ntcore_cpp.h:36
Definition: ntcore_cpp.h:26
NetworkTables publish/subscribe options.
Definition: ntcore_cpp.h:305
Timestamped value.
Definition: ntcore_cpp_types.h:30