cleanflight / cleanflight

Clean-code version of the baseflight flight controller firmware
http://cleanflight.com
GNU General Public License v3.0
2.61k stars 1.39k forks source link

AfroMini - gyro and baro not working #163

Closed ledvinap closed 10 years ago

ledvinap commented 10 years ago

Gyro and baro does not work(works only sometimes) on last version of AfroMini (white-black PCB). Baseflight works fine.

Any idea where to look?

hydra commented 10 years ago

I had a similar issue with the Gyro/Acc on the CC3D on Sunday. Sometime after power on i'd just get a flashing status light, other times it would work fine. Not sure what the issue is yet. I did write some MPU6500 detection code, but this, iirc, isn't enabled on the NAZE target...

hydra commented 10 years ago

My bad, 6000, not 6500. Support for the 6500 IS present however and that was added recently. Do you know which version of cleanflight does work on it?

Sensor initialisation is done in sensors/initialisation.c, you can see the history here:

https://github.com/cleanflight/cleanflight/commits/master/src/main/sensors/initialisation.c

ledvinap commented 10 years ago

In my case boot sequence is ok, but when I connect with to configurator, GYRO and BARO data are missing, but ACC seems ok. Also ahrs is tracking only ACC data (works as low-pass filter)

ledvinap commented 10 years ago

Old (green) board works fine, new white ones do not (two of them). The components and layout does seem exactly the same.

I'll try to bisect the problem. I did not try older version on them yet.

ledvinap commented 10 years ago

Seems that I did something wrong. I can't reproduce it now ...

ledvinap commented 10 years ago

Maybe I did not wait long enough for gyro to initialize/pass self-test. Sorry.