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