-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
Co-authored-by: DaviTheDinosaur <[email protected]>
Co-authored-by: DaviTheDinosaur <[email protected]>
Co-authored-by: DaviTheDinosaur <[email protected]>
Co-authored-by: DaviTheDinosaur <[email protected]>
Co-authored-by: DaviTheDinosaur <[email protected]>
Co-authored-by: DaviTheDinosaur <[email protected]>
Co-authored-by: DaviTheDinosaur <[email protected]>
@@ -71,7 +71,7 @@ public static class ShooterConstants { | |||
public static final double KV = 0.113; | |||
|
|||
public static final double ERROR_TOLERANCE_RPM = 30; | |||
public static final double SHOOTER_ACTIVE_RPM = 3218; |
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.
🐈⬛
|
||
private final CommandXboxController xBoxController; | ||
|
||
private final SlewRateLimiter leftRateLimiter = new SlewRateLimiter(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.
0 to 100 in 1/5th of a second actually limits something?
@Override | ||
public void execute() { | ||
Rotation2d turretSetpoint = Rotation2d.fromDegrees(limelight.getTx()).plus(turret.getPosition()); | ||
if (limelight.getTv() && turret.isAtSetpoint()) turret.autoSetPosition(turretSetpoint); |
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.
why only updating setpoint if at last setpoint?
@@ -36,8 +36,10 @@ public DrivetrainIOReal() { | |||
backLeft.setSmartCurrentLimit(DrivetrainConstants.DRIVETRAIN_MOTOR_CURRENT_LIMIT); | |||
backRight.setSmartCurrentLimit(DrivetrainConstants.DRIVETRAIN_MOTOR_CURRENT_LIMIT); | |||
|
|||
frontLeft.enableVoltageCompensation(12); | |||
frontRight.enableVoltageCompensation(12); | |||
frontRight.disableVoltageCompensation(); |
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.
voltage compensation was an issue?
private final PositionVoltage positionVoltage = new PositionVoltage(0).withSlot(0); | ||
private final MotionMagicVoltage MMVoltage = new MotionMagicVoltage(0).withSlot(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.
MM acts like a position setpoint?
Integrated all code, everything works except for autos which are untested, but they should also work with light testing