9250 magnetometer calibration question

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
viktor_au
Posts: 342
Joined: Fri Jan 26, 2018 12:30 pm
Location: South Australia
Has thanked: 44 times
Been thanked: 60 times
Contact:

9250 magnetometer calibration question

Post by viktor_au »

Question to Matrix team

I managed to calibrate 9250 Acc/Gyro.
To calibrate the 9250 magnetometer I need access to mX, mY, mZ.
However 9250 component allow only to CollectXYZdata for Acc and Gyro.
Magnetometer access is restricted to: UpdateCompassData and ReadingBearing raw values.
Does it mean I have no way to calibrate the FC8 mpu9250 magnetometer?
What I am missing?

viktor_au
Posts: 342
Joined: Fri Jan 26, 2018 12:30 pm
Location: South Australia
Has thanked: 44 times
Been thanked: 60 times
Contact:

Re: 9250 magnetometer calibration question

Post by viktor_au »

When the mouse is over the CallComponentMacro->MPU9250->CollectXYZData
The floating message says:
Collect the data from the local accelerometer buffers.

Probably it should mean:
Collect the data from the local acc, gyro and magnetometer?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: 9250 magnetometer calibration question

Post by Benj »

Hello,

Many thanks for letting us know of the issues.

I have now added a new macro called ReadCompassCalibration which should allow you to read the mX, mY and mZ values. It may be we could do the calibration for you when reading the compass values to make the component easier to work with.

I've also tidied up the info tooltip for the CollectXYZData macro.

The new components should now be available as part of the check for updates.

Post Reply