Our team wishes to use PathPlanner in autonomous mode this year, but it appears that the x- and y-values in the program itself are switched in the JSON files, causing the robot to (obviously) move the wrong way. Is there any way to fix this?
When you say the X/Y values are switched, are you saying the generated trajectory does not follow the reference frame convention described in wpilib? Or do you need to convert wpilib’s reference frame into a different convention?
Sorry, it turns out that we just read the values wrong and the x and y values aren’t switched. It’s still not going the right direction, though.
When we asked it to move forward, it moved to the left. When we asked it to move to the left, it did this thing where it quickly went back and forth (probably around 6in max each way) and then sped northwest. I looked at the wpilib document and it mentioned inverting the gyro, but I’m not quite sure where exactly to stick a negative sign.