Documentation on the math of an Attitude Heading Reference System for gliders.