}
public boolean isSwitchHit() {
- return counter.get() > 0;
- }
+ return counter.get() > 0; //detects if switch is hit
+ }
public void initializeCounter() {
- counter.reset();
+ counter.reset(); //resets the counter back to 0
}
public void fineTuneControl(double d) {