-
Notifications
You must be signed in to change notification settings - Fork 266
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
Add article on dimensional analysis #2201
base: main
Are you sure you want to change the base?
Conversation
90d96dd
to
d70ecae
Compare
Fixes #1729 |
d70ecae
to
0ff91bc
Compare
I think this would benefit from an example of something everyone uses, converting encoder ticks in the drive train to useful distances |
Mention that WPILib uses SI units and strongly advise teams to do the same? |
Handling Units in Java | ||
^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Because Java's type system is not really capable of enforcing dimensional correctness at compile-time without major runtime cost and syntax bloat, there's no units library included as part of WPILibJ. This makes managing units in Java somewhat difficult, and even experienced developers will sometimes make mistakes. |
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.
Because Java's type system is not really capable of enforcing dimensional correctness at compile-time without major runtime cost and syntax bloat, there's no units library included as part of WPILibJ. This makes managing units in Java somewhat difficult, and even experienced developers will sometimes make mistakes. | |
Because Java's type system is not really capable of enforcing dimensional correctness at compile-time without major runtime cost and syntax bloat, there's no units library included as part of WPILib. This makes managing units in Java somewhat difficult, and even experienced developers will sometimes make mistakes. |
We already know this is specific for Java and we don't really mention WPILibJ anywhere else on the site.
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 section is OBE now with wpilibsuite/allwpilib#5371
@Oblarg finishing this up? |
No description provided.