-
Notifications
You must be signed in to change notification settings - Fork 2
Add a prioritize rotation flag to the swerve drive method #65
Comments
You might be able to tell if the commanded robot speed needs to be reduced by checking to see if the current to the drive motors is at the current limit and checking to see if the rotation has not met its setpoint. I don't know if this would work properly though. |
I plan to just do a binary search to ensure that no individual wheel is above a max set speed |
How would that solve this problem? |
I assume the purpose of lowering the allowed speed is so the wheels still have room to spin faster to achieve a specific turn. |
I honestly don't know anymore |
We call |
When would we call it? If we see that the turn setpoint isn't being reached? We shouldn't have it active all of the time. |
whenever we're using the turnpid |
Hmm ok, I hope this doesn't make the driving feel weird due to the speed changes. |
This should ensure that the outputted rotation speed is equal to what the commanded input is. When this is true we should reduce the commanded robot speed to make sure we hit the commanded angular velocity (if needed).
The text was updated successfully, but these errors were encountered: