Many updates for CS20 and CS21
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user