-
Notifications
You must be signed in to change notification settings - Fork 610
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] Add feedforward constant constructor to ElevatorSim #5823
Conversation
…edforward.java Co-authored-by: Tyler Veness <[email protected]>
Windows 8 added GetSystemTimePreciseAsFileTime().
I don't understand what the cpp error is. Something about units, but the units should fine. |
/format |
/format |
@@ -75,9 +85,11 @@ units::ampere_t ElevatorSim::GetCurrentDraw() const { | |||
// is spinning 10x faster than the output. | |||
|
|||
// v = r w, so w = v / r |
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.
This comment doesn't belong to the newly added code.
/format |
I think this is done. Is there anything else I need to finish? |
Should that breaking change be made in other sim classes? |
Not yet. I have other PR's waiting for those. But I haven't submitted yet. |
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.
Note that this PR makes a breaking change: the gearing and drum radius arguments were removed from the constructor. This makes the simulation class easier to use since that information is already inherent in the linear system argument.
Adds a subclass of ElevatorSim that uses kG, kV, and kA from sysId to simulate an Elevator.