Skip to content

Commit

Permalink
added logged annotation for all advanced subsystems
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Nov 28, 2024
1 parent 65d4d27 commit d312398
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 149 deletions.
4 changes: 4 additions & 0 deletions src/main/java/frc/lib/AdvancedSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import static edu.wpi.first.wpilibj2.command.Commands.*;

import dev.doglog.DogLog;
import edu.wpi.first.epilogue.Logged;
import edu.wpi.first.epilogue.Logged.Strategy;
import edu.wpi.first.networktables.NetworkTableInstance;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
Expand All @@ -11,6 +13,7 @@
import java.util.HashSet;
import java.util.Set;

@Logged(strategy = Strategy.OPT_IN)
public abstract class AdvancedSubsystem extends SubsystemBase
implements SelfChecked, AutoCloseable {
// faults and the table containing them
Expand All @@ -19,6 +22,7 @@ public abstract class AdvancedSubsystem extends SubsystemBase
new FaultsTable(
NetworkTableInstance.getDefault().getTable("Self Check"), getName() + " Faults");

@Logged(name = "Has Error")
private boolean _hasError = false;

public AdvancedSubsystem() {}
Expand Down
149 changes: 0 additions & 149 deletions src/main/java/frc/robot/utils/VisionPoseEstimator.java

This file was deleted.

0 comments on commit d312398

Please sign in to comment.