Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accelerometer calibrating problem #2781

Closed
tgreif opened this issue Feb 15, 2018 · 18 comments
Closed

Accelerometer calibrating problem #2781

tgreif opened this issue Feb 15, 2018 · 18 comments
Labels

Comments

@tgreif
Copy link

tgreif commented Feb 15, 2018

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?_

@shellixyz
Copy link
Collaborator

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.

@tgreif
Copy link
Author

tgreif commented Feb 15, 2018

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.

@giacomo892
Copy link
Collaborator

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

@tgreif
Copy link
Author

tgreif commented Feb 15, 2018

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

@shellixyz
Copy link
Collaborator

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 ?

@tgreif
Copy link
Author

tgreif commented Feb 15, 2018

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

@tgreif
Copy link
Author

tgreif commented Feb 15, 2018

the cleanflight and betafliegt (simple calibration work)

@tgreif
Copy link
Author

tgreif commented Feb 15, 2018

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

@shellixyz
Copy link
Collaborator

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.

@tgreif
Copy link
Author

tgreif commented Feb 15, 2018

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?

@shellixyz
Copy link
Collaborator

shellixyz commented Feb 15, 2018

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.

@tgreif
Copy link
Author

tgreif commented Feb 15, 2018

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

@shellixyz
Copy link
Collaborator

shellixyz commented Feb 15, 2018

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.

@junwoo091400
Copy link
Contributor

Just Maybe related to this??

#2806

@shellixyz
Copy link
Collaborator

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.

@tgreif
Copy link
Author

tgreif commented Feb 22, 2018

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 tgreif closed this as completed Feb 22, 2018
@DavidFpv
Copy link

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

@Sedgee
Copy link

Sedgee commented Dec 23, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants