Help - Yaw and pitch reversed only to motor output

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

Getting frustrated, I am using the Crius SE board with 2.0 loaded/configured - spectrum dx7 w/telemetry - Orange RX 7 Channel with satellite (tried without satellite as well). Believe I have everything working except the yaw and pitch are reversed but only to motor output. GUI shows everything working and trimmed correctly. I have tested all motor positions and rotations, tried to manually reverse channels on rx to board (but then showed in GUI wrong and would not arm motors). I have also noticed I can arm motors with roll/ailerons?
Is this something I missed in the code, a TX/RX issue, or a faulty board? Anybody else have this?

Eggplant
Posts: 6
Joined: Fri Jun 22, 2012 2:34 am

Re: Help - Yaw and pitch reversed only to motor output

Post by Eggplant »

Reverse those two channels on your transmitter. I had to do the same for my DX6i.

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

Eggplant wrote:Reverse those two channels on your transmitter. I had to do the same for my DX6i.

reverse them as in reverse each channel or swap channels?
I swapped channels on the receiver and that works to a degree, however elevator arms motors as does ailerons - rudder no longer has an effect
while the signal to motors is correct now the gui is now backwards plus above mentioned arming issues?

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by bill516 »

Reverse those channels in the Tx menu, although there is an option to reverse Yaw in the config.h just under the options for copter type. What mode are you using ?

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

DX7 was setup in plane mode (mode 2), throttle on left. I have tried reversing those two channels in tx menu , it just reversed the stick movement. Like I said everything shows correct in gui however the actual signals to motors seems to be reversed, yaw is pitch and pitch is yaw (but arms correctly and LCD programs correctly)

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by bill516 »

Then you need to swop the yaw and pitch connections on the Rx. Have you double checked the connections with the connection diagram on the connecting elements page

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

thecowboy01 wrote:
Eggplant wrote:Reverse those two channels on your transmitter. I had to do the same for my DX6i.

reverse them as in reverse each channel or swap channels?
I swapped channels on the receiver and that works to a degree, however elevator arms motors as does ailerons - rudder no longer has an effect
while the signal to motors is correct now the gui is now backwards plus above mentioned arming issues?


I have tried that

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by bill516 »

Have you moved the connection from Yaw to Pitch and Pitch to Yaw on your Rx. The connection that goes from Rx to your multiwii board.

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

yes physical connections have been changed - the good: allows the channels to be correct and axis are normal
- the bad: the gui becomes wrong and arm/disarm is now the elevator (pitch) on tx
Ive come to think it has to be 1: I missed something in the code I uploaded
2: a parameter on the tx i dont know about

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by bill516 »

It cant be the code as the code only allows arm via YAW by default, you have to change something to get to arm differently. It might sound daft but have you checked the output of the Rx channels with a servo to stick inputs, i.e. Pitch moves servo in elevator channel. The only other problem I have come across with wrong direction has been with the orientation of sensors.

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

I will verify with servos tonight, but wouldnt a wrong channel from rx show wrong in the gui?

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by bill516 »

It should do, I'm just trying the easy ideas.

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

Well as I suspected with servos connected the rx sent the correct signals to the servos....This is the second rx I have placed on this board with the same results.....getting ready to chalk this up as loss abd go back to aeroquad....
To recap signals to board are good and verified by gui.....however actual outputs to motors show pitch and yaw reversed even though yaw still arms and disarms motors (side note: roll or aileron also arms and disarms motors)....may be wrong but this tells me the board and/or code is messed up

BasTijs
Posts: 5
Joined: Thu Jun 21, 2012 7:39 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by BasTijs »

tried changing the channels in your TX? In my hitec aurora I had to switch the elevator and rudder between 2 and 4. So not switching the sticks but the actual channels.

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

Hmmmm ill have to see if i can do that in my dx7

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

It doesnt appear the DX7 is capable of making that change? - there has to be a line of code that changes the values in multiwii 2.0 to either change the motor ouput or change the channel?

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by bill516 »

I'm sorry but I'm plumb out of ideas, other than start from scratch, delete model in Tx and clear the eeprom on the board then set up Tx and re-load code, you will probably need to re-calibrate esc's but thats part of starting from scratch.

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

