Add logic to sample the device's current attitude: pitch, roll, and yaw