Skip to content

Conversation

@memori034
Copy link
Member

No description provided.

@memori034 memori034 linked an issue Jan 24, 2026 that may be closed by this pull request
@memori034
Copy link
Member Author

how did this pr not even get labelled what

@dmistry26
Copy link
Contributor

made the changes


private double reqPosition = 0.0;

private final PIDController turretRotationController =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get rid of thi

LoggedTracer.record("Turret");
}

public Command setPosition(Rotation2d position) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of Rot2D

return setPosition(() -> position);
}

public Command setPosition(Supplier<Rotation2d> position) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double instead of Rot2D

return turretIOInputsAutoLogged.turretMotorVoltage;
}

public Command trackTarget(ShotCalculator calc) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get rid

position.minus(swerve.getState().Pose.getRotation()).getRotations()));
}

public double getPosition() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont think u need this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can add it later if another func needs it but rn I don't think anything uses it

return this.run(() -> turretIO.setVoltage(voltage));
}

public double getVoltage() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont think u need this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can add it later if another func needs it but rn I don't think anything uses it


public static double updateFrequency = 50;

public static final double trackingP = 0.0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get rid of all these tracking PID consants

/* public static final Distance turretLength = Inches.of(24);
public static final Mass turretMass = Kilograms.of(1);
public static final double jkGMetersSquared = .5; */
/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just remove the commented out stuff

DCMotor.getKrakenX60(1),
TurretConstants.TurretSim.turretSimGearing,
TurretConstants.TurretSim.jkGMetersSquared,
TurretConstants.TurretSim.turretLength.in(Meters),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented out things

}

private void configureOperatorBinds() {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont bind anything, theres still superstruct to do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Turret

4 participants