-
Notifications
You must be signed in to change notification settings - Fork 0
turret again again #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… into turret-3 # Conflicts: # src/main/java/frc/robot/RobotContainer.java
|
how did this pr not even get labelled what |
|
made the changes |
|
|
||
| private double reqPosition = 0.0; | ||
|
|
||
| private final PIDController turretRotationController = |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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; */ | ||
| /* |
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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() { | ||
|
|
There was a problem hiding this comment.
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
No description provided.