FreeAHRS is a project mainly written in ..., it's free.
A free and open source Attitude and Heading Reference System (AHRS) based on a PIC32 microprocessor.