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
Remove sim checkstyle suppressions #2714
Conversation
@AustinShalit - Most of the checkstyle errors are |
I would leave AbbreviationAsWordInName for now. Just apply the others in this PR I am not exactly sure. I think @PeterJohnson might have a better answer than what I can give. |
Both SimValueInfo and SimDeviceInfo (earlier in the same file) are structures that contain information about the simulated value and simulated device as returned by the corresponding Enumerate functions. Those constructors are only called from the native side and are not intended to be called by users. |
So should I |
I'm just putting |
@PeterJohnson - what should I do with missing Javadocs on
Many of the needed Javadocs are for |
It's waiting only on missing Javadoc errors. |
Yep, for get/set/callback you can just use a generic description. CallbackStore keeps track of a simulation callback and cancels the callback when close() is called. The different constructors are for index-based, channel-based, or general (no index) callbacks. Field2d constructor simply creates a Field2d object. There's no args to discuss. |
allwpilib/wpilibj/src/main/java/edu/wpi/first/wpilibj/simulation/GenericHIDSim.java Line 79 in b66fcdb
I think that this type int should be some sort of enum... Or at least docs as to the different values possible
And in all the The |
It’s the same type as Joystick.getAxisType returns, so we probably need to document both. You are correct on what initialNotify does. Yeah, CallbackStore is an implementation detail; teams generally shouldn’t need to use it directly. |
What's up with the CI? |
GitHub was having issues earlier today. I am going to rerun and see if that helps. |
Watchdog tests failing? Again? |
That's a known issue. |
...ava/edu/wpi/first/wpilibj/examples/statespacedifferentialdrivesimulation/RobotContainer.java
Outdated
Show resolved
Hide resolved
wpilibj/src/main/java/edu/wpi/first/wpilibj/simulation/SingleJointedArmSim.java
Outdated
Show resolved
Hide resolved
wpilibj/src/main/java/edu/wpi/first/wpilibj/simulation/RoboRioSim.java
Outdated
Show resolved
Hide resolved
I cleaned this up as #3079. |
Fixes #1290
CallbackStore
object so GC doesn't cancel the callback.