Help with trimable flaps

Programing help and example for all firmwares based on thus's th9 firmware.
Post Reply
User avatar
Hexperience
Posts: 190
Joined: Fri Feb 17, 2012 4:48 pm
Country: -
Location: Keswick, Ont. Canada

Help with trimable flaps

Post by Hexperience »

Hi all,

I managed to get my 3 way flaps working fine and I also go elevator mixing in.
What I've added is %20 P2 so that I can trim the amount of Flap in any of the 3 positions.

What I don't know how to do is get position id0 to never be below 0.

Here's my channel for flaps

+0% HALF Switch(ID0)
+40% HALF Switch(ID1)
+80% HALF Switch(ID2)
+20%P2

It does what I want it do, when the flaps are down I can trim them a bit with P2. But if I trim them back (neg) a bit, when I go back to ID0 I'm now at a negative value and the flaps are going to try to go up.

I've tried a couple of different things but there's so much flexibility in ex9x, it's hard to know which way to skin this cat! ;)

Thanks
Sky9X: One radio to rule them all, and in the darkness BIND them.

User avatar
Hexperience
Posts: 190
Joined: Fri Feb 17, 2012 4:48 pm
Country: -
Location: Keswick, Ont. Canada

Re: Help with trimable flaps

Post by Hexperience »

Sorry... I guess when I wrote it out it started to make more sense to me.

I now have:

+20%P2
R 0% HALF Switch(ID0)
+40% HALF Switch(ID1)
+80% HALF Switch(ID2)

Sorry for the posts... but hey, always learning...

This works fine for what I wanted.
Cheers
Sky9X: One radio to rule them all, and in the darkness BIND them.
User avatar
GrootWitbaas
Posts: 358
Joined: Tue Dec 27, 2011 8:57 pm
Country: -
Location: Germany

Re: Help with trimable flaps

Post by GrootWitbaas »

perfect ...now this can stay for future showing how flexible the firmware is.
General trouble maker and wannabee Dev
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Help with trimable flaps

Post by erazz »

Yup, that's a good way to do it.
When writing the updates to the mixer I found that there are MANY ways to create the same results. I could have made it simpler but that wouldn't improve speed so I left it like that. Happy that I did so :)
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Help with trimable flaps

Post by gohsthb »

You could also, in your first post, have added Switch(!ID0) to the mix with P2. Again there is more than 1 correct way to make it work.
-Gohst

User avatar
Hexperience
Posts: 190
Joined: Fri Feb 17, 2012 4:48 pm
Country: -
Location: Keswick, Ont. Canada

Re: Help with trimable flaps

Post by Hexperience »

Ahhhh.... I'm starting to get this. Thanks for that !ID0 tip.
I've added that to my elevator mix so now when I trim the flaps, the elevator mix will also trim at a 2:1 ratio... or what ever ratio I enter.

So my new method is:

Channel 3
+100%ELE
+10%HALF Switch(ID1)
+20%HALF Switch(ID2)
+10%P2 Switch(!ID0)

Channel 6 (flaps)
+40%HALF Switch(ID1)
+80%HALF Switch(ID2)
+20%P2 Switch(!ID0)

I'm pretty new (only been at RC for a few months, but picking it pretty fast).
Could anyone tell me if there is a good rule of thumb for the amount of elevator to flap ratio? Or is it completely different for each plane?
Cheers!
Sky9X: One radio to rule them all, and in the darkness BIND them.
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Help with trimable flaps

Post by cre8tiveleo »

Good job there!

Different for each plane, no plane has the exact same amount of wing surface, flap or elevator control surface area. longer, bigger, thinner, so many variations. You can start at one point as a 'standard'' then tweak it for each model.

Now ad some slow down, up.. :D

I've my flaps slow down, and uber quick up...
User avatar
Crashj007
Posts: 133
Joined: Tue Jan 31, 2012 11:44 pm
Country: -
Location: Raleigh, NC, USA
Contact:

Re: Help with trimable flaps

Post by Crashj007 »

I am working on the same challenge. Could I add a percentage of CH6 to Channel3 to get the same thing?
--
FS-TH9X 2.4GHz 9CH from Nitroplanes
Smartieparts board & backlight
Stock Flysky RF and mainboard
er9x FW V 744
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Help with trimable flaps

Post by gohsthb »

Sure just try it in Eepe and see.
-Gohst
User avatar
Crashj007
Posts: 133
Joined: Tue Jan 31, 2012 11:44 pm
Country: -
Location: Raleigh, NC, USA
Contact:

Re: Help with trimable flaps

Post by Crashj007 »

gohsthb, that worked perfectly. I'll plug it into mine and try it tonight.
--
FS-TH9X 2.4GHz 9CH from Nitroplanes
Smartieparts board & backlight
Stock Flysky RF and mainboard
er9x FW V 744
User avatar
Hexperience
Posts: 190
Joined: Fri Feb 17, 2012 4:48 pm
Country: -
Location: Keswick, Ont. Canada

