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

Sudden height change in ALT HOLD - dangerous #1989

Closed
vmayoral opened this issue Mar 18, 2015 · 9 comments
Closed

Sudden height change in ALT HOLD - dangerous #1989

vmayoral opened this issue Mar 18, 2015 · 9 comments

Comments

@vmayoral
Copy link
Contributor

@rmackay9 and @tridge,

We'd appreciate if you could take a look at this log.

@imuguruza and @ahcorde noticed today (it seems it happened several times) that when taking off in ALT HOLD the copter suddenly gets height really aggressively:

captura de pantalla 2015-03-18 a las 15 43 31

Changing to STABILIZE allowed us to land the copter Has someone else experienced this?

@R-Lefebvre
Copy link
Contributor

Hi Victor, I'm having a look at it. So you're using 3.3-dev, appears to be recent, but not the latest. I believe it's using the new IMU filtering scheme as you have INS_GYRO_FILTER and INS_ACCEL_FILTER parameters. But you also still have AHRS_EKF_USE which I think has been deprecated? BTW, this was not 1, so I believe you were using DCM rather than EKF. You should probably be using EKF.

I do see a permanent, and remarkably consistent offset between the Baro height, and the inertial height estimate. It actually begins before the motors start. Normally this sort of problem is caused by vibrations, but that doesn't seem to be the case here. The vibration levels look good, and as I said, the divergence between INAV altitude and baro altitude begins before the motors even start.

I do notice that your IMU is registering only 8 m/s/s acceleration downward while sitting still. The system basically thinks it is accelerating downward. This is probably the reason for the offset.

I think something went wrong during your accelerometer calibration.

@vmayoral
Copy link
Contributor Author

@R-Lefebvre thanks a lot for taking a looking that up. Just saw what you mean. I'll leave a capture here in case someone experiences something similar.

captura de pantalla 2015-03-18 a las 16 51 47

@vmayoral
Copy link
Contributor Author

Some conclusions posted here.

in a nutshell, it seems to us that these misbehaviors are due to a bad set of parameters (we are using these ones).

For completion, falling back to DCM (forcing it in the code) fixes this sudden changes.

@rmackay9
Copy link
Contributor

@victor,
Looks like you've got IMU (accel, gyro) and compass offsets in that param list. That's fine as long as you're always using the same board.

@victor
Copy link

victor commented Apr 15, 2015

those voices in my head... please make them stop!

@vmayoral
Copy link
Contributor Author

Thanks @rmackay9 for your answer.

We also noticed that while armed, we can't change to GPS-enabled modes (e.g.: we can't change from ALT HOLD to LOITER). Any chance this is being cause by a missconfiguration in the EKF?

@rmackay9
Copy link
Contributor

@vmayoral, it's all guesswork without a log file.

@vmayoral
Copy link
Contributor Author

@rmackay9 rebased the code including latest commits from @priseborough and redid the tests. Looks much better. We can now change modes (we were previous getting EKF VARIANCE every single time) Here's a log.

We'll keep looking into it to make sure issues have been fixed.

@rmackay9
Copy link
Contributor

ok great. let's close this issue then and we can re-open if it reappears.

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

No branches or pull requests

4 participants