Teensy 3.6 + CMPS10 compass
It is pretty essential to have a tilt compensated compass module on a boat that heels. The CMPS10 compass is an early example which met this requirement. Later versions, the CMPS11, CMPS12 and CMPS14) dropped the PWM model. Also noticed the module requires 3.6v (>3.3v) input. I believe it does not have a gyroscope.
Video
Please click thumbnail image to start the video