-
Notifications
You must be signed in to change notification settings - Fork 0
11 program hopper #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…obot-Code into 11-program-hopper
…ive to PID tuning.
|
@aidnem Could you look at this branch/run SIM and see if/why PID tuning is completely unresponsive? |
|
I'm merging main into this branch to get the TestMode update. |
What do you mean, specifically? Check the documentation for the TalonFXConfig, which are used directly in coppercore. |
aidnem
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a couple comments, hopefully these should help your sim become responsive once again.
| Logger.recordOutput("Hopper/closedLoopReferenceRadians", inputs.closedLoopReference); | ||
| Logger.recordOutput( | ||
| "Hopper/closedLoopReferenceSlopeRadPerSec", inputs.closedLoopReferenceSlope); | ||
| Logger.recordOutput("Hopper/State", stateMachine.getCurrentState().getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another thing to check would be to use AdvantageScope to log Hopper/State as a discrete field (drag it into the middle section at the bottom of the line graph, in between the left and right axes) and make sure that you are actually entering the test mode state when you should be.
|
@Samson560915 one thing you need to do here is Resolve the conversations. When you got comments, react to them, and if that concludes the conversation hit "Resolve conversation." Do not leave conversations open longer than required. |
…ocity instead of setting voltage, now the velocity doesn't change in SIM at all.
|
@Samson560915 do you want me to take care of merge conflicts for you? |
|
@aidnem Sure! That would be amazing! Thank you so much! |
|
@Samson560915 Done 👍 . Do you think we can get this merged tonight? I'd like to be "done with subsystems" as soon as possible. |
|
@aidnem I don't know, I did something and now it doesn't spin (velocity does not change). Do you know if I can simulate the velocity changing using the profiled control to spin the motor? |
|
@aidnem |
|
@Samson560915 all of your gains are 0 except for kA. this means that the only time it's applying any power is when the profile commands acceleration. Try tuning the PIDs in test mode. The general process is:
In between all gains changes, make sure you change your target RPM around to see how it responds to commands. |
|
@aidnem Is it supposed to be in test mode when I click |
|
Yes. you also have to select the right hopper test mode elastic. |




Follows turret subsystem. SIM runs, however it is not responsive to PID tuning. Constants need to be set and states need to be finished.