Skip to content
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

Extend capability to control precision #5

Open
Maximvdw opened this issue Aug 8, 2020 · 3 comments
Open

Extend capability to control precision #5

Maximvdw opened this issue Aug 8, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@Maximvdw
Copy link
Member

Maximvdw commented Aug 8, 2020

Currently OpenHPS uses number primitives for all calculations. While this suffices for most use cases,
it may cause issues in more larger scale computations that require a much higher precision.

Decimal.js could help with this issue, but this is not without usability disadvantages.

@Maximvdw Maximvdw added the enhancement New feature or request label Aug 8, 2020
@Maximvdw
Copy link
Member Author

Additional comment: time precision is also crucial. Time services provide a scalable way for nodes to use different time measurements. However, this can not be accessed while initializing data objects, positions and frames

@Maximvdw
Copy link
Member Author

EDIT: Time service accuracy has been implemented and tested. All instances of Date.now() have been replaced with TimeService.now() that defaults to standard Date.now(), microtime or a custom implementation. Number precision is not implemented yet

@Maximvdw
Copy link
Member Author

EDIT: Accuracy of sensor values or positions can now have its own unit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant