|
Re: Team 399: Eagle Robotics Presents: X-1
Quote:
Originally Posted by Mr. Lim
From your pictures, it looks like you are using Jaguars via CAN.
It also mentions you are using 2 FPs for your shooter, using speed control.
Are you using the built-in Speed PID function of the Jaguars?
If so, two questions for you:
1) How did you tune your Speed PID for the Jaguars? What are your PID constants?
2) How did you get 2 Jaguars to run in sync with each other without them interfering with each other? Did you split the encoder signal? Read the voltage from one Jaguar and send it to the second?
|
Thanks for noticing. Before I explain anything, I'd like to thank you for all the work and information you've posted on CAN Jags and Velocity control.
Following the advice from one of your posts, I decided to offload V PID to the cRIO. However, we are still using the encoder port of the Jag(one encoder to one jag). Unfortunately, we found major inconsistencies in the jag's velocity data(+/- 20%). As a slight workaround, we have our software calculate the derivative of jaguar.getPosition rather than letting the jag do it.
Since all of the processing is on the cRIO, it was pretty simple to sync the two motors. I simply took the output from the calculation and set it to the jaguars while using SyncGroups.
Thank you, and if you have any more questions, ask away!
__________________
Drive Coach Team 5012 Gryffingear / Antelope Valley FIRST teams / EWCP - (2013 - Current)
Student / Driver / Programmer / CAD - FRC Team 399: Eagle Robotics / FTC Team 72: GarageBots - (2009 - 2013)
Los Angeles Region FTC FTA/CSA/Head Ref
[FF] FIRST Pick
2014 FTC Los Angeles Regional Compass Award Winner.
2017 - San Diego Regional / Sacramento Regional / Las Vegas Regional
2016 - Los Angeles Regional Creativity + Winners (1197, 987, 5012) / Las Vegas Regional Team Spirit + SF (5012, 5851, 5049) / Galileo Subdivision
2015 - Inland Empire QF (597, 5012, 4413) / Las Vegas Imagery + Winners (148, 987, 5012) / Newton Subdivision and World Champions (118, 1678, 1671, 5012)
2014 - Inland Empire Rookie All Star + Highest Rookie Seed + SF (2339, 1967, 5012) / Las Vegas Rookie All Star / Galileo Division Imagery
|