2021-01-21, 12:33 AM
(2020-09-30, 08:44 AM)CapnKernel Wrote: I could be wrong here, but the problem might be the orientation of your IMU. The MPU board containing the IMU should be horizontal not vertical, and the yellow capacitor should face towards the front of the boat. I think the magnetic heading is only correct with this orientation.
(Would love to know if I'm wrong. My autopilot would be better mechanically if I could mount it vertically like you've done!)
I wanted to follow up my post here, as I did some reading.
The MPU9255 has a three-axis magnetometer, so it doesn't matter how the board is oriented. Calibration will of course, need to be done whatever way it's mounted.