HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old Feb 24, 2012, 12:08 PM
Registered User
Joined Feb 2010
21 Posts
Help!
MWC TX channel inversion by software?

Hello everyone!

I have a problem concerning the roll-channel on my MWC.
Everything works great, except for the roll input, it's inverted (Copter stabilizes correctly in all directions but if i want to go right, copter goes left).
Unfortunately i can't change the roll-direction on my transmitter.
Is it possible to change the input direction in the code? If so, how?

Thanks for helping!

Regards & Happy Amps!
-Rob
Rober-t is offline Find More Posts by Rober-t
Reply With Quote
Sign up now
to remove ads between posts
Old Feb 24, 2012, 01:05 PM
Registered User
Spain
Joined Jan 2010
457 Posts
sure u can not do the conversion with the tx?
I had the same issue with a 4 ch spek one and after lof of fighting to get the right code..put a pic of the tx and someone kindly showed me how to reverse it from tx..
Maybe u can give the pic a try.
Saludos,
Jose
Doblao is offline Find More Posts by Doblao
Reply With Quote
Old Feb 24, 2012, 01:44 PM
Registered User
Joined Feb 2010
21 Posts
Hi Jose, thanks for the answer!

yup, unfortunately i'm sure it's not possible to invert the roll direction on the transmitter at least not without switching the pot cables..



btw. don't start discussing if it's good or bad to fly with THIS transmitter, i have an MX22 around for my copter but i want to use this one for indoor flying
Rober-t is offline Find More Posts by Rober-t
Last edited by Rober-t; Feb 24, 2012 at 02:19 PM.
Reply With Quote
Old Feb 26, 2012, 12:25 AM
Multi Rotor Maniac
Stunt Double's Avatar
Australia, VIC, Melbourne
Joined Oct 2007
2,843 Posts
If you can afford a multi-rotor surely you can afford a semi-decent radio. Do yourself a favour and buy a second-hand Spektrum DX6i and smash that ugly lookin' thing with a hammer
Stunt Double is offline Find More Posts by Stunt Double
Reply With Quote
Old Feb 26, 2012, 12:48 AM
Suspended Account
Joined Dec 2010
11,764 Posts
Of course the most sensible thing would be implement what the OP asked for, it's really not all THAT much work.
timecop is offline Find More Posts by timecop
Reply With Quote  (Disabled)
Old Feb 26, 2012, 08:15 AM
Registered User
Joined Feb 2010
21 Posts
Hi stunt-double, thanks for the helpful reply, i'm sure you read my post to the end. I'll pm you my bank account.

Timecop, yupp, that's what i thought as well. Somewhere the stick-input must go in as a value between 1000 and 2000. So the calculation for reversion would be just to add -3000 to the stickvalue and switch from - to + afterwards... (old value-3000)*(-1)

Btw, turning on the transmitter while pressing trim button doesnt work with this tx, tried that already
Rober-t is offline Find More Posts by Rober-t
Last edited by Rober-t; Feb 26, 2012 at 08:29 AM.
Reply With Quote
Old Feb 26, 2012, 02:52 PM
Registered User
VA
Joined Nov 2009
2,658 Posts
and I know you tried it already but you are sure holding down the aileron trim button for 6 seconds does not give you reversing beep after powering it on?

Quote:
Originally Posted by Rober-t View Post
Hi stunt-double, thanks for the helpful reply, i'm sure you read my post to the end. I'll pm you my bank account.

Timecop, yupp, that's what i thought as well. Somewhere the stick-input must go in as a value between 1000 and 2000. So the calculation for reversion would be just to add -3000 to the stickvalue and switch from - to + afterwards... (old value-3000)*(-1)

Btw, turning on the transmitter while pressing trim button doesnt work with this tx, tried that already
pug398 is offline Find More Posts by pug398
Reply With Quote
Old Feb 28, 2012, 05:10 AM
Registered User
Joined Feb 2010
21 Posts
Hi pug398, thanks for the reply! Unfortunately yes, i'm sure.
Pressing any trim button while powering the transmitter does not invert the channel, no matter how long i keep the trim-button pressed. The only thing that can be changed is the zero point by deflecting the sticks while powering it on.

A software channel reversion in the code would be kind of one line, switching the pot-cables that are hard-wired on a PCB would take some time and i'd have to reverse the servos on my other models as well.

Can anyone show me where the receiver channels are read out in the code?
Maybe i'll try to code it myself then

Happy Amps!
Rob
Rober-t is offline Find More Posts by Rober-t
Reply With Quote
Old Feb 28, 2012, 05:41 AM
Registered User
RCvertt's Avatar
Joined Aug 2007
4,151 Posts
Quote:
Originally Posted by Rober-t View Post
Everything works great, except for the roll input, it's inverted...

In 1.7 try changing this...
Code:
  for(axis=0;axis<2;axis++)
  rcCommand[axis]   = (rcHysteresis[axis]-MIDRC) * (rcFactor2 + rcFactor1*square((rcHysteresis[axis]-MIDRC)));
  rcCommand[THROTTLE] = (MAXTHROTTLE-MINTHROTTLE)/(2000.0-MINCHECK) * (rcHysteresis[THROTTLE]-MINCHECK) + MINTHROTTLE;
  rcCommand[YAW]      = rcHysteresis[YAW]-MIDRC;
to this...
Code:
  rcCommand[ROLL]   = ((rcHysteresis[axis]-MIDRC) * (rcFactor2 + rcFactor1*square((rcHysteresis[axis]-MIDRC)))) *-1;
  rcCommand[PITCH]   = (rcHysteresis[axis]-MIDRC) * (rcFactor2 + rcFactor1*square((rcHysteresis[axis]-MIDRC)));
  rcCommand[THROTTLE] = (MAXTHROTTLE-MINTHROTTLE)/(2000.0-MINCHECK) * (rcHysteresis[THROTTLE]-MINCHECK) + MINTHROTTLE;
  rcCommand[YAW]      = rcHysteresis[YAW]-MIDRC;
or better yet, gently but firmly smash that TX with a sledgehammer.
RCvertt is offline Find More Posts by RCvertt
RCG Plus Member
Last edited by RCvertt; Feb 28, 2012 at 10:52 PM.
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Sold *********PULLED BY ME*********RDS 8000 Transmitter 8 channel TX 2.4 Ghz crosby Aircraft - General - Radio Equipment (FS/W) 3 Dec 02, 2011 09:24 AM
Discussion 4 channel tx can work with 6 channel planes? chirojoseph Micro Ready-to-Fly 6 Jul 21, 2011 04:49 PM
Sold DX4e DSMX 4-Channel Full Range Tx only MD2/4 by Spektrum isogloss3d Aircraft - General - Radio Equipment (FS/W) 1 Apr 10, 2011 01:08 PM
For Sale FS/FT Brand NEW Airtronics SD-10G 10-Channel 2.4GHz TX w/10-Channel Receiver! gaaunapoi Aircraft - General - Radio Equipment (FS/W) 2 Mar 31, 2011 10:33 PM
Sold Aurora 9 channel TX and 1 RX Optima 7 channel...$315.00 shipped crosby Aircraft - General - Radio Equipment (FS/W) 22 Mar 28, 2011 01:42 PM