Tweaked shooter offset model and new progress with X position
This commit is contained in:
mimigamin
2026-03-14 18:29:15 -06:00
parent 07ec609b01
commit ebab028818
11 changed files with 87 additions and 35 deletions
@@ -89,8 +89,9 @@ public class Shooter extends SubsystemBase {
shooterButtonReady = false;
}
public AngularVelocity getBallVelocity() {
return RotationsPerSecond.of((state.motor1Velocity.in(RotationsPerSecond) + state.indexerVelocity.in(RotationsPerSecond)));
public double getBallVelocity() {
return Math.abs(state.motor1TargetVelocity.in(RotationsPerSecond)) * ShooterConstants.SHOOTER_RADIUS * 2 * Math.PI;
//Math.abs(state.indexerForwardVelocity.in(RotationsPerSecond))*ShooterConstants.INDEXER_RADIUS)
}
@AutoLogOutput