Add ability to change base unit type for Java Units library #7860
Labels
component: wpiunits
Java units library
type: feature
Brand new functionality, features, pages, workflows, endpoints, etc.
Is your feature request related to a problem? Please describe.
When declaring a variable using the Java Units library, there isn't a clean way to set/change the base unit of a measure when starting from a unit type different than what you want the code to use by default.
For example, if I measure a device using a ruler in inches, but the code would prefer to use meters, you currently have to do this
Additionally when using Epilogue, you currently have to add a lot more boilerplate to log values in a different unit than what is used by vendors.
Describe the solution you'd like
A decorator pattern would be useful to simply this.
Which would make adding additional functions for Epilogue unnecessary, simplifying code
The text was updated successfully, but these errors were encountered: