|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Implementing Feedforward/Feedback Motion Profile with Talon SRX
I just discovered the TalonSRX's have new support for motion profiling. That is very cool! Thanks for posting this...it should be a great help as we figure out how to do this in java.
|
|
#2
|
||||
|
||||
|
Re: Implementing Feedforward/Feedback Motion Profile with Talon SRX
This is a great paper (you should upload it to the white papers section of CD as well)! I do have one question after reading through it: On page 3, you explain the F gain value and how it's related to the Talon's measured throttle. You say that "For the left side of the robot at full throttle, the Talon SRX reported a speed of 1210" but I don't see 1210 anywhere in the image. It sounds like you logged the data to a file and grabbed from that. Can you explain where you got 1210 for the throttle? Is it the "Velocity" measurement in the image? If so, was the velocity still positive 1210?
Thanks! Last edited by jojoguy10 : 15-01-2016 at 10:29. Reason: formatting fix |
|
#3
|
||||
|
||||
|
Re: Implementing Feedforward/Feedback Motion Profile with Talon SRX
Quote:
Quote:
There is one error in that document that I need to fix and repost. I said to take the cycles per rev from the spec sheet and multiply by 4. This is not correct. The help screen in labview for the configuration VI is confusing. It says: "Allows setting the Counts Per Rotation of the Talon SRX's connected quadrature encoder. This is also referred to as the 'Number Encoder Lines', 'Counts Per Revolution', and 'Cycles Per Revolution'." It turns out that the number you send to the config should be Cycles Per Revolution (128 for my Grayhill encoder). The Talon SRX multiplies it by 4. To me, this help text includes contradictory terms. Cycles do not equal counts or lines. Now, you would rightly say "Dang didn't he notice a 4 to 1 error?" Well, unknown to me at the time, the encoder in our gearbox is not on the wheel shaft. It has a 4.14:1 ration with the wheel. Divide by 4 and multiply by 4.41 and you don't notice much :-) So in the end, my number ended up being 565 fed into the Config VI. Beware a shifting transmission! This ratio will probably change with gear shifts, but you can just change it on the fly in code depending on the status of the shifter. The end performance of this approach is striking. Tuning the PID gains was really easy (just as the Poofs claimed in their presentation). Very tolerant of values (you see my round numbers..no fine tuning needed). This controls our wheels to within a tenth of a rotation or less every single time. |
|
#4
|
||||
|
||||
|
Re: Implementing Feedforward/Feedback Motion Profile with Talon SRX
Talon SRX Motion Profile Reference Manual is now available at...
http://www.ctr-electronics.com/talon...ical_resources |
|
#5
|
|||
|
|||
|
Re: Implementing Feedforward/Feedback Motion Profile with Talon SRX
Quote:
How did you get that .97 throttle value for the right side? Having trouble understanding. |
|
#6
|
||||
|
||||
|
Re: Implementing Feedforward/Feedback Motion Profile with Talon SRX
Quote:
The important part is to get a relationship between throttle and speed. The process assumes the relationship is linear, and with today's speed controllers that is true. So, theoretically, you could pick your data pair anywhere along the line. Choosing a point near maximum throttle, however, will reduce your error resulting from variations that happen during the measurement process. |
|
#7
|
|||
|
|||
|
Re: Implementing Feedforward/Feedback Motion Profile with Talon SRX
Steve
Thank you for taking the time to reply. |
|
#8
|
|||
|
|||
|
Re: Implementing Feedforward/Feedback Motion Profile with Talon SRX
Can you tell me where the white papers section of CD is located? I can't for the life of me find it. I'm sure it's in plain sight. Thanks.
Ken |
|
#9
|
||||
|
||||
|
Re: Implementing Feedforward/Feedback Motion Profile with Talon SRX
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|