MAG and BARO problem

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
vadda
Posts: 5
Joined: Wed Dec 07, 2011 11:36 am
Location: Italy

MAG and BARO problem

Post 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

Niclas Hedlund
Posts: 16
Joined: Wed Sep 14, 2011 7:00 am
Location: Sweden

Re: MAG and BARO problem

Post 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)

vadda
Posts: 5
Joined: Wed Dec 07, 2011 11:36 am
Location: Italy

Re: MAG and BARO problem

Post 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

User avatar
dramida
Posts: 473
Joined: Mon Feb 28, 2011 12:58 pm
Location: Bucharest
Contact:

Re: MAG and BARO problem

Post 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.

vadda
Posts: 5
Joined: Wed Dec 07, 2011 11:36 am
Location: Italy

Re: MAG and BARO problem

Post 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.

vadda
Posts: 5
Joined: Wed Dec 07, 2011 11:36 am
Location: Italy

Re: MAG and BARO problem

Post 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 ?

Post Reply