Skip to content

Commit

Permalink
added pdh
Browse files Browse the repository at this point in the history
added pdh object to robot container and set the switchable channel to be true
  • Loading branch information
MProne committed Feb 9, 2024
1 parent 6994788 commit f1b40e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import com.pathplanner.lib.auto.NamedCommands;
import com.pathplanner.lib.commands.PathPlannerAuto;
import edu.wpi.first.math.MathUtil;
import edu.wpi.first.wpilibj.PowerDistribution;
import edu.wpi.first.wpilibj.DriverStation.Alliance;
import edu.wpi.first.wpilibj.PowerDistribution.ModuleType;
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
import frc.lib.zylve.Controller;
Expand All @@ -25,6 +27,7 @@
public class RobotContainer {
Controller controller = new Controller(OperatorConstants.CONTROLLER_PORT);

private final PowerDistribution PDH = new PowerDistribution(1,ModuleType.kRev);
private final SwerveDrive swerveDrive = new SwerveDrive();

private final Elevator elevator = new Elevator();
Expand Down Expand Up @@ -54,6 +57,7 @@ public class RobotContainer {
public RobotContainer() {
configureButtonBindings();

PDH.setSwitchableChannel(true);
autoSelector.addOption("Left Auto", new PathPlannerAuto("Left Auto"));
autoSelector.addOption("Right Auto", new PathPlannerAuto("Right Auto"));
autoSelector.setDefaultOption("Middle Auto", new PathPlannerAuto("Middle Auto"));
Expand Down

0 comments on commit f1b40e8

Please sign in to comment.