|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
SRX Encoder not working
Hello Everyone! We are having trouble getting the encoders on our CANTalons to work properly. We are using four CANTalon SRX as our drive train with one talon to each sim. We are programming in Java, and are trying to use the getEncoderPostion method from the CANTalon class; however, it is not working. We have tried to send the values to SmartDashboard, and when we do they are continuously set to 0. We used a similar setup last year. Was something changed in the CANTalon classes? Also is there a better version of the CANTalon Javadocs? Becuase the one on the Cross The Road Website does not have detailed information on everything. Any advice is appreciated. Thanks!
|
|
#2
|
||||
|
||||
|
Re: SRX Encoder not working
Quote:
|
|
#3
|
|||
|
|||
|
Re: SRX Encoder not working
You can use the web interface of the roboRIO to view what's going on with your Talons. It's a quick way to see if you're getting encoder readings or not. Manually moving the motors should show encoder value changes in the web interface.
|
|
#4
|
||||
|
||||
|
Re: SRX Encoder not working
|
|
#5
|
|||
|
|||
|
Re: SRX Encoder not working
Quote:
Web interface says that the talons have a position and velocity of zero. |
|
#6
|
|||
|
|||
|
Re: SRX Encoder not working
The Talon SRX can not get positional data without an external encoder plugged in. In order to receive sensor data you will need to plug an external sensor to the Talon's data port. (This is found on the top and covered by a plastic shield).
|
|
#7
|
||||
|
||||
|
Re: SRX Encoder not working
There has to be a physical encoder attached to the mechanism that is rotating. The talons themselves cannot record position without the sensor. Do you have an encoder built into your gearbox?
|
|
#8
|
|||
|
|||
|
Re: SRX Encoder not working
The setup we used for out drivetrain had one CIMCoder for each side with the sensors plugged in to am-3281 breakout boards (http://www.andymark.com/product-p/am-3281.htm). The breakouts plug into the data port and interface well with the CIMCoder's quadrature output.
|
|
#9
|
||||
|
||||
|
Re: SRX Encoder not working
Are you using the new version of the CIM Coder or the older version?
The new one came out just a couple of weeks ago. The old one requires a pull up resistor to be installed. The new one has that incorporated. oops I just realized that you guys are not the ones having problems...It was team 1178... I am sure you know what you are doing. :0) Last edited by Bob Steele : 03-02-2017 at 14:35. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|