Record accelerometer data

Post your questions and help other users.

Moderator: Martin

Post Reply
Cyxo
Posts: 2
Joined: 28 Nov 2015 20:17

Record accelerometer data

Post by Cyxo » 28 Nov 2015 20:38

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Record accelerometer data

Post by Martin » 01 Dec 2015 14:58

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

Cyxo
Posts: 2
Joined: 28 Nov 2015 20:17

Re: Record accelerometer data

Post by Cyxo » 08 Dec 2015 07:53

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.

Post Reply