@@ -0,0 +1,2412 @@
+package com.qualcomm.ftcrobotcontroller.opmodes.custom.util;%0A%0Aimport android.app.Activity;%0Aimport android.graphics.Color;%0Aimport android.view.View;%0Aimport com.rmrobotics.library.control.Button;%0Aimport com.rmrobotics.library.control.Controller;%0Aimport com.rmrobotics.library.core.RMOpMode;%0Aimport java.util.Calendar;%0Aimport java.util.Timer;%0A%0Aimport com.qualcomm.robotcore.hardware.ColorSensor;%0A%0Apublic class ColorSensorTest extends RMOpMode%7B%0A    Calendar cal;%0A    ColorSensor colorSensor;%0A    private final String CONFIGURATION_PATH = %22  %5C%22motors%5C%22:%5B%5Cn%22 +%0A            %22  %5D,%5Cn%22 +%0A            %22  %5C%22servos%5C%22:%5B%5Cn%22 +%0A            %22  %5D,%5Cn%22 +%0A            %22%7D%22;%0A%0A    @Override%0A    public void init() %7B%0A        colorSensor = hardwareMap.colorSensor.get(%22cS%22);%0A        colorSensor.enableLed(false);%0A        cal = new Calender();%0A        super.init();%0A        telemetry.addData(%22Init%22,%22Stuff%22);%0A    %7D%0A%0A    @Override%0A    protected String setConfigurationPath() %7B%0A        telemetry.addData(%22Config%22,%22Stuff%22);%0A        return CONFIGURATION_PATH;%0A    %7D%0A%0A    public void calculate() %7B%0A        telemetry.addData(%22Clear%22, colorSensor.alpha());%0A        telemetry.addData(%22Red  %22, colorSensor.red());%0A        telemetry.addData(%22Green%22, colorSensor.green());%0A        telemetry.addData(%22Blue %22, colorSensor.blue());%0A        determine();%0A    %7D%0A    public void determine() %7B%0A        Integer myColorNumber = 1;%0A        switch (myColorNumber) %7B%0A            case 1:%0A                if (colorSensor.blue() %3E colorSensor.red()+10) %7B%0A                    telemetry.addData(%22Good %22, %22Data%22);%0A                    motorMap.get(%22LeftMotor%22).setDesiredPower(0.3);%0A                    motorMap.get(%22RightMotor%22).setDesiredPower(0.3);%0A%0A                %7D%0A                else if (colorSensor.red() %3E colorSensor.blue()+10) %7B%0A                    telemetry.addData(%22Bad %22, %22Data%22);%0A%0A                %7D%0A                else %7B%0A                    telemetry.addData(%22Null %22, %22Data%22);%0A                %7D%0A                break;%0A            case 2:%0A                if (colorSensor.red() %3E colorSensor.blue()+10) %7B%0A                    telemetry.addData(%22Good %22, %22Data%22);%0A                %7D%0A                else if (colorSensor.blue() %3E colorSensor.red()+10) %7B%0A                    telemetry.addData(%22Bad %22, %22Data%22);%0A                %7D%0A                else %7B%0A                    telemetry.addData(%22Null %22, %22Data%22);%0A                %7D%0A                break;%0A%0A%0A        %7D%7D%7D%0A

Create Color Sensor Test