See [http://trac.gateworks.com/wiki/accelerometer accelerometer].