Class PacketSubscriber<T>
java.lang.Object
org.photonvision.common.networktables.PacketSubscriber<T>
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPacketSubscriber
(RawSubscriber subscriber, PacketSerde<T> serde) Create a PacketSubscriber -
Method Summary
-
Field Details
-
subscriber
-
-
Constructor Details
-
PacketSubscriber
Create a PacketSubscriber- Parameters:
subscriber
- NT subscriber. Set pollStorage to 1 to make get() fasterserde
- How we convert raw to actual things
-
-
Method Details
-
get
Get the latest value sent over NT. If the value has never been set, returns the provided default -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getInterfaceUUID
-
getAllChanges
-