May try my 72mhz tx and rx just for giggles to rule it out

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

tried 72mhz rx and tx - same issue - absolutely has to be either board, code or both

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by bill516 »

You've tried two Tx and same result, many people have used same code and no problem, so being the Sherlock that I am it must be the board. Can you post a pic of the board somebody might see what the problem is , it sure is a weird one.

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

http://www.goodluckbuy.com/mwc-multiwii-se-standard-edition-4-axis-x-mode-flight-control-board-quadx.html
Just a multwii crius se v0.2 ..came with 1.9 uploaded 2.0 before trying it out.....

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by bill516 »

Well you shouldnt have a problem unless lots of other people have and havent said anything. Only thing I can suggest is load the 1.9 code and see what happens or load the eeprom clear sketch from the Arduino programme then try sketches again. I have had problems in the past where one sketch has not completely overwritten the old sketch and it would not work.

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

Have to give those ideas a shot ....ill have to run the 1.9 gui correct?

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by bill516 »

It shouldnt really matter 1.9 or 2 but may as well start from scratch. I havnt come across anyone who has had a problem moving from one version to another other than the Arduino 1 instead of 022 and opening all the tabs with the *.ino.

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

reloaded still the same.....this is just crazy!!! I numbered the motors, rotations correct, rx swapped (2.4 to 72mhz then back) rx cables to board triple checked, tx outputs, motor rpms, ranges, switches and readouts all show good in gui... everything seems to work but those two damn channels reversed but only to the motors!

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

there has to be a multiwii code god that can help me fix this?

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by bill516 »

I'm well truly confused, could post a vid of what is happening it might help to make a bit more sense.

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

Have to get everything together with a cam

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

Made one but do not know how to post video?

bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by bill516 »

Not sure how to upload a vid to here but you could always upload to one of those hosting site,s a lot of people seem to use U TUBE and paste the link in a post.

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »


bill516
Posts: 334
Joined: Sun Aug 07, 2011 12:27 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by bill516 »

Right had a look at your vid and I'm still none the wiser. Could you do a close up of the Rx and connections and the connections to the board, still image might be better for them and re-do the vid but dont do close on the copter if we can see copter and your stick inputs that would be great, if you could get the GUI in it as well that would be the cherry on the cake. As I've said before its got to be with the board as lots of others have used this combination before and are happily flying. Do you know what channels 1 to 7 are in respect of Rudd, Ele,Ail and Throt i.e. channel 3 throt etc.

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

Re: Help - Yaw and pitch reversed only to motor output

Post by jevermeister »

Hm,
two friends of mine have the exact same combo:
DX7 crius SE and have no problems at all.
We had to do servo reverse at startup and set the tx from pwm to ppm as well as setting the endpoints of the tx.

Nils

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

Pwm to ppm? Thought that was for satellite only?

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

Re: Help - Yaw and pitch reversed only to motor output

Post by jevermeister »

Hi,

let's try it step by step:

Read the FAQ here:

http://www.multiwii.com/faq

and especially do the tests described under

"How should be the sensor axis directions"

Maybe the board is reversed. Or the sensor orientation in the code is wrong.

Report back if you have done that.

Do not give up mate - the problem seems to be systematic, i am pretty sure we can fix that and you can start fly.

Nils

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

Here's the tricky thing though - board is reading the correct stick movements in GUI yet output is incorrect
the sensor orientation I will check again today in stable mode and see how GUI reports it
This has to be something simple as everything seems to work except the two channels reversed

Dan

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

Re: Help - Yaw and pitch reversed only to motor output

Post by jevermeister »

Dan,
if you pitch front or roll left is the copter doing it too?

It is important to know if only inputs result in reversed movements or the correction done by the sensors.
I know you already checked it but it sounds like a switched motor connection.

Nils

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

when I pitch it seems to yaw
when I yaw it pitches
when I roll it rolls
throttle = throttle

As for the motors - I plugged each into a esc program card (to get beep and movement) then placed dots on the BEC wire signifying the numbered position
but will sure check them again

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

Re: Help - Yaw and pitch reversed only to motor output

Post by jevermeister »

If the motors are switched the copter would not hover a splitsecond and wobble to death.

