mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
funk
This commit is contained in:
@@ -225,7 +225,7 @@ public class RobotContainer {
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
true);
|
||||
false);
|
||||
}}
|
||||
, m_robotSwerveDrive).withName("Swerve driveWithInput defaultCommand"));
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ public class Climber extends SubsystemBase {
|
||||
/** Creates a new Climber */
|
||||
public Climber(WPI_TalonFX elbow) {
|
||||
this.elbow = elbow;
|
||||
elbow.configReverseLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.NormallyOpen);
|
||||
elbow.configForwardLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.NormallyOpen);
|
||||
elbow.overrideLimitSwitchesEnable(true); //Check
|
||||
|
||||
elbow.configReverseSoftLimitThreshold(ClimberConstants.ELBOW_FORWARD_SOFT_LIMIT); // Tune
|
||||
@@ -40,6 +40,6 @@ public class Climber extends SubsystemBase {
|
||||
@Override
|
||||
public void periodic() {
|
||||
SmartDashboard.putNumber("Elbow Angle", elbow.getSelectedSensorPosition());
|
||||
SmartDashboard.putBoolean("Climber Folded", (elbow.isRevLimitSwitchClosed() == 1));
|
||||
SmartDashboard.putBoolean("Climber Folded", (elbow.isFwdLimitSwitchClosed() == 1));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user