Need to run MultiWii board 45 degrees clockwise

Post Reply
kad
Posts: 18
Joined: Sat Jun 09, 2012 1:33 am

Need to run MultiWii board 45 degrees clockwise

Post by kad »

Hello all,
I just received a MultiWii 2012 board (The one Terri Wang sells on eBay). I'm switching from a KK board and, rather than completely rebuild my quad (ESC wiring to the power board is just long enough for the current "diamond" orientation of the KK setup), I want to run the board 45 degrees clockwise from the forward arrow on it. I know I need to change the sensor orientation, but I cannot figure out exactly how to do so. It seems to be a nice board, but all the documentation on the CD it came with is in Chinese. :(

I believe these are the lines I need to change (from the def.h file), but I can't seem to find a reference as to how to do so properly.

Code: Select all

#define ACC_ORIENTATION(X, Y, Z)  {accADC[ROLL]  = -X; accADC[PITCH]  = -Y; accADC[YAW]  =  Z;}
#define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] =  Y; gyroADC[PITCH] = -X; gyroADC[YAW] = -Z;}
#define MAG_ORIENTATION(X, Y, Z)  {magADC[ROLL]  =  X; magADC[PITCH]  =  Y; magADC[YAW]  = -Z;}

The board is running MultiWii 2.0.

Any assistance would be much appreciated!

-K

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: Need to run MultiWii board 45 degrees clockwise

Post by PatrikE »

You can switch between Quad X or + in config.
I think it should do the trick for you.

kad
Posts: 18
Joined: Sat Jun 09, 2012 1:33 am

Re: Need to run MultiWii board 45 degrees clockwise

Post by kad »

Won't that cause problems with motor control? The quad itself is an X quad, I just need to be able to mount the board 45 degrees clockwise from "normal". KK boards are mounted "point forward" and I need to be able to mount the MW where a KK was.

-K

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: Need to run MultiWii board 45 degrees clockwise

Post by PatrikE »

When you mount the card in 45 The motors will be in a natural + configuration against the board.

You can also setup a Delta wingmix in the radio.
It' probobly the easiest way.

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: Need to run MultiWii board 45 degrees clockwise

Post by PatrikE »


kad
Posts: 18
Joined: Sat Jun 09, 2012 1:33 am

Re: Need to run MultiWii board 45 degrees clockwise

Post by kad »

PatrikE wrote:You can find the refereces in the Faq.
http://www.multiwii.com/faq#How_should_be_the_sensor_axis_directions


I had already looked at that, but that just tells me how the sensors should behave, it doesn't tell me how to modify the defines to account for a change in board orientation. I know I need to change the defines, what I don't know how to do or how to calculate, is what to change them to.

-K

Post Reply