position detecting with mpu6050
Hello, I want to control the position of my device with mpu6050. The logic is briefly as follows: I will mount my device somewhere, then with a command the device will save its current position. Afterwards, I want to know whether this device is in the initial position at certain intervals. How can I do this with mpu6050? Do I need to use both acceleration and gyro data? It seemed to me that just acceleration data would be sufficient, but I'm not sure.
