Many updates for CS20 and CS21

This commit is contained in:
Bradley committed 2024-12-29 20:00:03 -05:00
1 parent afe6487706
commit 6cb76c01b2
12 files changed
+232 -13

No files matched your search

@@ -12,6 +12,7 @@ public class ShooterConstants {
public static final double kEncoderConversionFactor = 0;
public static final double kBangBangTolerance = 0;
public static final double kBangBangVoltageMultiplier = 10;
public static final double kFFS = 0;
public static final double kFFV = 0;
@@ -53,7 +53,7 @@ public class Shooter extends SubsystemBase {
double output = controller.calculate(
(motor1Encoder.getRate() + motor2Encoder.getRate()) / 2,
speed
) + ff.calculate(speed);
) * ShooterConstants.kBangBangVoltageMultiplier + ff.calculate(speed);
motor1.setVoltage(output);
});