High Goal Detection
Page in progress
UGBasicHighGoalPipeline
UGBasicHighGoalPipelineUGBasicHighGoalPipeline pipeline = new UGBasicHighGoalPipeline();
camera.setPipeline(pipeline);// Red Goal
if (pipeline.isRedVisible()) {
Rect redRect = pipeline.getRedRect();
Point centerOfRedGoal = pipeline.getCenterofRect(redRect);
telemetry.addData("Red goal position",
centerOfRedGoal.toString());
}
// Blue Goal
if (pipeline.isBlueVisible()) {
Rect blueRect = pipeline.getBlueRect();
Point centerOfBlueGoal = pipeline.getCenterofRect(blueRect);
telemetry.addData("Blue goal position",
centerOfBlueGoal.toString());
}UGAngleHighGoalPipeline
UGAngleHighGoalPipelineLast updated
Was this helpful?
