Hey all, we’re a first time PathPlanner/Fancy Auto team this year, and there is some gap in knowledge we seem to be missing in how to make it actually work in real life. Our code and odometry works perfectly in the simulator, on the real robot the odometry tracking seems to match up to our real world expectations (i.e. 1 meter measured is 1 meter traveled). However, on the real robot our paths just don’t work.
I’m having a hard time understanding what the mechanism will be for our students to put the robot on the field, power it on, and still have all this work. I have been thinking on this for over a week now, and I have narrowed down the real-life robot not functioning to the likelihood that our Gyro is off when the code restarts.
Our desired starting configuration will be facing the speaker, which on the blue side would put our starting Gyro angle at 0 degrees facing the blue side, however, when we built our path and to maintain Field Oriented poses, 0 degrees is facing to the right, or to the red alliance side.
For the red alliance side, not an issue since we’ll be starting with facing the red speaker.
So, the advice I’m seeking is to see what other teams are doing with respect to setting their robot on the field in the proper orientation and then still ending up with proper gyro headings.
Is the move to just put the robot down on the field against the alliance wall, facing the red side, and powering on the robot from there such that 0 is properly facing that direction.
We’re using a Navx, so we can’t “set the angle” at any point, we can reset the Yaw, or set angle adjustments, but have had limited success trying that out so far. We’re competing in week 1, so with an all-new set of drivers, I’d really like to have this down to a standard set of procedures so they can set the robot on the field properly, and the autos will work the way the software team has written them.