Created
April 1, 2026 22:03
-
-
Save zax71/836fa3df1c7018ccfa5e8afdb7054daa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.firstinspires.ftc.teamcode.opmodes.testing; | |
| import com.bylazar.telemetry.PanelsTelemetry; | |
| import com.bylazar.telemetry.TelemetryManager; | |
| import com.qualcomm.robotcore.eventloop.opmode.TeleOp; | |
| import com.seattlesolvers.solverslib.command.RunCommand; | |
| import org.firstinspires.ftc.teamcode.CommandOpMode; | |
| import org.firstinspires.ftc.teamcode.commands.UpdateTelemetryCommand; | |
| import org.firstinspires.ftc.teamcode.subsystems.IntakeSubsystem; | |
| @TeleOp(group = "Testing", name = "Color Sensor Test") | |
| public class ColorSensorTestOpMode extends CommandOpMode { | |
| private static TelemetryManager panelsTelemetry = PanelsTelemetry.INSTANCE.getTelemetry(); | |
| @Override | |
| public void initialize() { | |
| IntakeSubsystem intakeSubsystem = new IntakeSubsystem(hardwareMap); | |
| schedule( | |
| new RunCommand(() -> panelsTelemetry.addData("Detected Ball Color", intakeSubsystem.getDetectedBall())), | |
| new UpdateTelemetryCommand(telemetry) | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment