02-18-2020 06:17 PM
How can I make an engine work when it detects a color, I already have the color detector programmed that is what I could achieve by reading the documentation but it does not mark how I can run the engine when I detect the information and I have not yet found a way to know if the sensor is working correctly then if there is a way that can show me in the drive station or make the engine work it would be very helpful to control the programming of the teleop where I have the color detector
the select is has conecting in a array of buttons
Solved! Go to Solution.
02-18-2020 10:20 PM
Davidrj28, there are multiple ways to ease the programming of these feature:
As an example: my team did an experiment where the color sensor would return the color string, and using a case structure we would ask a motor (equipped with an encoder, such as a Falcon 500) to turn to the next color and repeat the sequence until we get the desired color/rotations in the control panel.
All the best,