Skip to content

Commit

Permalink
0.25 on all
Browse files Browse the repository at this point in the history
  • Loading branch information
2491NoMythic committed Mar 28, 2024
1 parent 9ed5ec8 commit b6badb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/commands/GroundIntake.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public void initialize() {}
public void execute() {
double robotSpeed = Math.sqrt(Math.pow(driveTrain.getChassisSpeeds().vxMetersPerSecond, 2) + Math.pow(driveTrain.getChassisSpeeds().vyMetersPerSecond, 2));
double rollerSpeed = (IntakeConstants.INTAKE_SPEED - (0.25 * IntakeConstants.INTAKE_SPEED)) * (robotSpeed / DriveConstants.MAX_VELOCITY_METERS_PER_SECOND) + (0.25 * IntakeConstants.INTAKE_SPEED);
double sideSpeed = (IntakeConstants.INTAKE_SIDE_SPEED - (0.25 * IntakeConstants.INTAKE_SIDE_SPEED)) * (robotSpeed / DriveConstants.MAX_VELOCITY_METERS_PER_SECOND) + (0.75 * IntakeConstants.INTAKE_SIDE_SPEED);
double indexerSpeed = (IndexerConstants.INDEXER_INTAKE_SPEED- (0.25 * IndexerConstants.INDEXER_INTAKE_SPEED)) * (robotSpeed / DriveConstants.MAX_VELOCITY_METERS_PER_SECOND) + (0.75 * IndexerConstants.INDEXER_INTAKE_SPEED);
double sideSpeed = (IntakeConstants.INTAKE_SIDE_SPEED - (0.25 * IntakeConstants.INTAKE_SIDE_SPEED)) * (robotSpeed / DriveConstants.MAX_VELOCITY_METERS_PER_SECOND) + (0.25 * IntakeConstants.INTAKE_SIDE_SPEED);
double indexerSpeed = (IndexerConstants.INDEXER_INTAKE_SPEED- (0.25 * IndexerConstants.INDEXER_INTAKE_SPEED)) * (robotSpeed / DriveConstants.MAX_VELOCITY_METERS_PER_SECOND) + (0.25 * IndexerConstants.INDEXER_INTAKE_SPEED);
intake.intakeYes(rollerSpeed, sideSpeed);
indexer.set(indexerSpeed);
}
Expand Down

0 comments on commit b6badb4

Please sign in to comment.