Intelligent Loops

These loops allow us to use less data to perform the same functions, helping out when finding data is hard.

if (myPipeline.signalDetect() == false) {
                // Yellow
                myPipeline.configureScalarLower(0.0, 100.0, 0.0);
                myPipeline.configureScalarUpper(255.0, 170.0, 120.0);
                sleep(2000);
                if (myPipeline.signalDetect() == false) {
                    sleep(2000);
                    telemetry.addData("SIGNAL FOUND: C", myPipeline.signalDetect());
                } else {
                    telemetry.addData("SIGNAL FOUND: B", myPipeline.signalDetect());
                }
            } else {
                telemetry.addData("SIGNAL FOUND: A", myPipeline.signalDetect());
            }
            telemetry.update();