Patribots4738/ChargedUp2023

Tune the FF gains for our shwerb

Closed this issue · 5 comments

Using sysID, find and tune FF gains for the motors controlling our swerve. This CD post has a couple of suggestions. including adding Math.signum(driveOutput) * kS to the kS gain.

This post says that is impossible, but we both know that is so false! Just use code to set all the wheels "up" and use sysID to make it better and better, so gooder :>

This post has some nice images that should help us get through the hard parts of setting this up

OK, last one
This one talks about FF and velocity, instead of the more popular voltage control type

What if we used the PPHDC @Jacob1010-h :o
PathPlanner path notes at some point: PathPlanner path notes at some point

That PPHDC was really wild... I am going to save that for an offseason, or next year, or similar... but it has potential. Unfortunately our autos this year are very egregious, so we need to spin fast fast fast. This can do that, at the cost of us being less accurate in our position later down the line for picking up. I think that if our paths were more reasonable to see in the graphs of PP, this would be very beneficial for us.

But, since we are packing the robot as I type this message, we will need to postpone our usage of this new HDC

Also, I wanted to keep note that while this HDC was nice, it required a state to run the calculate() method, which we use in teleop alignment, meaning that we would need both HDCs anyways even if we wanted to use the PPHDC for auto and HDC for teleop