Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   SRX Encoder not working (http://www.chiefdelphi.com/forums/showthread.php?t=154655)

DurT1178 03-02-2017 13:34

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!

dardeshna 03-02-2017 13:53

Re: SRX Encoder not working
 
Quote:

Originally Posted by DurT1178 (Post 1639927)
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!

Can you specify the model of your breakout boards and encoders? It could very well be the same issue we had - lack of pullup resistors.

dvanvoorst 03-02-2017 13:58

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.

tr6scott 03-02-2017 14:04

Re: SRX Encoder not working
 
https://github.com/CrossTheRoadElec/FRC-Examples

CTRE Examples on GitHub.

DurT1178 03-02-2017 14:17

Re: SRX Encoder not working
 
Quote:

Originally Posted by dardeshna (Post 1639942)
Can you specify the model of your breakout boards and encoders?

Where do we look to find out the model of our breakout board. Also we are trying to use the built in encoders on the Talon SRX's, do they have a model number?


Quote:

Originally Posted by dvanvoorst (Post 1639945)
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.

Web interface says that the talons have a position and velocity of zero.

T8PineappleSam 03-02-2017 14:25

Re: SRX Encoder not working
 
Quote:

Originally Posted by DurT1178 (Post 1639957)
Where do we look to find out the model of our breakout board. Also we are trying to use the built in encoders on the Talon SRX's, do they have a model number?




Web interface says that the talons have a position and velocity of zero.

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).

dardeshna 03-02-2017 14:26

Re: SRX Encoder not working
 
Quote:

Originally Posted by DurT1178 (Post 1639957)
Where do we look to find out the model of our breakout board. Also we are trying to use the built in encoders on the Talon SRX's, do they have a model number?


Web interface says that the talons have a position and velocity of zero.

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?

T8PineappleSam 03-02-2017 14:28

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.

Bob Steele 03-02-2017 14:33

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)


All times are GMT -5. The time now is 00:58.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi