Still a java newbie, despite my best efforts. So - we’re using print statements that show up in the terminal window when we run the simulator. We’re using them to verify entry / exit of loops and state machines etc.
I thought I would see these same things echoed to the drive station console, but I do not. Is this the incorrect command to use?
Next - Is there a way to store the drive station console, or does it get stored, for each match?
Thanks!
Just to confirm, you’re using print statements like this?
There’s a few ways to view console output from print statements, all covered here: Viewing Console Output — FIRST Robotics Competition documentation
They should show up in the Driver Station Message Console window (click the gear icon). There is a filter to show either just error/warning messages or also print messages, so you may need to adjust the filter.
While errors/warnings are stored in the DS Log and can be viewed via the log viewer, I’m not sure if that applies to print statements as well. In general, you’re better off using data logs to log messages (and other data) to a data log file on the robot, which can then be downloaded for conversion to CSV or offline analysis with tools like AdvantageScope.
Peter, where would I find the filter setting? They’re definitely not showing up when I’m running the simulator with the actual driver station.
We are using this command right now:
System.out.println(“Operator Command ShooterModeAmp: Case 1 Complete”);
Yep, that’s the console (driver station) that I’m using - just not getting any output.
They won’t show up in the DS in simulation, only with a real robot.