2021-01-28, 10:42 PM
It uses the compass sensors and accelerometers, but more importantly the gyros. There is something called a kalman filter which combines all of the sensor measurements and this is essentially what is used to determine the corrections.