This is a drone sensor simulation It calculates the orientation of the drone
https://www.youtube.com/watch?v=whSw42XddsU This explains it all!