paynterf / MagCalTool

Magnetometer calibration GUI. Uses Octave to run MATLAB script on magnetometer point cloud
12 stars 1 forks source link

Soft-Iron matrix seems strange #5

Closed RafigRzayev closed 2 years ago

RafigRzayev commented 2 years ago

Hello,

The soft-iron matrix that the program outputs has very strange values.

When I use identity matrix for soft-iron, my yaw angle has ~5 degrees error. When I use soft-iron matrix generated by the program the angles don't make sense anymore.

When I check other examples, most soft-iron matrices are usually similar to identity matrix by the values.

Below you can find my output: 10k

Hard-iron offset values are correct.

How this values should be used?

I expected following usage: Capture1

I would appreciate your help.

paynterf commented 2 years ago

Sorry if this isn't working so well for you, but I'm not really an expert on the actual calibration routine - my program just makes calls into Alain Barraud's MATLAB program, as explained in this blog post.

However, it does look like the raw data shown in your screenshot is getting properly calibrated. The view in the 'Calibrated' window looks quite symmetric about the origin so the calibration matrix appears to be correct (the points in the 'Calibrated' window are generated by applying the calibration matrix point-by-point).

RafigRzayev commented 2 years ago

Hello.

Ok, I understand. No problems then. In case I find out anything I will post details here.

Big thanks for the tool.