mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.31k stars 3.63k forks source link

Accelerometer calibration problem #4126

Closed marstonstudio closed 8 years ago

marstonstudio commented 8 years ago

I am unable to complete the Accelerometer calibration using QGroundControl.

When I complete the orientation steps, I see a message in the console 'Info: Calibration Succesful'. When I try to arm it, I see a message 'Critical: PreArm: Accelerometers calibrated requires reboot.'

However after rebooting my system, when I reconnect QGroundControl, the accelerometer is still red and there is no record of the calibration.

Is there anything special I need to do to save the values before rebooting my copter?

I am running APM:Copter V3.4-rc4 (9ea82ab9) on a Navio2 with a Raspberry Pi 3. I am able to complete the calibration successfully using Mission Planner on Windows, but I'd rather use QGroundControl on my Mac.

Happy to submit logs or any other debugging info if this is a bug. Grateful for any guidance if I'm missing a step.

( previously posted in google group: https://groups.google.com/forum/#!topic/qgroundcontrol/E_eQkDfIZhQ )

DonLakeFlyer commented 8 years ago

@marstonstudio Can you go through the sequence of steps again which fails. Then after you reboot and Sensors still shows red. Save your paramateres to a file on post here.

marstonstudio commented 8 years ago

Attached are parameter files from before calibration, after calibration, and after reboot. I have also attached a screenshot showing the values that I got after completing the accelerometer calibration.

screen shot 2016-10-20 at 9 32 46 pm

aftercalibration.params.txt afterreboot.params.txt beforecalibration.params.txt

DonLakeFlyer commented 8 years ago

Perfect, I understand the problem now. Working on a fix. The bug is that the indiacator is incorrect since you only have one accelerometer. Workaround is to set INS_USE2 and INS_USE3 to off. Then the indicator should go green.

marcebdev commented 8 years ago

Sorry I was looking at this myself and hadn't been working for me either. Though the "Navio2 contains two 9DOF IMU - MPU9250 and LSM9DS1" as found in the official Navio 2 Docs. So I'm not sure what you mean by theres only one accelerometer?

staroselskii commented 8 years ago

@Deathstroke5467

Navio 2 has only one IMU. LSM9DS1 is used merely as a compass.