-
Notifications
You must be signed in to change notification settings - Fork 611
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
[wpilib] DCMotorSim cleanup/enhancement #7021
Conversation
What's the issue here with the failing test? |
That test doesn't use the classes you modified, so the 2 inch error in y is due to the randomness injected into the test, not due to your PR. We should hardcode the random seed for testing purposes in a separate PR. |
So nothing I need to do about the test for this PR? |
Does anything need to be modified here? |
/format |
wpilibj/src/main/java/edu/wpi/first/wpilibj/simulation/DCMotorSim.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
…Sim.java Co-authored-by: Tyler Veness <calcmogul@gmail.com>
wpilibj/src/main/java/edu/wpi/first/wpilibj/simulation/FlywheelSim.java
Outdated
Show resolved
Hide resolved
wpilibj/src/main/java/edu/wpi/first/wpilibj/simulation/FlywheelSim.java
Outdated
Show resolved
Hide resolved
wpilibj/src/main/java/edu/wpi/first/wpilibj/simulation/DCMotorSim.java
Outdated
Show resolved
Hide resolved
wpilibj/src/main/java/edu/wpi/first/wpilibj/simulation/DCMotorSim.java
Outdated
Show resolved
Hide resolved
wpilibj/src/main/java/edu/wpi/first/wpilibj/simulation/DCMotorSim.java
Outdated
Show resolved
Hide resolved
@calcmogul Are there any more changes to be made on this one? |
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This PR reworks DCMotorSim similar to what was done with FlywheelSim in PR #6629