|
Re: Getting value from Potentiometer on SRX Talon
So what value did you get from getAnalogInPosition().
If it's near 0, then the analog input pin is being pulled to ground externally.
If it's near 1023, it's being pulled to positive voltage (greater then 5V at the analogbreakout input, or greater than 3.3V at the Talon input).
If it's near 100 then it's floating (not connected to anything).
Also it might just be easier to grab the self-test results in the web-based config (section 2.4). That will rule out bad code.
Use a DC meter to confirm you are getting 0 - 5V swing on the analog input pad on the breakout. Your MA3 might not be getting power. Rotate the mechanism slowly while monitoring the voltage of the analog signal.
|