more bindings n stuff
This commit is contained in:
@@ -83,8 +83,8 @@ public class RobotContainer {
|
||||
shiftTimer = new Timer();
|
||||
shiftTimer.reset();
|
||||
|
||||
//configureBindings();
|
||||
testConfigureBindings();
|
||||
configureBindings();
|
||||
//testConfigureBindings();
|
||||
configureShiftDisplay();
|
||||
|
||||
if(AutoConstants.kAutoConfigOk) {
|
||||
|
||||
@@ -51,7 +51,7 @@ public class IntakePivotConstants {
|
||||
KLeftMotorConfig
|
||||
.idleMode(kIdleMode)
|
||||
.smartCurrentLimit(kCurrentLimit)
|
||||
.inverted(kInvertMotors);
|
||||
.inverted(false);
|
||||
KLeftMotorConfig.encoder
|
||||
.positionConversionFactor(kConversionFactor)
|
||||
.velocityConversionFactor(kConversionFactor / 60);
|
||||
@@ -67,7 +67,7 @@ public class IntakePivotConstants {
|
||||
kRightMotorConfig
|
||||
.idleMode(kIdleMode)
|
||||
.smartCurrentLimit(kCurrentLimit)
|
||||
.inverted(kInvertMotors)
|
||||
.inverted(false)
|
||||
.follow(kLeftMotorCANID);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,12 +9,11 @@ import edu.wpi.first.math.util.Units;
|
||||
public class ShooterConstants {
|
||||
public enum ShooterSpeeds {
|
||||
kHubSpeed(3000.0),
|
||||
kFeedSpeed(5000.0);
|
||||
kFeedSpeed(5000.0),
|
||||
kIdleSpeed(750.0);
|
||||
|
||||
private double speedMPS;
|
||||
private double speedRPM;
|
||||
private double kIdleSpeed;
|
||||
|
||||
private ShooterSpeeds(double speedRPM) {
|
||||
this.speedMPS = speedRPM * kWheelDiameter*Math.PI;
|
||||
|
||||
@@ -76,6 +76,7 @@ public class IntakePivot extends SubsystemBase {
|
||||
currentTargetPosition = null;
|
||||
|
||||
leftMotor.set(speed.getAsDouble() * IntakePivotConstants.kMaxManualSpeedMultiplier);
|
||||
rightMotor.set(speed.getAsDouble() * IntakePivotConstants.kMaxManualSpeedMultiplier);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user