Skip to content

Instantly share code, notes, and snippets.

@zax71
Created April 1, 2026 22:03
Show Gist options
  • Select an option

  • Save zax71/836fa3df1c7018ccfa5e8afdb7054daa to your computer and use it in GitHub Desktop.

Select an option

Save zax71/836fa3df1c7018ccfa5e8afdb7054daa to your computer and use it in GitHub Desktop.
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