-
Notifications
You must be signed in to change notification settings - Fork 640
[wpimath] Add Input Type support to Feedforward classes (c++) #7908
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: 2027
Are you sure you want to change the base?
Conversation
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.
There's a lot of unrelated changes here to revert.
Were you referring to this or the PR I just closed? |
This PR. |
Referring to the other files now requiring an Input template parameter? |
@calcmogul |
There's implementation changes unrelated to this PR and an added deprecated function in SimpleMotorFeedforward that shouldn't be there. |
Oh I see. This originated in main and not 2027. I will fix. |
Excellent. Should the examples that use these be templated as well? |
I think the tests are good now. |
wpimath/src/test/native/cpp/controller/struct/ArmFeedforwardStructTest.cpp
Outdated
Show resolved
Hide resolved
wpimath/src/test/native/cpp/controller/proto/ElevatorFeedforwardProtoTest.cpp
Outdated
Show resolved
Hide resolved
wpimath/src/main/native/include/frc/controller/struct/ElevatorFeedforwardStruct.h
Show resolved
Hide resolved
wpimath/src/main/native/include/frc/controller/struct/ArmFeedforwardStruct.h
Show resolved
Hide resolved
wpimath/src/main/native/include/frc/controller/proto/ArmFeedforwardProto.h
Outdated
Show resolved
Hide resolved
wpimath/src/main/native/include/frc/controller/proto/ElevatorFeedforwardProto.h
Outdated
Show resolved
Hide resolved
wpimath/src/main/native/include/frc/controller/proto/ArmFeedforwardProto.h
Outdated
Show resolved
Hide resolved
wpimath/src/main/native/include/frc/controller/struct/ArmFeedforwardStruct.h
Outdated
Show resolved
Hide resolved
wpimath/src/main/native/include/frc/controller/struct/ArmFeedforwardStruct.h
Show resolved
Hide resolved
wpimath/src/main/native/include/frc/controller/struct/ElevatorFeedforwardStruct.h
Outdated
Show resolved
Hide resolved
wpimath/src/main/native/include/frc/controller/struct/ElevatorFeedforwardStruct.h
Outdated
Show resolved
Hide resolved
Would these tests for CheckSize do the trick? |
Adds Input type to Feedforward