Magnetometer

The magnetometer block is simply a rotated environment magnetic field where the temperature of sensor has been added (same as before OAT + 60). S-function has 4 port for magnetometer readings (the internal one and 3 external - HMR2300, LIS3MDL, HSCDTD008A-). Also you can simulate another magnetometer and send the information by a serial port. Just as IMUs, user must have in mind how the magnetometer is mounted (rotation matrix). Therefore, the signal could be crossed as in the example below. You can use a Matrix multiplication block, or if it is simple, you can change directly the orientation with a selector crossing block.

../../_images/magneto.png

Magnetometer