Skip to content

Commit

Permalink
climb direction fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammingSR committed Mar 9, 2024
1 parent b25f367 commit efa4288
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/frc/robot/subsystems/ClimberSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
import frc.robot.Constants.ClimberConstants;

public class ClimberSubsystem extends SubsystemBase {
private final DoubleSolenoid m_leftSolenoid = new DoubleSolenoid(PneumaticsModuleType.REVPH,
private final DoubleSolenoid m_leftSolenoid = new DoubleSolenoid(2, PneumaticsModuleType.REVPH,
ClimberConstants.leftForwardChannel, ClimberConstants.leftReverseChannel);
private final DoubleSolenoid m_rightSolenoid = new DoubleSolenoid(PneumaticsModuleType.REVPH,
ClimberConstants.rightForwardChannel, ClimberConstants.rightReverseChannel);
private final DoubleSolenoid m_rightSolenoid = new DoubleSolenoid(2, PneumaticsModuleType.REVPH,
ClimberConstants.rightReverseChannel, ClimberConstants.rightForwardChannel);
private PneumaticHub m_pHub;

private boolean m_compressorEnabled;
Expand All @@ -37,6 +37,7 @@ public ClimberSubsystem() {
public void periodic() {
m_leftSolenoid.set(m_state);
m_rightSolenoid.set(m_state);
SmartDashboard.putString("pneumatics state", m_state.name());
SmartDashboard.putNumber("pressure", m_pHub.getPressure(0));
}

Expand Down

0 comments on commit efa4288

Please sign in to comment.