Calibrate magnetometer located inside MPU-9250 sensor
Create a connection to the BeagleBone Blue hardware. This connection reuses the IP address, user name, and
password from most recent connection to the BeagleBone Blue hardware. The resulting object,
the BeagleBone Blue hardware. For more information on creating a connection to BeagleBone Blue hardware, see
bbblue = beagleboneblue
bbblue = beagleboneblue with properties: DeviceAddress: '126.96.36.199' Port: 22
calibrateMag function. Hold the hardware parallel to the
ground and move it in a figure 8 pattern for 15 seconds. The function starts an internal
calibration algorithm and then returns a message indicating the status of the
Press ENTER to start the calibration Move the hardware in a figure 8 pattern for 15 seconds. For more information, see Calibrate the Magnetometer in the MPU-9250 Sensor. Magnetometer calibration in progress. Continue to move the hardware in a figure 8 pattern. Magnetometer calibration successful.
During calibration, ensure that the hardware is stable and is far away from any magnetic interference.