TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DRSS_CaseSwitchBlueAutonomous.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(){
        runTime.reset();
        while((runTime.time() < 5500) && opModeIsActive()) {
            particleAccelerator.setPower(1.0);
            cannonSeal.setPosition(opticalDistanceSensor.getLightDetected() <= 0.0043 ? 0.0:0.5);
        }
            particleAccelerator.setPower(0.0);
            particleLift.setPower(0.0);
            reset();
    }
private void shoot ( ) { runTime . reset ( ) ; while ( ( runTime . time ( ) < 5500 ) && opModeIsActive ( ) ) { particleAccelerator . setPower ( 1.0 ) ; cannonSeal . setPosition ( opticalDistanceSensor . getLightDetected ( ) <= 0.0043 ? 0.0 : 0.5 ) ; } particleAccelerator . setPower ( 0.0 ) ; particleLift . setPower ( 0.0 ) ; reset ( ) ; }
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);