Page 1 of 1
MAG and BARO problem
Posted: Thu Dec 08, 2011 7:19 pm
by vadda
Hi,
I've problem with MAG heading Hold and ALT hold.
My board is a an MCW with Arduino Pro Mini + Drotek 10DOF, Multiwii 1.9
All seem to work, in the GUI can see MAG data, configured AUX2 to enable/disable MAG and BARO (turn on green when activated) but when in fly no heading hold or ALT hold.
In my .elf ".data : 1460 bytes"
In config defined TRUSTED_ACCZ
Any idea?
Please help.
Thanks in advice
Re: MAG and BARO problem
Posted: Thu Dec 08, 2011 9:46 pm
by Niclas Hedlund
Hey!
I was just gonna make a thread with the same content.

I have the same problems. Nothing happens except that the boxer become green when I activate Mag and Baro.
I have ITG3200, NUNCHACK, BMP085 and HGC5883.
But my TRUSTED_ACCZ has been commented out by mistake, so I haven't tried with that enabled. (Will that make any difference?)
The magnetometer is accurate even during high throttle, so I don't have any problem with EMC from engines/ESC.
I'm using the latest commited code in Alex main-trunk. (rev-411)
Re: MAG and BARO problem
Posted: Thu Dec 08, 2011 10:45 pm
by vadda
Hi,
when apply trottle the MAG signals become a bit noisy but do not loose too much linearity,
instead ACC signal do not have any changes.
All other function seem work well.
My version is :
http://code.google.com/p/multiwii/downloads/detail?name=MultiWii_1_9.zip&can=2&q= Date 12-Nov-2011
Re: MAG and BARO problem
Posted: Fri Dec 09, 2011 9:41 am
by dramida
My mag is working, when i enable it, the copter slowly returns to original position when i change the direction holding it with my hands. Check your signs in config.h where the mag axis are defined and then rotate your copter and tilt during rotation to see the correct working on gui.
Tested Alt hold with ziss_dm concept and it doesn't work accordingly. It has jumps about 4 meters. My accelerometer ADXL345 Zaxis is trusted.
Re: MAG and BARO problem
Posted: Fri Dec 09, 2011 4:38 pm
by vadda
Ok, I've done some testing without props.
With half throttle and MAG activated, if rotate the Quad on yaw axis, two motors increase rpm a little and
when disable MAG all the 4 motors returns at same throttle.
On BARO activation, instead, no change at all.
In fly, no valid correction.
Also increased P on MAG with no effect.
Re: MAG and BARO problem
Posted: Sat Dec 10, 2011 12:24 am
by vadda
After some test I've realized that MAG correction is very soft, also with P set to 20 (MAX).
Previously I've tryed only MegapiratesNG and MAG holding is very very stiff compared to MultiWii (same frame but another FC board, BlackVortex).
Now triyng with MAG P set to 15, waiting tomorrow to test in fly.
Can anyone test MAG GUI output with half throttle and post the result ?
Maybe my MAG have too much noise from motors ?