TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DRSS_NewerBlueAutonomous.java
/**
     * Fires the cannon for seven seconds and moves onto the next step when finished.
     */
Fires the cannon for seven seconds and moves onto the next step when finished.
Fires the cannon for seven seconds and moves onto the next step when finished .
private void shoot(){
        if(runTime.time() < 5500) {
            particleAccelerator.setPower(1.0);
            cannonSeal.setPosition(opticalDistanceSensor.getLightDetected() <= 0.0043 ? 1.0:0.75);
        } else {
            particleAccelerator.setPower(0.0);
            particleLift.setPower(0.0);
            currentStep++;
            resetRequested = true;
        }
    }
private void shoot ( ) { if ( runTime . time ( ) < 5500 ) { particleAccelerator . setPower ( 1.0 ) ; cannonSeal . setPosition ( opticalDistanceSensor . getLightDetected ( ) <= 0.0043 ? 1.0 : 0.75 ) ; } else { particleAccelerator . setPower ( 0.0 ) ; particleLift . setPower ( 0.0 ) ; currentStep ++ ; resetRequested = true ; } }
Fires the cannon for seven seconds and moves onto the next step when finished.
Fires the cannon for seven seconds and moves onto the next step when finished .
//particleLift.setPower(1.0);