Talon SRX has many sensor inputs that you can have the Talon react to directly, and/or process yourself in your robot application(fetch over CAN Bus). This includes the 3.3V analog input, a few digital inputs (limit switch for example), quadrature, pulse width, direct-communication with a Pigeon IMU.
5V signals should use an adapter board to translate to a Talon-compliant 3.3V signal, such as...
http://www.ctr-electronics.com/adapt...out-board.html
Most of this is explained in the Talon SRX Software Reference Manual, but basically use the web-based config (Section 2 in software reference manual) to set the device ID of the Talon, then specify the same ID when you construct the CANTalon object in java.
http://www.ctr-electronics.com/talon...ical_resources
Some useful sections...
2.4. Self Test - poll the sensor values on a given talon. This works even if there is no code in the RIO.
16.9. Why are there multiple ways to get the same sensor data?
GetEncoder() versus GetSensor()?
16.11. Why are there two feedback “analog” device types: Analog Encoder
and Analog Potentiometer?
16.18. How do I get the raw ADC value (or voltage) on the Analog Input pin
16.21. Analog Position seems to be stuck around ~100 units?