|
Re: Team 5012 Offseason Reveal
Quote:
Originally Posted by kylemikableh
Wow, that looks amazing! How does this translate to robot code? Must had taken hours to accomplish that.
|
After tuning the pixy's settings to only give us data on the target's X position through the analog out, we used a simple P-controller on the drivetrain. It could have been tuned a little better, but we found that in outerworks shot config, our drivers were good at getting close enough for the P loop to get us into position reliably. You can take a peek at the code here, although it isn't anything groundbreaking - lines 84-89.
This never ended up being used on the competition field at Chezy Champs due to us pivoting to a ramp camp shot at the base of the batter that was a lot easier and faster for our drivers to hit. It was a pesky measurement error in translating rev 1's shooter exit angle to CAD for rev 2 that wasn't caught until after we had cut the plates for rev 2. Measurement was 30 deg from vertical, CAD was 30 deg from horizontal! Ended up working out in the end, but expect to see one more big revision for Battle at the Border in a few weeks...
__________________
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 - 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
|