Remove angle offset from shooter table

Fix logging using format strings
Add autonomous chooser to the dashboard
Update path recorder
Move path commands to a class
This commit is contained in:
nathanrsxtn
2022-04-19 20:36:59 -06:00
parent 0196174180
commit b069720145
14 changed files with 710 additions and 249 deletions
@@ -99,7 +99,7 @@ public class AnsiLogging {
ZonedDateTime time = ZonedDateTime.ofInstant(logRecord.getInstant(), ZONE_ID);
// Get the logger name, source class name, and/or source method name.
String source = Optional.ofNullable(logRecord.getLoggerName()).or(() -> Optional.ofNullable(logRecord.getSourceClassName())).map(s -> s + " ").orElse("") + Optional.ofNullable(logRecord.getSourceMethodName()).orElse("");
String message = logRecord.getMessage();
String message = formatMessage(logRecord);
// Get the stack trace of the exception if it was thrown.
String throwable = Optional.ofNullable(logRecord.getThrown()).map(LoggingAnsiFormatter::makeStackTraceString).orElse("");
// Select the appropriate format string for the log level.