I’ve posted my code for the teleop and my dashboard. I have never created a custom dashboard and would like to call you all to check my High Priority Data to ensure that is all set up properly.
My gyroscope has never functioned properly, it is the 2010 split up Accelerometer/Gyroscope. I have my gyroscope hooked into Analog Module 1 in port 2.
My range finder is hooked into port 1. It used to work properly, but now it doesn’t. When I power it and monitor the analog signal with a multimeter I get a fluctuation from 0 to 1 V when I point the range finder around the room. However, on the dashboard it only ranges from about 2.5 to 3 and once and stops changing after a bit.
I am using the Range Finder that came with the 2012 KOP. Attached are my Teleop.vi and Dashboard.vi. I am using the 8 slot crio in the analog module 9201.
Teleop.vi (36.4 KB)
Dashboard Main.vi (86.2 KB)
Teleop.vi (36.4 KB)
Dashboard Main.vi (86.2 KB)
Everything appears to be hooked up, electrically, correctly.
My team tried playing with the rangefinder as well. The max distance is supposedly about 21 ft (not 100% sure), but it starts becoming very noisy after the distance is 8 ft. The data fluctuates widely even when it is quiet, when it is noisy. For this reason, my team has decided not to use the rangefinder.
Could something be wrong with my cRIO module?