use device orientation when getting accelerometer coordinates