Re: Help with trimable flaps

Post by Hexperience »

Interesting problem when adding slow. With the above setup, when I click id1, it does go slowly to where I expect, but then when I click id2 the virtual servo goes backwards, then forwards to where I expect. Must have something to do with the order of operations...
Sky9X: One radio to rule them all, and in the darkness BIND them.
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Help with trimable flaps

Post by cre8tiveleo »

:mrgreen: I knew it would do that... thought you could use a challenge.
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Help with trimable flaps

Post by gohsthb »

Because of the way the mixer is programmed you cannot add multiple mixers with slow or delay to the same channel. The math works correctly, but you get some seemingly strange interactions. The way around this is to use virtual channels. See below:

CH3
100% ELE
100% CH15 Slow(u5:d5)
10% P2 Switch(!ID0)

CH6
100% CH16 Slow(u5:d5)
20% P2 Switch(!ID0)

CH15
+10% HALF Switch(ID1)
+20% HALF Switch(ID2)

CH16
+40% HALF Switch(ID1)
+80% HALF Switch(ID2)

-Gohst
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Help with trimable flaps

Post by jhsa »

I lost track of how many times Gohsthb already explained this mix.. :D
I think he deserves a beer :mrgreen:

Also, this should go to the wiki if it's not already there..
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
Crashj007
Posts: 133
Joined: Tue Jan 31, 2012 11:44 pm
Country: -
Location: Raleigh, NC, USA
Contact:

Re: Help with trimable flaps

Post by Crashj007 »

Black and tan to him.
--
FS-TH9X 2.4GHz 9CH from Nitroplanes
Smartieparts board & backlight
Stock Flysky RF and mainboard
er9x FW V 744
User avatar
Crucial
Posts: 581
Joined: Tue Dec 27, 2011 6:56 pm
Country: -
Location: SE WI, USA

Re: Help with trimable flaps

Post by Crucial »

jhsa wrote:I lost track of how many times Gohsthb already explained this mix.. :D
I think he deserves a beer :mrgreen:

Also, this should go to the wiki if it's not already there..
The Wiki is open for all to edit isn't it? ;)
fburden
Posts: 51
Joined: Thu Mar 29, 2012 5:24 pm
Country: -

Re: Help with trimable flaps

Post by fburden »

Finally, after a week of searching, I find this tread, thankfully!! I finally got delays all work on my flaperons on id0, id1, and id2, yippee!!!!
"Because of the way the mixer is programmed you cannot add multiple mixers with slow or delay to the same channel. The math works correctly, but you get some seemingly strange interactions. The way around this is to use virtual channels."

This needs a new thread with this info, subject: "Slow or delay: can only be done once, ie. 1 mix only, on the same channel".
This needs to be better documented in my opinion.
Even Richardmrazak, one of the pros here, in his training video #4, explains that "delays don't always work".
http://www.youtube.com/watch?v=_vwQOaYqvSo
So if a pro like him can miss it, a newby will for sure.....
Love the product!!!! User Training just needs a bit more improvement!!
I Love ER9X!
Cheers!
User avatar
Hexperience
Posts: 190
Joined: Fri Feb 17, 2012 4:48 pm
Country: -
Location: Keswick, Ont. Canada

Re: Help with trimable flaps

Post by Hexperience »

gohsthb wrote:Because of the way the mixer is programmed you cannot add multiple mixers with slow or delay to the same channel. The math works correctly, but you get some seemingly strange interactions. The way around this is to use virtual channels. See below:

-Gohst
Thank you very much. It's really starting to click with me now.

My final settings are below. I removed the trim from the elevator because I guess there's no point in adjusting both of them at the same time. Once I have level flight at a given % of flap, then I can put that back in. (or not if I don't need it)
I tweeked the slow settings a bit and now the elevator and flaps start and stop moving at the same time.

Thanks again Gohst. This is truely a very powerful radio thanks to er9x.

CH3
100% ELE
100% CH15 Slow(u12:d12)

CH6
100% CH16 Slow(u4:d4)
20% P2 Switch(!ID0)

CH15
+10% HALF Switch(ID1)
+20% HALF Switch(ID2)

CH16
+30% HALF Switch(ID1)
+60% HALF Switch(ID2)
Sky9X: One radio to rule them all, and in the darkness BIND them.
pldb64
Posts: 34
Joined: Thu Feb 09, 2012 11:20 pm
Country: -
Location: Sydney, Australia

Re: Help with trimable flaps

Post by pldb64 »

Hex,

Might help others in the future if you bundle this up into an eepe/eepm file and post it into the thread that has the library of mixes. Attach an explanation of what you were looking to achieve and then it'll be immortalised :-)

Post Reply

Return to “er9x / gruvin9x / th9 based firmwares”