I am trying to get a basic path follower going, and i’m running into trouble reconfiguring the sample RamseteController file from WPIlib working. The file in question is DriveSubsystems.java line 57&58. Our coding team does not have much experience so any help is appreciated.
getAngle()
returns a double
when you need a Rotation2d
for the first parameter in DifferentialDriveOdometry
Navx Docs: AHRS (navx_frc API)
WPILib: Differential Drive Odometry — FIRST Robotics Competition documentation
I hope this helps!
If getting a double you could create a new rotation2d with that double as the value
1 Like
Yes you can
Note that NavX has a getRotation2d() method you can use.
1 Like
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.