It is strange if you say, that that the channels are shwon correctly in the gui but the copter behaves different. At firs I thought of wromg channel connection but then the gui should show that.
If the motors are switches the copter will not fly at all. it will instantly flip.
So perhaps the sensor layout is wrong in the code? But as stated before - a friend of minr had no problem with the standard define of the crius board.

Can you hove the copter?Hold it in your hand and throttle up (please be careful)

Possible errors can be:
switched motors
switched channels
motor spinning direction
sensor direction

You have to review your set up step by step.

I know this sucks but I have done this a few times myself :-)

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

No i totally get you - I was a USAF aircraft mechanic for a long while
I will recheck these areas sometime today

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

Ok,
Motors position - all wired to correct position
Channels assignment - each show correct in GUI
-- roll functions correctly, yaw left on stick = pitch back yaw right on stick = pitch forward, pitch back on stick = yaw left, pitch forward on stick =seem to increase all motor speeds
Motor rotation - correct as defined for quad x mode
sensors - here we have an issue in stable mode
manual pitch forward - fights back
manual pitch back - does not
manual roll left - fights back
manual roll right - does not

**note all esc's have to be re-calibrated

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

Re: Help - Yaw and pitch reversed only to motor output

Post by jevermeister »

can you send me your config.h per mail?

pm me for the adress. I want to see if there is something wrong.

Nils

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

Re: Help - Yaw and pitch reversed only to motor output

Post by jevermeister »

Okay - got your mail.
Nothing has been changed between 2.0 and the dev you are using.

The config.h seems correct to me.

When you connect the copter to the GUI and tilt it in your hand (motors off) does the copter move correctly?

Tilt it to left copter in gui is doing the same? same for front etc.

is the behavior you are describing with acc on/off the same?

Be sure to turn off mag mode to exclude a bad magnetic field inside.

If the copter in gui is behaving different - the sensor orientation is wrong somehwere and we have a first clue where to look.

If you have the copter in hand (motors on / hover mode on) the copter should fight your movements if you are above minthrottle. So if you try to pitch forward it should throttle up the front motors (same for every direction) If you want to yaw it very fast you should notice that two motors are throttling up and should notice a slight resistance to you movement.

(be sure to turn off mag and baro mode at first)

Checklist:
1. Engines off - copter is moving correctly in reality and in GUI (mind hte arrows above the copter graphc)
2. Engines on (careful!!) copter is fighting your movements in stable mode - be sure to throttle above min throttle

Nils

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

yes the orientation on the gui is correct following all axis
manual pitch forward - fights back
manual pitch back - does not
manual roll left - fights back
manual roll right - does not

**note all esc's have to be re-calibrated

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

need to mention as well during stable mode test gui shows correct motors increasing rpm

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

Re: Help - Yaw and pitch reversed only to motor output

Post by jevermeister »

thecowboy01 wrote:yes the orientation on the gui is correct following all axis
manual pitch forward - fights back
manual pitch back - does not
manual roll left - fights back
manual roll right - does not

**note all esc's have to be re-calibrated


by manual - you mean with the hand, that is hoding your copter?

so if you are doing this and the gui shows everything correctly - the you can be sure that the software and the sensors are ok and set up correctly.

(acc calibration done?)

it it absolutely strange, that the copter is fighting back at pitching forward but bnot at pitching backwards. is it fighting back tiwh bot motors equally on the working sides and are both motors are not fighting backl at the non working sides?

Nils

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

Yes manual=hand movement
I agree software and sensors seem to be ok
let me double check on motor strengths

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

motors do seem to be same approximate strengths / RPM

I also agree this all very strange - as if the board outputs are incorrect after the processing, however this is a mass production board although it was ordered from china (which does not have the best regards to quality control)

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

Re: Help - Yaw and pitch reversed only to motor output

Post by jevermeister »

Have you tried the EEPROM clear thingy mentioned at the beginning?

The board of my friend is broken too but is doing nothing sometimes - but this problem is super strange.

Nils

thecowboy01
Posts: 33
Joined: Fri Jun 22, 2012 7:46 pm

Re: Help - Yaw and pitch reversed only to motor output

Post by thecowboy01 »

I have overwritten it with 2.1 code
As far as clearing the eeprom first before an upload i dont know how

Post Reply