![]() |
Encoder Issues
Hey, so we are trying to hook up our encoders, and we have them working while they are hooked up to the Roborio, but we don't get any values while we are hooked up to our CAN Talon. We've checked several diagrams and our wiring, and those don't appear to be the issue. Any help you could supply would be greatly appreciated. Thanks!
|
Re: Encoder Issues
Quote:
|
Re: Encoder Issues
Here is our execute method in our sensor-reading command:
Code:
protected void execute() {Code:
public double getRate() {Code:
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS |
Re: Encoder Issues
Hey feoniks4505,
The Encoder class is for encoders wired to the roboRIO... Code:
sensorscanEncoder = new Encoder(0, 1, false, EncodingType.k4X);Checkout section 5.3 in the Talon SRX Software reference manual to see all the getters. And when you are ready to use the internal closed-loop features of the Talon, check out the examples in section 12. Also for the future, if anyone has a doubt of wiring-issue-versus-software-issue, use the self-test feature (Section 2.4) to see what the Talon sees for sensor data. Then you can rule out wiring versus software. Self-test works even if there is no-code. |
| All times are GMT -5. The time now is 10:25. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi