Logger.recordOutput("Turret Calculated Setpoint", turretSetpoint);
Logger.recordOutput("Hood Calculate Setpoint", hoodSetpoint);
Logger.recordOutput("Shooter Calculate Velocity", goalState.exitVel());
+
+ Logger.recordOutput("DistanceToTarget", target.getDistance(drivepose.getTranslation()));
SmartDashboard.putString("Phase Manager State", phaseManager.getCurrentState().toString());
}
exitVelocityMap.put(11.0, 26.0);
exitVelocityMap.put(25.0, 25.0* 3.2);
+ shooterVelocityMap.put(1.00, 11.5);
shooterVelocityMap.put(1.49, 11.5);
shooterVelocityMap.put(2.09, 12.5);
shooterVelocityMap.put(2.95, 13.5);
shooterVelocityMap.put(0.0, 9.55);
shooterVelocityMap.put(25.0, 43.44);
+ newHoodMap.put(1.00, 78.0);
newHoodMap.put(1.49, 72.0);
newHoodMap.put(2.09, 70.0);
newHoodMap.put(2.95, 68.0);
private boolean calibrating = false;
private Debouncer calibrateDebouncer = new Debouncer(0.5, DebounceType.kRising);
- private boolean forceHoodDown = true;
+ private boolean forceHoodDown = false;
private HoodIOInputsAutoLogged inputs = new HoodIOInputsAutoLogged();
shooterMotorLeft.setControl(voltageRequest.withVelocity(targetVelocityRPS));
shooterMotorRight.setControl(voltageRequest.withVelocity(targetVelocityRPS));
+ Logger.recordOutput("Shooter/realVelocity", shooterMotorLeft.getVelocity().getValueAsDouble() * ShooterConstants.SHOOTER_LAUNCH_DIAMETER);
Logger.recordOutput("Shooter/targetVelocity", shooterTargetSpeed);
}
public static final double FEEDFORWARD_KV = 0.185;
- public static final double NORMAL_CURRENT_LIMIT = 30.0; // A
+ public static final double NORMAL_CURRENT_LIMIT = 40.0; // A
public static final double CALIBRATION_CURRENT_LIMIT = 10.0; // A
public static final double CALIBRATION_CURRENT_THRESHOLD = 9.0; // A