Open source attitude heading reference system