This is our team’s first year using path planning for autonomous, and we’re experiencing a puzzling consistency issue. Our most recent code creates a simple S-curve trajectory, and the robot follows the path pretty well the first time we run the code; however, when we re-enable the robot, it drives straight forward for a couple of meters and then performs the S-curve. We verified the gyro, encoder, and pose readings are reset in autoInit(). We can’t think of any other reason why it would be adding this additional movement. Any ideas would be much appreciated!
Edit: To clarify, the path runs properly every time we re-deploy the code and enable the robot, but not in subsequent enable/disable cycles.