Package org.littletonrobotics.junction
Class ConsoleSource.RoboRIO
java.lang.Object
org.littletonrobotics.junction.ConsoleSource.RoboRIO
- All Implemented Interfaces:
AutoCloseable,ConsoleSource
- Enclosing interface:
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.littletonrobotics.junction.ConsoleSource
ConsoleSource.RoboRIO, ConsoleSource.Simulator -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RoboRIO
public RoboRIO()Create roboRIO console source.
-
-
Method Details
-
getFilePath
Returns the file path to use for logging.- Returns:
- The file path
-
getNewData
Description copied from interface:ConsoleSourceReads all console data that has been produced since the last call to this method.- Specified by:
getNewDatain interfaceConsoleSource- Returns:
- The console data
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-