-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[DRAFT] Fix for TalonFX PID wrapping #14
[DRAFT] Fix for TalonFX PID wrapping #14
Conversation
I really like this, thank you! I will test it tomorrow. |
Thank you for the docs! I may move the function into SwerveMath or just copy it over to the TalonSRXSwerve because this issue would be present in both of them. Probably will move it over to SwerveMath to reduce redundancy in the code. |
I tried the fix and couldnt get precise control over talons. Talons do NOT work right now and should be tested with in the air when working with them for now. I pushed my chanhes to the branch talonfx |
@7910f6ba7ee4 Let me know how your testing goes tomorrow, can you try and modify https://github.com/BroncBotz3481/YAGSL-Example/tree/talonfx ? |
We'll let you know how it goes and make changes to the TalonFX branch. I'll make sure to keep in mind your suggestion about keeping the wheels in the air too. |
I added the normalization function from another team which is smaller and looks to be better than the one from 364. In the sim it ran with a steady state error (I am not sure why yet). |
Swerve is now working for us! Note that we're using the two 2048 integrated encoders and do not use cancoders because of some mechanical issues (I commented out the code that initializes and resets position by cancoder in our own code). Some of the problems could (?) come from setting integrated positions to cancoders, I'm not sure. Some notes:
I'll post a video of it working soon. |
Why that feedforward multiplier works is existentially confusing. I will gladly accept your changes, Thank you! I spent all afternoon yesterday trying various fixes so I am excited to see your video too. |
YAGSL-working.mp4 |
Dev - update from parent
Draft for fixing TalonFX wrapping (if it needs to be fixed).