YAGSL: Zeroing NEOs with CANCoders

Hi!
I was attempting to use the YAGSL swerve library, however, I can’t get the angle motors to aim forward on enable. They all move to the same angles on startup no matter what position they are left in, but they are not facing forward. I attempted to use the magnetic offset parameter to fix this, however, I can’t get it to work.
This is the reading off of one my encoders when the wheels are centered with a yardstick:


And this is my configuration file for the motor with this encoder:

Thanks in advance for the help!

2 Likes

Have you tried adjusting the angle offset in the YAGSL configuration?

1 Like

Try using the “absolute position reading” instead of “Position”

In the end, my issue was I was using the values from SmartDashboard rather than Phoenix Tuner, I just had to subtract where it zeroed itself to from the wheel’s angle facing forward. Thanks for the help!

2 Likes

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