Skip to content

Wheel alignment question #119

Answered by thenetworkgrinch
tfield asked this question in Q&A
Discussion options

You must be logged in to vote

Great video!

Looking at it I can clearly see your conversion factor is off or possibly your cancoders are not configured for the right modules. YAGSL is commanding it to go the correct directions (as noted by the red lines).

For the conversion factor i just made some more documentation for that here https://yagsl.gitbook.io/yagsl/fundamentals/swerve-modules#conversion-factor

Just so you are aware, use 1 as the encoderPulsePerRevolution im SwerveMath functions calculating the conversion factors. TalonFX's were updated in 2024 for this to be possible, however if you are using a TalonFX steer/azimuth/angle motor wuth the 2023 YAGSL you need to use 2048 for the encoderPulsePerRevolutoon

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tfield
Comment options

@thenetworkgrinch
Comment options

@aliddy23
Comment options

@thenetworkgrinch
Comment options

Answer selected by tfield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants