Class ConsoleSource.RoboRIO

java.lang.Object
org.littletonrobotics.junction.ConsoleSource.RoboRIO
All Implemented Interfaces:
AutoCloseable, ConsoleSource
Enclosing interface:
ConsoleSource

public static class ConsoleSource.RoboRIO extends Object implements ConsoleSource
Reads console data on the RIO. Saves stdout and sterr from both Java and native code, including lines logged before this class was instantiated.
  • Constructor Details

    • RoboRIO

      public RoboRIO()
      Create roboRIO console source.
  • Method Details

    • getFilePath

      protected String getFilePath()
      Returns the file path to use for logging.
      Returns:
      The file path
    • getNewData

      public String getNewData()
      Description copied from interface: ConsoleSource
      Reads all console data that has been produced since the last call to this method.
      Specified by:
      getNewData in interface ConsoleSource
      Returns:
      The console data
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception