Good morning everyone,
I am trying to relate Position.info.speed and Position.info.heading with Sensor.AccelerometerData, and I feel that the returns are going to be asyncronous.
Does anyone know if the timestamp in Position.info.when, also applies to the .speed? It says timestamp "of the obtained Location fix", which I would imagine is not a timestamp of the speed calculation, or would you asume more or less if a new location is in then the speed asked for would be updated at the same time as the location fix?
Is the accelerometerData actually timed with anything? for example if I have a 1000ms callback, and I setup the listner to only listne for 1 second, does that mean the response I get, is the previous 1 seconds' worth of accelerometer data?
What I am considering doing is using an array, whereby the Position.info.speed is added to the array, as is the accelerometer data, but trying to figure out where I need to put the Position . info so that it appears sequentually in the correct spot... ie, the heading and speed, after an accelerometer reading, actually occured after the accelerometer reading snf not before it?