added tools to determine compass rotation given GPS or GYRO data