Consider adding timestamps to sensor events #26078
Labels
c: new feature
Nothing broken; request for a new capability
p: sensors
Plugin to read from sensors
P3
Issues that are less important to the Flutter project
package
flutter/packages repository. See also p: labels.
The sensor plugin sends an (x, y, z) vector for the linear accelerometer, for example, but there is no timestamp to say exactly when the event was sampled.
As I understand it, the stream returned by accelerometerEvents.listen() may be buffered in some situations, so it is not possible to use the time of day when the event is delivered. Or at least there may be appreciable latency when doing so.
If adding a millisecond timestamp could be considered when sensors are next updated, that would be great---the application is sports performance monitoring so precision concerning when accelerations are sampled is essential for correct interpretation of the motion.
Thanks
The text was updated successfully, but these errors were encountered: