Page 1 of 1
Record accelerometer data
Posted: 28 Nov 2015 20:38
by Cyxo
Hi,
How can I record my accelerometer data ? I saw the "accel_x y and z" variables, but they are always "null"...
Thanks in advance
Re: Record accelerometer data
Posted: 01 Dec 2015 14:58
by Martin
Hi,
Automagic does not provide a means to record sensor data on your own.
You could use trigger and/or condition Device Orientation to determine when the device is in a certain orientation. The condition also provides the current values of the accelerometer to the flow in variables accel_x, accel_y and accel_z even when the orientation does not match the defined one. You could periodically check the condition to record the values however this will be quite slow and I recommend to do this not too frequently to avoid a high battery drain.
Regards,
Martin
Re: Record accelerometer data
Posted: 08 Dec 2015 07:53
by Cyxo
Hi Martin,
Thank you very much for your help. I know it drains a lot of battery, I think I will check every 5 or 10 sec.