Skip to content

Commit

Permalink
Merge pull request #156 from frc937/dummy-talon
Browse files Browse the repository at this point in the history
create dummy talon
  • Loading branch information
willitcode authored Mar 20, 2024
2 parents e7851bb + 9aba8c0 commit 9efee5d
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 9efee5d

Please sign in to comment.