Software update 4 (pre-Week Zero)
The past few meetings have been full time work on autonomous. As a refresher, here is where our center 4-piece auto started as back on 1/20:
At first, we had a few issues with the arm, pathplanner, positioning, and command order (2/10):
We resolved some of those issues, but still weren’t well tuned (also 2/10):
After a lot of work tuning the points, we were really close but didn’t have the beam brake for the intake (2/17):
Once we got the beam brake, we ran into an issue where scheduling a command outside the auto causes the pathplanner auto command to be canceled:
Once we switched to code in the subsystem’s periodic loop to stop the intake we were able to successfully score all four notes! However, to accurately follow the path we had to set very strict acceleration and velocity constraints in PathPlanner (1.5m/s^2 and 2.4 m/s) and wouldn’t complete it in 15 seconds (2/22):
Rather than adjust the constraints in PathPlanner we decided to move onto using Choreo to generate optimal trajectories based on the physical constraints of our robot design. Our first tests of this were unsuccessful and for some reason the robot was driving 30-40% longer than it should have, even running the same code that was successful the day before. After about an hour of pulling our hair out, we discovered that one of the encoder wires from our Spark MAX to Vortex dock was unplugged, causing the odometry to drive 4/3 as far.
After a lot of tuning, we’ve almost got the auto reliably working. The main issues we have left are tuning the arm position and shooter speed to reliably shoot in the speaker, and fixing the odd skew at the end of the path:
We attended the KnightKrawler Week Zero event yesterday, and our next post will be about what we learned there.
Written by Tyler, our Control Systems Mentor