inav icon indicating copy to clipboard operation
inav copied to clipboard

Accelerometer calibrating problem

Open tgreif opened this issue 8 years ago • 18 comments

Sp Racing F3 "LHI Official Store" INAV 1.8.0 /Chrome: 61.0.3163.100, Configurator: 1.8.0

Behavior

hi everybody i've installed Inav to my new SP racing F3 controller, with external OLED display Barometer (i2C) magnetometer (i2C) and gps (Seriale) everything is working well . but i'm not able to calibrate my Accelerometer (sure i'm using the 6 point calibration) . I've tryed so many times in different conditions.

Please give me a hint where I can make it work Is this a new feature request?_

tgreif avatar Feb 15 '18 19:02 tgreif

Make sure you calibrate the accelerometer relative to the board not relative to the model. The arrow in accelerometer-calibration-steps represents the arrow on the board not the front of the model.

shellixyz avatar Feb 15 '18 20:02 shellixyz

hi shellixyz. thanks for response but i think that i did like this . image where yhe arrow is the direction of arrow on FC. "top,bottom,left up right down.

tgreif avatar Feb 15 '18 20:02 tgreif

As soon you did 1 and 2 you can randomly do the other 4 steps and it should work ok.

giacomo892 avatar Feb 15 '18 20:02 giacomo892

yes it should but unfurtunatly it does not, thanks for response . i'm hoping in the new version if inav there is an tool.

tgreif avatar Feb 15 '18 20:02 tgreif

What do you mean by "the calibration doesn't work" ? You get a red cross in the configurator next to "Accelerometer is calibrated" ? In the next version of the configurator I think there will be a guide to indicate each step but the procedure will stay the same. After the calibration what are the values of the acczero_* and accgain_* settings ?

shellixyz avatar Feb 15 '18 21:02 shellixyz

hi , i mean the red cross in the configurator,, image accgain 4096- image instead acczero is 32760 image

tgreif avatar Feb 15 '18 21:02 tgreif

the cleanflight and betafliegt (simple calibration work)

tgreif avatar Feb 15 '18 21:02 tgreif

i send only the first fotos , top and bottom for limit the data img_20180215_225254 img_20180215_225300

tgreif avatar Feb 15 '18 22:02 tgreif

You can check if your accelerometer is working correctly. In the configurator go in the sensors tab and look at the accelerometer curves. When your FC is flat the green and blue lines should be near 0. When on the side the green and red lines should be near 0. And when on the front the blue and red lines should be 0.

shellixyz avatar Feb 15 '18 22:02 shellixyz

thanks . i think there is an problem on it image blue line is always under 0 between -3 and -4 depending on the position. so i will try to change it , i have an external board with the 6050 . i will connect to i2c . do i need to cut the original one ?? what pin?

tgreif avatar Feb 15 '18 23:02 tgreif

Indeed that would explain why the 3 axes calibration does not work. You probably can use an external board with a 6050 MPU but not without modifying the source code I'm afraid. The code only expects the MPU to be connected to the "internal" I2C bus. If you have the tools and the skills to do it the best would be to replace the defective MPU.

shellixyz avatar Feb 15 '18 23:02 shellixyz

thank , i think that i will do the next days in my lab. WHAT DO YOY THING WHAT IS THE BEST FC for inav ?

tgreif avatar Feb 15 '18 23:02 tgreif

The best one is the one suited for your project. It depends what you want to do with it. What sensors you need, how many UARTs, how many outputs, the maximum size... I personally often use Omnibus boards with F3 or F4 MCUs.

shellixyz avatar Feb 15 '18 23:02 shellixyz

Just Maybe related to this??

https://github.com/iNavFlight/inav/issues/2806

junwoo091400 avatar Feb 22 '18 15:02 junwoo091400

I was asking myself the same thing but I'm not sure the PR for the fix changes the way the accelerometer data is read. His issue was clearly that the data for the X axis was wrong.

shellixyz avatar Feb 22 '18 17:02 shellixyz

hi everybody . thanks a lot to all. i 've tried a cc3d and everything is working well. today is arrived my new sp racing f3 . only 3 minutes to set up and calibrate. i will change or disable the broken Accelerometer on the other fc . now i will first do everything with my new one . . today i try to connect my Bluetooth on the serial for to connect with the android device . bye

tgreif avatar Feb 22 '18 18:02 tgreif

hello, I'm trying to calibrate my flight controller and ran into a problem. When I point it to the right the calibration is done as if the board is pointing down.

image

DavidFpv avatar Oct 17 '20 07:10 DavidFpv

hello, I'm trying to calibrate my flight controller and ran into a problem. When I point it to the right the calibration is done as if the board is pointing down.

image

Hi David, Did you manage to resolve this? I'm getting the exact same problem with a GEPRC SPAN F722 HD BT FC board using INAV 2.6. The board is aligned correctly with the arrow on top pointing forward. I have corrected 90deg yaw which makes the graphic in Setup page correct but when I go into sensors it shows that the orientation is out by 90deg. If I set yaw back to 0deg then the Sensors page shows it working correctly but the Setup page graphic is out 90deg on yaw. Either way I get the same result as yourself when calibrating Accelerometer. It says it's worked and health in setup says good but craft doesn't match graphics....same as your pic. Any help would be appreciated.

Sedgee avatar Dec 23 '20 02:12 Sedgee