TeamCode/src/main/java/org/firstinspires/ftc/teamcode/SoftwareCompetition.java
@Override
    public void loop() {

        // PUT YOUR CODE RIGHT AFTER THIS LINE












        // DO NOT EDIT THIS CODE

        telemetry.addData("Status", "Running: " + runtime.toString());
        telemetry.addData("Motor Speed", CURR_SPEED);
        telemetry.addData("Alpha Value", colorSensor.alpha());
        telemetry.update();

        if (colorSensor.alpha() > 250) {
            CURR_SPEED = FAST_SPEED;
        } else {
            CURR_SPEED = NORMAL_SPEED;
        }
    }
/*
     * Code to run REPEATEDLY after the driver hits PLAY but before they hit STOP
     */
Code to run REPEATEDLY after the driver hits PLAY but before they hit STOP
Code to run REPEATEDLY after the driver hits PLAY but before they hit STOP
@Override
    public void loop() {
        telemetry.addData("Status", "Running: " + runtime.toString());
        telemetry.addData("Motor Speed", CURR_SPEED);
        telemetry.addData("Alpha Value", colorSensor.alpha());
        telemetry.update();
        if (colorSensor.alpha() > 250) {
            CURR_SPEED = FAST_SPEED;
        } else {
            CURR_SPEED = NORMAL_SPEED;
        }
    }
@ Override public void loop ( ) { telemetry . addData ( "Status" , "Running: " + runtime . toString ( ) ) ; telemetry . addData ( "Motor Speed" , CURR_SPEED ) ; telemetry . addData ( "Alpha Value" , colorSensor . alpha ( ) ) ; telemetry . update ( ) ; if ( colorSensor . alpha ( ) > 250 ) { CURR_SPEED = FAST_SPEED ; } else { CURR_SPEED = NORMAL_SPEED ; } }
Code to run REPEATEDLY after the driver hits PLAY but before they hit STOP
Code to run REPEATEDLY after the driver hits PLAY but before they hit STOP
// PUT YOUR CODE RIGHT AFTER THIS LINE // DO NOT EDIT THIS CODE