Thread Tools |
This thread is privately moderated by Miami Mike, who may elect to delete unwanted replies. |
|
|
|
Mini-HowTo
OpenTX: Aileron-To-Rudder Mix.
An auto-switching aileron-to-rudder mix for OpenTX / EdgeTX
Aileron-to-rudder mix is useful but there are times when you want rudder control to be completely separated from aileron control. A common solution is to turn the mix on and off with a switch, but here I'll describe a setup that does the switching automatically. It works like this:
A simplified eepe file is attached that demonstrates the setup, and if you have glidsim.lua installed in your /SCRIPTS/TELEMETRY folder you'll be able to watch it work. Activate the glidsim screen with the PAGE button. In Companion simulator, use the [Hold X] function to set the aileron stick away from center, then move the rudder stick and watch what happens. Note: Of course the attached eepe file is not meant to fly a real model. It's only for demonstration purposes. In this example, GV1 is used to set the amount of aileron-to-rudder mix. The value should be between 0% and 100%. I have it set to 75%. For switching between Mix On and Mix Off, I use an input: Code:
[I5]ARSW MAX Weight(+100%) Switch(L3) [Mix On] MAX Weight(0%) [Mix Off] Here's an alternate logical switch setup for cases where the "~" ("about equal to") operator doesn't work dependably: See posts #36 & #37 below for an explanation. The mix happens in the rudder channel: Code:
CH06 (Rudder) MAX Weight(GV1) *= [I5]ARSW Weight(+100%) Slow(u0:d1) *= [I2]Ail Weight(+100%) NoTrim ("NoTrim" prevents the aileron trim from affecting the rudder.) += [I4]Rud Weight(+100%) |
Last edited by Miami Mike; Nov 02, 2021 at 10:52 AM.
|
|
|
|
|
|
Mike, interesting application and solution.
Here's an optimisation, same logical switches, but without the need for an extra input. Code:
CH06 [I4]Ail Weight(GV1) [AIL] *= CH10 Weight(+100%) Slow(u0:d1) [RAMPDN] += [I1]Rud Weight(+100%) Switch(!L3) [RUD] CH10 MAX Weight(+100%) Switch(L3) [A2RENABL] |
|
|
|
|
|
I fixed your input assignments to match mine and added your version to the eepe file for comparison. Yes, the end result appears to be the same.
|
Latest blog entry: How To Get a Custom AMA Number
|
|
|
|
|
I've realized that there's a problem with both of our versions in that aileron trim affects the rudder. The cure is to add NoTrim to the mix:
My version fixed: Code:
CH06 (Rudder) MAX Weight(GV1) *= [I5]ARSW Weight(+100%) Slow(u0:d1) *= [I2]Ail Weight(+100%) NoTrim += [I4]Rud Weight(+100%) Code:
CH06 (Rudder) [I2]Ail Weight(GV1) NoTrim [AIL] *= CH10 Weight(+100%) Slow(u0:d1) [RAMPDN] += [I4]Rud Weight(+100%) Switch(!L3) [RUD] By the way, there's another problem with your version in that rudder trim doesn't work. The cure is to remove "Switch(!L3)", which doesn't really do anything else beside disable the rudder trim. Here's another eepe file with all of the corrections so far: |
Latest blog entry: How To Get a Custom AMA Number
|
|
|
|
|
Well spotted re rudder trim. However your fix (to include it with the rudder mix and to remove the !I3 switch) also means the rudder mix is active at all times. This is at odds with your description which said "In other words, the rudder is controlled by one stick or the other but never both..." ;-) That was the reason for the !L3 switch.
If the aileron and rudder inputs were mutually exclusive, the rudder trim could be implemented as a separate mix with src = TrmR. Love these OpenTx conundrums |
|
|
|
|
|
Yes, the rudder mix is active at all times, and yes, it's also true that the rudder is controlled by one stick or the other but never both, and the rudder stick has priority. There's no contradiction there.
Try removing "Switch(!L3)" from your version and see for yourself that the only thing that changes is that the rudder trim works. |
Latest blog entry: How To Get a Custom AMA Number
|
|
|
||
|
Quote:
|
|
|
||
|
|
|
Hello Mike, thanks a bunch for all the great work with the Rudder Aileron mix. It works great. I just have a quick question. The Aileron to Rudder mix works when using the aileron stick. When using both sticks there is no mix which is perfect and a brilliant solution.
This issue is... what I am seeing is about 20 percent of the time when using both sticks there is inadvertent mixing of the rudder with the aileron. I also notice that on the simulator that from time to time L3 is triggered on and stay on occasionally. Thanks in advance for any thought on the mix. |
|
|
|
|
|
Yes, that's what you'd expect. Whenever both sticks are centered at the same time, the aileron-to-rudder mix is reactivated. If you can think of an alternate way that you'd like to see it work then it'll almost certainly be possible to program it that way. Any ideas?
|
Latest blog entry: How To Get a Custom AMA Number
|
|
|
|
|
looking for Miami Mike
Mike you posted a photo of the Stars & Strips Goodyear airship June of 2005. Am wanting an original copy of that photo if your willing to provide it? Am working on a revision of a book. The Goodyear Airships by James Shock and David Smith. Sadly James has passed away. David is now over 70. I work for David as a graphic artist on a current revision of the book. My name is Keith Adams, I work for Ron Smith Printing in Bloomington, IL prepress@ronsmith.com
You would of course be given credit for the photo. The book has an ISBN 0-9711637-1-5, you can find it listed in Amazon but there is no reference photo of it, I just looked. I would be happy to provide any other info if you have questions. Hoping you can help, Keith |
|
|
|
|
|
Replied by private message and email.
|
Latest blog entry: How To Get a Custom AMA Number
|
|
|
|
|
Back to the auto Ail-Rud mix for a minute - I just found your blog and consequently set up my own manual (switched) mix to assist in hand launching a powerful electric model. I like what you've done but would prefer a small modification to it.
How about initializing the flight with your mix active but disconnecting the mix (for the remainder of that flight) once the rudder is moved beyond a defined threshold? Logical switch programming is something I'm trying to grasp but I'm just not one to configure conditional situations. Thanks |
|
|
|
If you've upgraded to version 2.2 then that's something I haven't gotten into and don't expect to in the foreseeable future, but if you're using 2.1.9 I can have a look at it. I'll need your eepe file to know how to add it to what you already have.
Also, you'll have to specify how the mix would be reactivated. In other words, you'll need to decide how the radio would know that a flight has ended and a new flight was beginning. |
Latest blog entry: How To Get a Custom AMA Number
|
|
Thread Tools | |
Similar Threads | |||||
Category | Thread | Thread Starter | Forum | Replies | Last Post |
Question | Aileron-Rudder mix...yes or no? | whowhatwhere | Electric Warbirds | 12 | Mar 23, 2017 12:10 PM |
Question | Aileron Rudder Mixing | jeffburns | Electric Plane Talk | 0 | Mar 22, 2017 11:49 AM |
Discussion | What percentage to use mixing aileron's and rudder? | Newbie1980 | Radios | 10 | Sep 03, 2016 10:22 PM |
Discussion | Mixing Aileron with Rudder problem | Rick Atkinson | Electric Plane Talk | 3 | Mar 10, 2016 11:01 PM |