TeamCode/src/main/java/org/firstinspires/ftc/teamcode/SoftwareCompetition.java
@Override
    public void init() {
        telemetry.addData("Status", "Initialized");

        /* eg: Initialize the hardware variables. Note that the strings used here as parameters
         * to 'get' must correspond to the names assigned during the robot configuration
         * step (using the FTC Robot Controller app on the phone).
         */
        // leftMotor  = hardwareMap.dcMotor.get("left_drive");
        // rightMotor = hardwareMap.dcMotor.get("right_drive");

        // eg: Set the drive motor directions:
        // Reverse the motor that runs backwards when connected directly to the battery
        // leftMotor.setDirection(DcMotor.Direction.FORWARD); // Set to REVERSE if using AndyMark motors
        //  rightMotor.setDirection(DcMotor.Direction.REVERSE);// Set to FORWARD if using AndyMark motors
        // telemetry.addData("Status", "Initialized");

        leftMotor = hardwareMap.dcMotor.get("leftmotor");
        rightMotor = hardwareMap.dcMotor.get("rightmotor");
        colorSensor = hardwareMap.colorSensor.get("colorSensor");

    }
/*
     * Code to run ONCE when the driver hits INIT
     */
Code to run ONCE when the driver hits INIT
Code to run ONCE when the driver hits INIT
@Override
    public void init() {
        telemetry.addData("Status", "Initialized");
        /* eg: Initialize the hardware variables. Note that the strings used here as parameters
         * to 'get' must correspond to the names assigned during the robot configuration
         * step (using the FTC Robot Controller app on the phone).
         */
        leftMotor = hardwareMap.dcMotor.get("leftmotor");
        rightMotor = hardwareMap.dcMotor.get("rightmotor");
        colorSensor = hardwareMap.colorSensor.get("colorSensor");
    }
@ Override public void init ( ) { telemetry . addData ( "Status" , "Initialized" ) ; /* eg: Initialize the hardware variables. Note that the strings used here as parameters
         * to 'get' must correspond to the names assigned during the robot configuration
         * step (using the FTC Robot Controller app on the phone).
         */ leftMotor = hardwareMap . dcMotor . get ( "leftmotor" ) ; rightMotor = hardwareMap . dcMotor . get ( "rightmotor" ) ; colorSensor = hardwareMap . colorSensor . get ( "colorSensor" ) ; }
Code to run ONCE when the driver hits INIT
Code to run ONCE when the driver hits INIT
// leftMotor  = hardwareMap.dcMotor.get("left_drive"); // rightMotor = hardwareMap.dcMotor.get("right_drive"); // eg: Set the drive motor directions: // Reverse the motor that runs backwards when connected directly to the battery // leftMotor.setDirection(DcMotor.Direction.FORWARD); // Set to REVERSE if using AndyMark motors //  rightMotor.setDirection(DcMotor.Direction.REVERSE);// Set to FORWARD if using AndyMark motors // telemetry.addData("Status", "Initialized");