Skip to content

Commit

Permalink
Tuned pid and accel
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark-303 committed Jan 21, 2025
1 parent 4f94fab commit fbe9c1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/subsystems/intake/IntakeIOSim.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class IntakeIOSim implements IntakeIO {
private TrapezoidProfile.State armGoal;

private final TrapezoidProfile.Constraints armConstraints =
new TrapezoidProfile.Constraints(100, 500);
new TrapezoidProfile.Constraints(200, 50);

private final TrapezoidProfile armProfile = new TrapezoidProfile(armConstraints);

Expand All @@ -29,15 +29,15 @@ public class IntakeIOSim implements IntakeIO {
private final SingleJointedArmSim armSim =
new SingleJointedArmSim(
DCMotor.getKrakenX60Foc(1),
45,
3.67,
20,
2,
0.5,
Units.degreesToRadians(0),
Units.degreesToRadians(90),
false,
Units.degreesToRadians(90)); // Custom arm motor simulation

private final PIDController armPositionPID = new PIDController(70, 1, 0);
private final PIDController armPositionPID = new PIDController(6.54, 0, 0.001);
private double applied_volts = 0.0;

@Override
Expand Down

0 comments on commit fbe9c1f

Please sign in to comment.