Class WPILOGReader

java.lang.Object
org.littletonrobotics.junction.wpilog.WPILOGReader
All Implemented Interfaces:
LogReplaySource

public class WPILOGReader extends Object implements LogReplaySource
Replays log values from a WPILOG file.
  • Constructor Details

    • WPILOGReader

      public WPILOGReader(String filename)
      Creates a new WPILOGReader.
      Parameters:
      filename - The log filename to read.
  • Method Details

    • start

      public void start()
      Description copied from interface: LogReplaySource
      Called before the logging system begins reporting data. This should be used to connect to files, find network devices, start threads, etc.
      Specified by:
      start in interface LogReplaySource
    • updateTable

      public boolean updateTable(LogTable table)
      Description copied from interface: LogReplaySource
      Called every loop cycle to get the next set of data.
      Specified by:
      updateTable in interface LogReplaySource
      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.