File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929import org .littletonrobotics .junction .networktables .NT4Publisher ;
3030import org .littletonrobotics .junction .wpilog .WPILOGReader ;
3131import org .littletonrobotics .junction .wpilog .WPILOGWriter ;
32+ import org .littletonrobotics .urcl .URCL ;
3233
3334/**
3435 * The VM is configured to automatically run this class, and to call the functions corresponding to
@@ -55,17 +56,13 @@ public Robot() {
5556 Logger .recordMetadata ("GitSHA" , BuildConstants .GIT_SHA );
5657 Logger .recordMetadata ("GitDate" , BuildConstants .GIT_DATE );
5758 Logger .recordMetadata ("GitBranch" , BuildConstants .GIT_BRANCH );
58- switch (BuildConstants .DIRTY ) {
59- case 0 :
60- Logger .recordMetadata ("GitDirty" , "All changes committed" );
61- break ;
62- case 1 :
63- Logger .recordMetadata ("GitDirty" , "Uncommitted changes" );
64- break ;
65- default :
66- Logger .recordMetadata ("GitDirty" , "Unknown" );
67- break ;
68- }
59+ Logger .recordMetadata (
60+ "GitDirty" ,
61+ switch (BuildConstants .DIRTY ) {
62+ case 0 -> "All changes committed" ;
63+ case 1 -> "Uncommitted changes" ;
64+ default -> "Unknown" ;
65+ });
6966
7067 // Set up data receivers & replay source
7168 switch (Constants .getMode ()) {
You can’t perform that action at this time.
0 commit comments