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

Commit

Permalink
SimpleA ready to test
Browse files Browse the repository at this point in the history
  • Loading branch information
rosie-m-banks committed Mar 5, 2022
1 parent 358fd49 commit 5865b10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void autonomousPeriodic(GenericRobot robot) {
}
if ((autonomousStep>=4) && (autonomousStep < 10)){
if((!robot.isTargetFound()) && (System.currentTimeMillis() - startTime < 5000)) {
currentTurretPower = -.2;
currentTurretPower = .2;
}
}

Expand Down
9 changes: 2 additions & 7 deletions src/main/java/frc/robot/generic/Lightning.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public void getCargo(){
public void shoot(){
double shooterRPM = defaultShooterTargetRPM;
setShooterRPM(shooterRPM, shooterRPM);
if (getShooterRPMTop() >= (shooterRPM-100) && getShooterRPMBottom() >= (shooterRPM-100)){
if (getShooterRPMTop() >= (shooterRPM-300) && getShooterRPMBottom() >= (shooterRPM-300)){
canShoot = true;
}
else{
Expand Down Expand Up @@ -680,12 +680,7 @@ public boolean isActivelyShooting(){
//TODO: Add check using isReadyToShoot() function?
@Override
public boolean isReadyToShoot(){
if (Math.abs(getShooterRPMTop() -attemptedRPM) <= 300){
return true;
}
else{
return false;
}
return true;
}

@Override
Expand Down

0 comments on commit 5865b10

Please sign in to comment.