94 std::vector<TimestampedValueType>
ReadQueue();
NetworkTables Double entry.
Definition: DoubleTopic.h:159
DoubleTopic TopicType
Definition: DoubleTopic.h:163
TopicType GetTopic() const
Get the corresponding topic.
Definition: DoubleTopic.inc:66
void Unpublish()
Stops publishing the entry if it's published.
Definition: DoubleTopic.inc:70
NT_Entry GetHandle() const
Gets the native handle for the entry.
Definition: DoubleTopic.h:192
NetworkTables Double publisher.
Definition: DoubleTopic.h:110
DoublePublisher()=default
TopicType GetTopic() const
Get the corresponding topic.
Definition: DoubleTopic.inc:57
double ParamType
Definition: DoubleTopic.h:114
double ValueType
Definition: DoubleTopic.h:113
void SetDefault(ParamType value)
Publish a default value.
Definition: DoubleTopic.inc:53
void Set(ParamType value, int64_t time=0)
Publish a new value.
Definition: DoubleTopic.inc:48
NetworkTables Double subscriber.
Definition: DoubleTopic.h:29
DoubleSubscriber()=default
TopicType GetTopic() const
Get the corresponding topic.
Definition: DoubleTopic.inc:41
double ParamType
Definition: DoubleTopic.h:33
std::vector< TimestampedValueType > ReadQueue()
Get an array of all value changes since the last call to ReadQueue.
Definition: DoubleTopic.inc:37
double ValueType
Definition: DoubleTopic.h:32
ValueType Get() const
Get the last published value.
Definition: DoubleTopic.inc:18
TimestampedValueType GetAtomic() const
Get the last published value along with its timestamp If no value has been published,...
Definition: DoubleTopic.inc:27
NetworkTables Double topic.
Definition: DoubleTopic.h:210
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:81
double ValueType
Definition: DoubleTopic.h:215
DoubleTopic(NT_Topic handle)
Construct from a topic handle; recommended to use NetworkTableInstance::GetDoubleTopic() instead.
Definition: DoubleTopic.h:229
DoublePublisher PublisherType
Definition: DoubleTopic.h:213
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:95
DoubleSubscriber SubscriberType
Definition: DoubleTopic.h:212
DoubleTopic(Topic topic)
Construct from a generic topic.
Definition: DoubleTopic.h:236
double ParamType
Definition: DoubleTopic.h:216
SubscriberType Subscribe(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic.
Definition: DoubleTopic.inc:74
DoubleEntry EntryType
Definition: DoubleTopic.h:214
EntryType GetEntry(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic.
Definition: DoubleTopic.inc:102
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:109
static constexpr std::string_view kTypeString
The default type string for this topic type.
Definition: DoubleTopic.h:219
PublisherType Publish(const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.
Definition: DoubleTopic.inc:89
NetworkTables publisher.
Definition: Topic.h:351
NetworkTables subscriber.
Definition: Topic.h:296
NT_Subscriber m_subHandle
Definition: Topic.h:347
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: Topic.inc:15
Definition: AprilTagFieldLayout.h:18
NetworkTables publish/subscribe options.
Definition: ntcore_cpp.h:304
Timestamped Double.
Definition: ntcore_cpp_types.h:322