2/13/2023 0 Comments Robotc code![]() However, such an output means, that you can adjust the thresholds you want to be recognized as blue very nicely in software: for example by saying if the blue value is the highest of those 3, you have a blue line and act accordingly. The error I suspect is that SensorValue actually is a value from 0 to 255 and the chance that you get exactly the number sensorCOLORBLUE is very small. The larger the number, the brighter the incoming light. According to this page the sensor basically gives you three integers corresponding to the intensity of red/green/blue light.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |