Hi,
i looked a alexmos code .. but he changed the complete IMU.ino .. so it would be some work to extract just the acc-z code ..
there is also another guy that has done some work with acc -z .. (german)
http://fpv-community.de/showthread.php?10765-Funktionieren-bei-Euch-Kompass-und-Baro-vern%FCnftig&p=163807&viewfull=1#post163807i found a way now that seems to work.. because my "free IMU (MS baro) copter" burned one motor i have just a small one with a bmp085 to test.. and as you may know a acc-z implementation can not rise the resolution of the baro .. it can just slow the movements inside of it.
here is a GPS PSH video with my acc-z code active
https://vimeo.com/45212455you should know that this mini copter is 20cm motor to motor diameter.
i dont know how good this is compared with other copters with a bmp085 because this is the fisrt bmp085 i own

but in my testes it is much better with acc-z active. i should be even better with a MS baro.
in the IMU.ino i did some debug settings fo a simpler compersion..
Code: Select all
//#define ALT_ACC_ONLY // disables the Baro's values so alt hold works just with ACC-Z .. for debug
//#define ALT_BARO_ONLY // disables ACC z runs just like it was without any mod
int16_t accAltP = 30; // 10-99... 30 is default
int16_t accAltI = 30; // 10-99... 30 is default
int16_t accAltD = 15; // 10-99... 15 is default
http://code.google.com/p/multiwii/source/browse/branches/ronco/accZ_playground/MultiWii/IMU.ino#269i dont know if my PID settings work like a PID controller should

here the impacts:
- P = the force of the ACC-Z influence
- I = duration of the ACC-Z influence (how long it will act after a movement is detected)
- D = how the force curve will fade away
you can also disable my mod (#define ALT_BARO_ONLY) or test it with just ACC-Z (#define ALT_ACC_ONLY)..
when i recive my replacement motor ill do some tests (videos) with a larger (50cm diameter) MS baro copter

regards felix