Hello - We having been trying this new (and exciting) FTC approved sensor for a couple of days now, but our accuracy seems not good. I’m talking about starting the base robot in one position, moving it forward 1 tile (24 inches), and moving it back to the starting position. The new x position will sometimes change by 1 inch. That seems really excessive. If we repeat the test (forward and back), the x position keeps growing, always in the same direction. Please, please, please, any advice? We are using the code from sparkfun’s github: sparkfun/SparkFun_Qwiic_OTOS_FTC_Java_Library (github.com)
Thank you!
So another 2 hours of trying to get it to work has made it worse. I saw a post about cleaning the sensor with isopropyl alcohol and a qtip, but no improvement. (And yeah, the shipping tape is off.) I’ve played around with the height, adding 0.5mm shims until too low or too high, no luck. The heading always seems ok, but over 100 inches of linear straight line travel, it will report anywhere from 59-76 actual inches. I have telemetry on the status warnOpticalTracking and warnTiltAngle, but they are false (I can induce them to be bad, so I think they are working?). What do I do?
We have your RMA and will get a new unit out shortly!
If you’re still have trouble, here’s a couple things to try to diagnose the problem:
Make sure you’re running the sample OpMode without modification. I’ve seen several users reporting bad tracking, when in reality it was something in their code doing funky things; switching to the sample OpMode had correct behavior for those users.
Make sure you’re using standard FTC field tiles that are clean. The optical sensor tracks fine on the standard tiles, but it’s right at the edge of what the sensor is capable of tracking. I’ve seen users with non-standard tiles that are darker or have a different texture, and the sensor has miserable performance there.
If you’re still having trouble, try a different surface like hardwood or cement floors, or even white printer paper. Those surfaces should be a lot easier for the sensor to track accurately.
Hope this helps!
Thanks - we are running the sample opmode without modification. After your suggestions, I did use white printer paper, and it seems much better. However, our tiles are official AndyMark, less than 1 year old, and in great shape. We ran on much worse tiles last year at competitions. If the sensor can work on good tiles, then I think we have a bad sensor. Luckily, the good people at SparkFun are sending us a replacement to try. I will try to remember to come back and post those results as well once we get it. Thanks again!