Compass Mode differences

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
User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Compass Mode differences

Post by jevermeister »

Hi Alex,
I tested the dev Version where one can enable the old stability mode. The stability works better for me now.

But I think I have a small problem there, it seems that the compass mode works different now - my xopter is twitiching back and forth all the time while trying to keep the current heading.

Can you help me out of it? I isolated the part wih the different stability mode and inserted it into the patch2 code to keep all my changes.


Nils

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

Re: Compass Mode differences

Post by dramida »

Please check the magnetometer if reacts accordingly.
How should be the sensor axis directions
TILT the MULTI to the RIGHT (left side up):

MAG_ROLL, ACC_ROLL and GYRO_ROLL goes up
MAG_Z and ACC_Z goes down
TILT the MULTI forward (tail up):

MAG_PITCH, ACC_PITCH and GYRO_PITCH goes up
MAG_Z and ACC_Z goes down
Rotating the copter clockwise (YAW):

GYRO_YAW goes up
The copter stays level:

MAG_Z is positive ; ACC_Z is positive

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: Compass Mode differences

Post by Alexinparis »

Hi,

That's why I prefer to stay and improve the 1.8 LEVEL mode. ;)
The 1.7 LEVEL is ok, but with a very simple implementation of heading deduction.

I've just uploaded a new dev version with some tweaking about the level mode.
Could you try ?

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: Compass Mode differences

Post by jevermeister »

Hi Alex,
in the meantime I analyzed the sourcecode and saw that the compass heading is way more simple, I tried to inject the new one into the old code but this is far above my udnerstanding.

I will try the new code as soon as possible and report back.

@dramida: The compass is ok, I tested it with 1.8 and tuned the code according to Alex's guide - as Alex just stated, it is the code .

Thanks for your help I appreciate that!

Nils

Post Reply