Working getting tilt and rotation of a device