Hello everyone!
I calibrated my quad and flew to check if I am getting variances in EKF since I changed position of battery. I calibrated compass before flight.
I wanted to know whether my velocity and compass variances are in the acceptable limit or not
Do I need to use magfit tool values of compass_mot_* because magfit tool from MavExplorer as well as magfit web tool are not giving good values.
I have uploaded two logs one in which script was run for figure 8 and another a simple rectangle mission for 5 times. Figure 8 Rectangle
But the important doubt i have is, are my velocity variances and compass variances under limit. I also observe that at takeoff the velocity variance suddenly increases and settles in 1-2 seconds. Its the z velocity that is doing this.
You existing calibration is using a large scale value and iron correction. When the fit is done including more than just offsets the MAGFit also finds a large scale value outside of its valid range of 0.8 to 1.2. Because of this it assumes got a bad fit and dons’t show it as a option. You only get then basic offsets only fits.
I guess your using a here2? It requires a scale of 1.2. The WebTool has no options to change the acceptable range of values, but you can using MAVExplorer.
@iampete Its not a standalone board, it is put on the same board where gps f9p is. Both are independent though only having common power supply.
Also what might be wrong? Is it magnetic interference?
Interference should not affect the scale. What unit are you using? If it also supports CAN then you might not be talking directly to the RM3100, often there is a micro controller in the middle.
Sorry, you have exhausted my knowledge. It would be worth getting a known working RM3100 and connect them both at once for comparison. I know one issue that we sometimes see is getting one (or more) of the coils backwards. It would also be worth reading the data sheet to see if there is some way to set the scale factor via pin pull ups/downs which you may have configured differently to usual.
I will insert magfit values and do a test.
How do I come to know that I have achieved good calibration? Is it by looking at compass innovations and scale factor should be close to 1.2 or is there something else?
Also I am continuously getting velocity variances only due to Z velocity innovations high, is it something to do with compass or is it fundamentally different issue. I am not getting any significant innovation in east and north velocity so i doubt it is due to compass. I have uploaded logs at start itself if needed.