|
Re: Using encoder with talon SRX
I think I understand the original posters point - I've struggled with this a bit as a mentor myself. I had found the coding manual last year but never got things working quite right for us. I'm a java developer by trade but robotics is only a hobby and I fear some of the background context that most presume is known in advance is a bit of a hole for me.
Things I didn't see:
- There are encoder classes if I remember right in wpilib. However if we hook the encoder to the talon we don't use them at all right?
- a lot of the built in PID type functionality can't be used if the encoders are hooked to the talon right? The PID classes all expect to get the encoder feedback directly.
- I assume hooking the encoders to the talon directly reduces overhead on the roborio and certainly free's up ports. I'd love to see a post that covers the pro's con's of either scenario and how you might use the wpilib PID controllers when the encoders are hooked directly to the talon srx
I'm going back to reading the talon programming manual again (its been most of a year) and this year we have the luxury of a bench bot we can more easily experiment with so hopefully I'll be in a better position. Last year encoders weren't critical but this year I'm really hoping we can do better in autonomous mode than last year. Other topics that would be interesting for me would be a ramp/brake tutorial for dummies. I have yet to search on that one so maybe it exists. The comment has been made that we accelerate too quickly and stop too quickly so I'm assuming that we need to learn about those.
|