|
Programming ordeal
Hello fellow FTCers.
My name is Brian, new to FTC, this site, and robotics and general.
My team is 5264, ILITE Blue Chips, from Haymarket.
I am one of our team's programmers, and I have a slight problem, and was hoping someone could help.
How do i set a light sensor to activate a LED light? For example, let's say I have a ligth sensor and 2 LED lights, one red, the other blue. When the sensor picks up anything >20, I want the red light to shine. then the sensor reads <20, I want the blue sensor to go off.
How could I program this in ROBOTC?
(Note: this isn't the exact scenario I'm in, but it's very similar)
__________________
Simply The Greatest
|