Skip to content

Commit

Permalink
create dummy talon
Browse files Browse the repository at this point in the history
it hurts me that this works and that we have to do it
  • Loading branch information
willitcode committed Mar 20, 2024
1 parent e7851bb commit 9aba8c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/frc/robot/subsystems/PDP.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

package frc.robot.subsystems;

import com.ctre.phoenix6.hardware.TalonFX;
import edu.wpi.first.wpilibj.PowerDistribution;
import edu.wpi.first.wpilibj2.command.SubsystemBase;

Expand All @@ -19,9 +20,14 @@ public class PDP extends SubsystemBase {

private PowerDistribution powerDistributionPanel;

private TalonFX dummyTalon;

/** Creates a new PDP. */
public PDP() {
this.powerDistributionPanel = new PowerDistribution();

/* Creating a dummy Talon FX that doesn't actually exist so that Phoenix framework runs, allowing us to use Phoenix tuner for the PDP and PCM. */
this.dummyTalon = new TalonFX(0);
}

/** Clears the sticky faults of the PDP */
Expand Down

0 comments on commit 9aba8c0

Please sign in to comment.