hello everyone. We use swerve wheels and use the codes of the 364 team. After adjusting the offset values, the wheels constantly turn to random angles while using the robot. I need your help.pls. my code is here GitHub - wusled/gul2: da
We built our first swerve drive this fall and had a similar issue. It seemed like the encoders where drifting as we drove. Would start out ok after setting the offsets, then then after a few turns it would be all out of whack. Turned out, the folks who built the swerve modules (SDS MK4i) missed the step of securing the magnets for the encoders into the shafts with locktite and just dropped them in instead so they could shift positions as the wheels rotated. If this sounds like your issue, might be worth checking.
I tried the solution you mentioned, unfortunately it still works the same. Do you have any other suggestions on solving the problem?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.