Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
intake pivot + shooter wrist frame updates to 10ms for frame status 5…
Browse files Browse the repository at this point in the history
… (encoder position) to reduce jitter (might nerf this slightly when climber is added to not oversaturate CAN bus)
  • Loading branch information
Ernie3 committed Feb 29, 2024
1 parent a0b851d commit 5a7b266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Intake.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public Intake() {
pivotMotor = new CANSparkMax(RobotMap.INTAKE_PIVOT, MotorType.kBrushless);
pivotMotor.setIdleMode(IdleMode.kBrake);
pivotMotor.setInverted(true);
pivotMotor.setPeriodicFramePeriod(PeriodicFrame.kStatus5, 100);
pivotMotor.setPeriodicFramePeriod(PeriodicFrame.kStatus5, 10);

pivotEncoder = pivotMotor.getAbsoluteEncoder(SparkAbsoluteEncoder.Type.kDutyCycle);
pivotEncoder.setZeroOffset(0.206289);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Shooter.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public Shooter() {

pivotMotor = new CANSparkMax(RobotMap.SHOOTER_PIVOT, MotorType.kBrushless);
pivotMotor.setIdleMode(IdleMode.kBrake);
pivotMotor.setPeriodicFramePeriod(PeriodicFrame.kStatus5, 100);
pivotMotor.setPeriodicFramePeriod(PeriodicFrame.kStatus5, 10);

indexMotor = new CANSparkMax(RobotMap.INDEXER, MotorType.kBrushless);
indexMotor.setIdleMode(IdleMode.kBrake);
Expand Down

0 comments on commit 5a7b266

Please sign in to comment.