Skip to content

Commit

Permalink
rumble both on beam break
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacThoman committed Mar 25, 2024
1 parent a29be2b commit a3b380c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/StateControllerSub.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,14 +354,14 @@ public void updateRumbles(){
double bothRumbleVal = 0;
double operatorRumbleVal = 0;

if(Timer.getFPGATimestamp() - timestampOfRumbleStart <0.3 && armState == ArmState.SPEAKER)
bothRumbleVal = 1;
//if(Timer.getFPGATimestamp() - timestampOfRumbleStart <0.3 && armState == ArmState.SPEAKER)
//bothRumbleVal = 1;

if(readyToShoot && armState == ArmState.SPEAKER)
operatorRumbleVal +=1;

if(armState == ArmState.INTAKE && !beamBreak1.get())
operatorRumbleVal+=1;
bothRumbleVal+=1;


driver.getHID().setRumble(GenericHID.RumbleType.kBothRumble,bothRumbleVal);
Expand Down

0 comments on commit a3b380c

Please sign in to comment.