I am a mentor for a FTC team and we are struggling with the OTOS. We had it working and it appeared to be calibrated / tracking properly. Once we got the code for this integrated with our driving program, and seeing good results, the team took a break for lunch. Upon returning from lunch and installing a new battery, the OTOS consistently read 0.
After debugging the code for several hours and following the previous post’s recommendations, we reverted back to the FTC example at FtcRobotController/FtcRobotController/src/main/java/org/firstinspires/ftc/robotcontroller/external/samples/SensorSparkFunOTOS.java at master · FIRST-Tech-Challenge/FtcRobotController
When this example also failed to read anything but zero, we gave up for now. Is there anything else to try before declaring this board DOA and getting a replacement? To confirm, this sensor and mounting arrangement was originally giving accurate results, so it is hard to blame our mounting.
Thanks for your help.