You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at iOS documentation it seems that first time retrieving data from sensors might take a while (that's why I added an asynchronous function) although I've tested on an iPhone 6 and it tooks less than a millisecond. If it is really that fast in old iOS devices and Android the async function should be removed.
There are also two additional functions to start getting new measurements as soon as possible. Those two methods could be a noop on OS X or devices without the proper sensor or just call the callback periodically with a zero vector.
On f9fb5a4 I've implemented this basic API in iOS and OS X.
The text was updated successfully, but these errors were encountered:
It would be nice to have a wrapper for different smartphone sensors like accelerometer and gyroscope.
Here is an API proposal:
Looking at iOS documentation it seems that first time retrieving data from sensors might take a while (that's why I added an asynchronous function) although I've tested on an iPhone 6 and it tooks less than a millisecond. If it is really that fast in old iOS devices and Android the async function should be removed.
There are also two additional functions to start getting new measurements as soon as possible. Those two methods could be a noop on OS X or devices without the proper sensor or just call the callback periodically with a zero vector.
On f9fb5a4 I've implemented this basic API in iOS and OS X.
The text was updated successfully, but these errors were encountered: