-
Notifications
You must be signed in to change notification settings - Fork 614
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
[wpimath] fully discretized ElevatorFF and ArmFF #7024
base: main
Are you sure you want to change the base?
Conversation
@calcmogul It looks like our friend the ArmSimulationTest is back again. |
How do I fix the pregenerated files check? I cannot seem to find the error in the logs for the check. |
/format |
/format |
You shouldn't be modifying generated files directly, in your case |
So don't modify Controller, modify controller.proto? Revert Controller.java back to previous? |
@sciencewhiz. Reverted back to original Controller.java and updated controller.proto, but I'm still getting a failure |
/pregen |
wpimath/src/main/java/edu/wpi/first/math/controller/ElevatorFeedforward.java
Outdated
Show resolved
Hide resolved
/format |
wpimath/src/main/native/include/frc/controller/SimpleMotorFeedforward.h
Outdated
Show resolved
Hide resolved
/format |
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.
Given how many times this derivation is duplicated, it may be better to move a copy to wpimath/algorithms.md and reference the section heading in all the places that derivation is applicable.
wpimath/src/main/java/edu/wpi/first/math/controller/ElevatorFeedforward.java
Outdated
Show resolved
Hide resolved
wpimath/src/main/java/edu/wpi/first/math/controller/ArmFeedforward.java
Outdated
Show resolved
Hide resolved
wpimath/src/main/java/edu/wpi/first/math/controller/ElevatorFeedforward.java
Outdated
Show resolved
Hide resolved
wpimath/src/main/java/edu/wpi/first/math/controller/ElevatorFeedforward.java
Outdated
Show resolved
Hide resolved
wpimath/src/main/java/edu/wpi/first/math/controller/ElevatorFeedforward.java
Outdated
Show resolved
Hide resolved
wpimath/src/main/java/edu/wpi/first/math/controller/SimpleMotorFeedforward.java
Outdated
Show resolved
Hide resolved
…edforward.java Co-authored-by: Tyler Veness <[email protected]>
…ward.java Co-authored-by: Tyler Veness <[email protected]>
Agreed. I would like to finish the cleanup in the code first before moving it if that is alright with you? |
/format |
@calcmogul how's this look before I move it to the algorithms.md file? |
There's like five copies, so idk. It'll be easier to review once it's deduplicated. |
Okay no problem. I'll get started on that. |
And I have a first draft for algorithms.md |
/format |
@calcmogul Anything left to do/check on this one. |
So in a similar setup with SimpleMotorFeedforward I've discretized the Elevator and the Arm.
Here is a summary of changes
Left to do
EDIT: DONE
Would be nice, maybe? Looking for feedback.