Package org.littletonrobotics.junction
Interface LogDataReceiver
- All Known Implementing Classes:
NT4Publisher,RLOGServer,WPILOGWriter
public interface LogDataReceiver
Receives entries from the logging system during real operation or simulation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringData receivers may optionally log the current timestamp using this key. -
Method Summary
-
Field Details
-
timestampKey
Data receivers may optionally log the current timestamp using this key.- See Also:
-
-
Method Details
-
start
default void start()Called before the logging system begins reporting data. This should be used to connect to files, find network devices, start threads, etc. -
end
default void end()Called when the code shuts down cleanly. Note that this will NOT be called when the robot is powered off. -
putTable
Called every loop cycle when a new table is complete. This data can be processed immediately or queued for later.- Parameters:
table- A copy of the data to save.- Throws:
InterruptedException- If interrupted while processing.
-