Skip to content

Commit

Permalink
changed format of console printed faults
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Nov 27, 2024
1 parent 8df60be commit b9a8e4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/lib/FaultLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ public static void report(Fault fault) {
if (!_enableConsole) return;

switch (fault.type()) {
case ERROR -> DriverStation.reportError(fault.toString(), false);
case WARNING -> DriverStation.reportWarning(fault.toString(), false);
case INFO -> System.out.println(fault.toString());
case ERROR -> DriverStation.reportError("[Fault Logger] " + fault.toString(), false);
case WARNING -> DriverStation.reportWarning("[Fault Logger] " + fault.toString(), false);
case INFO -> System.out.println("[FaultLogger] " + fault.toString());
}
}

Expand Down
1 change: 1 addition & 0 deletions src/main/java/frc/robot/subsystems/Swerve.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public Swerve(
registerTelemetry(
state -> {
DogLog.log("Swerve/Pose", state.Pose);
DogLog.log("Swerve/Raw Heading", state.RawHeading);
DogLog.log("Swerve/Speeds", state.Speeds);
DogLog.log("Swerve/Desired Speeds", getKinematics().toChassisSpeeds(state.ModuleTargets));
DogLog.log("Swerve/Module States", state.ModuleStates);
Expand Down

0 comments on commit b9a8e4e

Please sign in to comment.