Hey all! We are using a ten-turn potentiometer, and we are getting readings. Only problem is, is that it is getting insane readings i.e. 0 us 540 and turn it one little notch, you get to 630! It’s parameters are 0,360,0, respectively. Let us know if we are making a common mistake or you notice anything obvious. About to upload to github so I will post link if any of y’all need it. Thanks so much!
https://github.com/Humans4501/PRESEASONBOT2
Here is the link to the robot. Potentiometer code is in the arm subsystem and RobotMap etc. Sorry for confusing robot name, we will change it.
Check that everything is wired up correctly. Use a multimeter to measure the resistance between the signal and ground/power pins as you turn it. If that checks out, and your positive the wires are going into the roboRIO in the correct order, then check the voltage difference while it’s hooked up and your turning it. Make sure it’s working electrically before you jump to the assumption that it’s a code issue!