LGDXRobot2 supports ICM-20948, the Magtonometer required manulally calibrating. The Magtonometer Calibration supports both Hard Iron and Soft Iron calibration methods.
Switch to the Magtonometer Calibration tab to view the calibration parameters. If they are not visible, press Refresh.
The current configuration shows the calibration parameters for the magnetometer. These parameters are used to calculate the magnetometer output.
Press Refresh to update the current configuration.
Press Reset Calibration Data to reset the parameters to their uncalibrated state.

The custom configuration allows the calibration parameters to be entered manually. Then press Send to save the parameters.
To discard the soft iron calibration, enter an identity matrix with 1 on the diagonal and 0 on the off-diagonal elements.

Magnetometer calibration obtains parameters for Hard Iron and Soft Iron.

The Soft Iron calibration is under development.