Our robot keeps drifting to one side whenever we try to move straight. We know that this problem is not a mechanical issue however we can’t find anything wrong with the code that would lead to this.
This screenshot is from the log file from the driver station.
Are you using the KOP chassis? If you are, check that all the pinion gears on the 4 motors are the same. We had a similar problem many years ago and struggled with it all season. After the season ended, we found out it was possible for a pinion with fewer teeth to fit. We had re-used motors from previous years.
If someone check the code, please. The code was updated with restore Factory Defaults for the Spark Max motor controllers. It is updated through the GitHub link.