HMC5883 is flipping and does crazy thinks at flying back

Post Reply
schmo90
Posts: 3
Joined: Sun Dec 29, 2013 11:33 am

HMC5883 is flipping and does crazy thinks at flying back

Post by schmo90 »

Hy my magnetometer HMC5883 has a realy annoying behaviour.

It works pretty well on the ground and forward flighting

but if i want to pitch back he flips 180° in the other direction.
This is also in the gui visible

if the sensor is on the ground it works nice.
If i pitch it 90° back => it flips directly 180° to the other side.

What can i do?
I Also tried to changes #define MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = X; magADC[PITCH] = Y; magADC[YAW] = Z;}
- + swapped x,y,z
Then calibrate mag new
=> nothing happend

this is my sensor
http://www.amazon.de/SainSmart-HMC5883L ... ds=HMC5883

HMC5883 spinnt, dreht bei rückwärtsflug um 180°!

Beitrag #1 von schmo90 » 05.02.2014 00:36:13
Guten Tag habe ein riesiges Problem was sich irgendwie nicht lösen lässt

Habe von amazon den HMC5883 in meinen Nanowii (Multiwii 2.3) verbaut funktioniert soweit relativ gut

AUßer ich fliege nach hinten!!
Sobald der Kompass 90° nach hinten steigt hübt er schlagartig in die entgegengesetzte richtung nicht nur in der GUi sondern auch im Realen Flug!

Wie kann man das problem beheben?

Habe die Orientierung shcon oft angepasst, ca 10000x mal neu kalibriert jedoch nichts scheint zu helfen.....
bitte um hilfe, sofern das forum noch aktiv ist....

Post Reply