link to github: GitHub - FRC4418/2023_Offseason_Swerve
Im trying to set up our swerve with YAGSL but Im having trouble defining the navX in it. More specifically, the swerve will drive relatively fine in teleop; and it can follow pathplanner paths, but the heading of the robot pose will never change despite the path telling it to.
My first question would be what id would a navX plugged into the imu port on the rio have? In the past I’ve used the usual navX constructor with no arguments and its worked. I’ve tried a couple numbers including the default 13 and 0 with no success.
Secondly, what is the canbus field for and how should it be used? Is it exclusive to certain IMUs?
Thank you in advance