Class WPILOGReader
java.lang.Object
org.littletonrobotics.junction.wpilog.WPILOGReader
- All Implemented Interfaces:
LogReplaySource
Replays log values from a WPILOG file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstart()Called before the logging system begins reporting data.booleanupdateTable(LogTable table) Called every loop cycle to get the next set of data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.littletonrobotics.junction.LogReplaySource
end
-
Constructor Details
-
WPILOGReader
Creates a new WPILOGReader.- Parameters:
filename- The log filename to read.
-
-
Method Details
-
start
public void start()Description copied from interface:LogReplaySourceCalled before the logging system begins reporting data. This should be used to connect to files, find network devices, start threads, etc.- Specified by:
startin interfaceLogReplaySource
-
updateTable
Description copied from interface:LogReplaySourceCalled every loop cycle to get the next set of data.- Specified by:
updateTablein interfaceLogReplaySource- Parameters:
table- A reference to the current data table, to be updated with new data (including a timestamp).- Returns:
- A boolean indicating whether the replay should continue.
-