Some clarification needed. With this
Set and verify AuxMagSettings.BoardRotation
- Set GCS -> System -> Settings -> AuxMagSettings -> BoardRotation (correctly)
- - Look up (Google) "magnetic inclination" for your location. For me in USA it is about 62 degrees. So north for me is north and 62 degrees down also.
- -
https://en.wikipedia.org/wiki/File:World_Magnetic_Inclination_2010.pdf- - When making these changes, use the red up arrow (Save) at the top of the screen. That will make it permanent, and also put it into effect immediately (no reboot required for changes to this setting).
- - Watch AuxMagSensor. BoardRotation is correct if you point the nose of the GPS/mag north (and e.g. 62 down) and see a high positive number (+400) for X and flip the GPS/mag so tail is now pointing north and you see X has become a large negative number (-400). These +-400 can easily be +100-800 or +600-300 for example. If you are truly pointing the GPS/mag north, X will be the largest change and the change will make the number a lot more negative (about 800 more negative, taking it from about +400 to about -400).
- - Same for Right side with Y (flip to left side for negative Y).
- - Same for Bottom side pointing north with Z (flip to top side pointing north).
- - For APM/PixHawk I2C mag, you will probably have to make BoardRotation.Pitch=180 to get these numbers correct.
- - If your board needs some other set of rotations, you will have to figure it out. Do this: Only use multiples of +-90. The way you figure it out is to start with which board rotation makes the Z change in the correct way and enter/save that, then it is just a matter of what Yaw you need to add to make X and Y work with the correct board face and in the correct direction.
With rotate virtual attitude and aux mag orientation all at zeros I get an almost steady PFD that shows the horizon being level. The instructions say to look up your value and then immediately skips to when changing these settings make sure to click the red arrow. It doesnt tell you where to put in this value or even if you have to. That just opened a large can of confusion. I decided to read the entire page that you linked and came across that before the "Rotate Virtual" when you have an aux mag. So just thought I would ask for some clarification.