The problem:
I need to synchronize some data set time-stamped using System.nanoTime()
with another one time-stamped using SensorEvent.timestamp
.
Description:
I am working on System Identification of a quadcopter. Data acquisition is done using Android API. The input to my system is the pulse width modulation (PWM) which are time-stamped using System.nanoTime()
with a frequency of 200 Hz.
The output of the system is Androids's sensors measurements which are time-stamped using SensorEvent.timestamp
.
I've checked many online resources but unfortunately didn't help. Can I access SensorEvent.timestamp
whenever I want so I time-stamp the inputs using this clock?