New SwerveDriveOdometry(Constants.Swerve.swerveKinematics, getYaw());

how can i fix it.pls help

Not emough information.

Can you share a link to your code? Preferably as a github or similar repository.

If not, can you share the actual error? Hover your mouse over the part thats underlined in red.

1 Like

More than likely your “getYaw” method is returning the wrong variable type. I forget what the SwerveOdometry object is expecting but if you over over it then you can see the expected components and then go fix your getYaw method to output the correct data type.

SwerveDriveOdometry doesn’t have a constructor that only has two parameters

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.