Programming P-51 gear doors

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
Lenop
Posts: 14
Joined: Fri Mar 09, 2012 10:12 pm
Country: -

Programming P-51 gear doors

Post by Lenop »

In ER9X I have programmed my gear door sequence as follows:

CH06: +125FULL Switch(GEA) Delay (u2:d2) Slow(u2:d2)
CH08: +125FULL Switch(SW2) Delay (u6:d0) Slow(u2:d2)
CSwitch1: v>ofs CH6 123
CSwitch2: XOR GEA SW4
CSwitch3: v<ofs CH6 -123
CSwitch4: OR SW1 !SW5
CSwitch5 OR SW3 !SW4

However, in OpenTX the gear door sequence does not work any more, the doors are stuck at the servos center point.

I tried to replace the ER9X value "v>ofs"with a>x" and "v<ofs" with "a<x".
I also played around with the "100"and "-100"values.

The switches in OpenTX now look like:
CH06: +125FULL Switch(GEA) Delay (u2:d2) Slow(u2:d2)
CH08: +125FULL Switch(CS2) Delay (u6:d0) Slow(u2:d2)
CSwitch1: a>x CH6 100
CSwitch2: XOR GEA CS4
CSwitch3: a<x CH6 -100
CSwitch4: OR CS1 !CS5
CSwitch5 OR CS3 !CS4

Anyone knows what I'm doing wrong here?

User avatar
Kilrah
Posts: 11107
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Programming P-51 gear doors

Post by Kilrah »

There is no FULL in openTX, so you must have forgotten something :)
FULL Switch(GEA) is just GEA as source.
Lenop
Posts: 14
Joined: Fri Mar 09, 2012 10:12 pm
Country: -

Re: Programming P-51 gear doors

Post by Lenop »

You are right! :)
Attempt 2:
CH06: +125 GEA Delay (u2:d2)
CH08: +125 MAX Switch(CS2) Delay (u6:d0) Slow(u2:d2)
CSwitch1: a>x CH6 99
CSwitch2: XOR GEA CS4
CSwitch3: a<x CH6 -99
CSwitch4: OR CS1 !CS5
CSwitch5 OR CS3 !CS4

But this doesn't work either. Hmmmm
User avatar
Kilrah
Posts: 11107
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Programming P-51 gear doors

Post by Kilrah »

What do you want to do exactly? What do you have on which channels?
Lenop
Posts: 14
Joined: Fri Mar 09, 2012 10:12 pm
Country: -

Re: Programming P-51 gear doors

Post by Lenop »

I'd like the main gear doors of a P-51 behave scale like.

So the events will be:

Select gear down
1. main door open
2. gear goes down
3. main door closes again

Select gear up
1. main door open
2. gear goes up
3. main door closes again

The gear itself is on channel 6 (GEAR switch)
The two main doors each have their separate channel, 7 & 8.

At the moment I'm trying this:

Mixes:
CH06: +125% GEA Delay (u1:d1)
CH07: +125% MAX Switch(CS2) Delay (u3.5:d0) Slow(u0.5:d0.5)
CH08: +125% MAX Switch(CS2) Delay (u3.5:d0) Slow(u0.5:d0.5

Custom switches:
CSwitch1: a>x CH6 99
CSwitch2: XOR GEA CS4
CSwitch3: a<x CH6 -99
CSwitch4: OR CS1 !CS5
CSwitch5: OR CS3 !CS4

Would this help?
Thanks for your help.
Last edited by Lenop on Fri Jun 28, 2013 8:56 pm, edited 1 time in total.

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

Re: Programming P-51 gear doors

Post by jhsa »

I think I have seen a template for this in this forum

EDIT: Here ;)

http://openrcforums.com/forum/viewtopic ... t=117#p718
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
Lenop
Posts: 14
Joined: Fri Mar 09, 2012 10:12 pm
Country: -

Re: Programming P-51 gear doors

Post by Lenop »

jhsa wrote:I think I have seen a template for this in this forum
Yeah, you're correct, that was me asking for it last year. :) :oops:
It works fine on ER9X but the conversion to OpenTx somehow fails and the template no longer works. No matter what I've tried.
DeathWarmedUp
Posts: 5
Joined: Sat Jan 21, 2012 12:29 am
Country: Australia
Location: Gympie

Re: Programming P-51 gear doors

Post by DeathWarmedUp »

I have only recently converted from ER9X to OpenTX and love it EXCEPT for not having FULL. With the Gear on my planes, I have had to add a second mix with '!GEAR" as the switch and negative weight. Like this:

Mixes:
CH06: +125% MAX Switch(GEA)
-125% MAX Switch(!GEA)

This appears to because MAX only goes from 0 to Weight where the ER9X FULL goes from -100 to +100. I cannot find any other way to make the DSR work.
User avatar
Kilrah
Posts: 11107
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Programming P-51 gear doors

Post by Kilrah »

Simply choose GEA as source and no switch.
DeathWarmedUp
Posts: 5
Joined: Sat Jan 21, 2012 12:29 am
Country: Australia
Location: Gympie

Re: Programming P-51 gear doors

Post by DeathWarmedUp »

Thanks Kilrah, I was sure I tried that after uploading my Models from the ER9X save and it didn't work. Must have had something wrong. Works a treat. Thanks again and great work you guys. Just have to save up for a Taranis now. 9XR modded with FrSky Telemetry and button mod is nice but I am hanging out for a Taranis.
Helle
Posts: 577
Joined: Sat Jul 21, 2012 7:08 am
Country: -

Re: Programming P-51 gear doors

Post by Helle »

Hy,
does anyone have a running gear door sequenzer for Taranis
with no set or reset aFlip Flop as Memmory

helle
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: Programming P-51 gear doors

Post by ReSt »

This is not from Taranis, but I assume, it should work

Sequenced Gear Doors

GEA switch starts CH16 as a timebar
The Switches are activated at certain positions of CH16

When GEA switch is activated:

CH16 slowly sweeps from -100 to +100

CH16 at >= -90: Sw1 opens the doors (CH15)
CH16 at >= 0: Sw2 extends the gears (CH14)
CH16 at >= 90: Sw3 deactivates SW1 and closes the doors (CH15)


When GEA switch is deactivated:

CH16 slowly sweeps from +100 to -100

CH16 at <= 90: !CS3 deactivates CS1 and the door is opend
CH16 at <= 0: !Cs2 retracts the gears
CH16 at <= -90: !CS1 closes the doors


The setup:

CS1 v>ofs CH16 -90 CS3
CS2 v>ofs CH16 0
CS3 v<ofs CH16 90

CH14 +100%FULL Switch(SW2) Slow(u3:d3)
CH15 +100%FULL Switch(SW1) Slow(u3:d3)
CH16 +100%FULL Switch(GEA) Slow(u10:d10)

Reinhard
Helle
Posts: 577
Joined: Sat Jul 21, 2012 7:08 am
Country: -

Re: Programming P-51 gear doors

Post by Helle »

Hy, Reinhard,

Danke! I will test it

Helle
Helle
Posts: 577
Joined: Sat Jul 21, 2012 7:08 am
Country: -

Re: Programming P-51 gear doors

Post by Helle »

Hy,

here a gear door sequenzer from Reinhard adapted to Taranis

SF is the Gear switch
Ch16 is a timebar and helpchannel
CH15 is the Door
CH14 is the Gear

Sequenced Gear Doors

SF switch starts CH16 as a timebar
The Custom-Switches are activated at certain positions of CH16

When SF-switch is activated:
CH16 slowly sweeps from -100 to +100

CH16 at >= -90: CS1 opens the doors (CH15)
CH16 at >= 0: CS2 extends the gears (CH14)
CH16 at >= 90: CS3 deactivates CS1 and closes the doors (CH15)


When SF-switch is deactivated:

CH16 slowly sweeps from +100 to -100

CH16 at <= 90: !CS3 deactivates CS1 and the door is opend
CH16 at <= 0: !CS2 retracts the gears
CH16 at <= -90: !CS1 closes the doors

Here the very short programm:
At Cusom Switches
CS1 a>x CH16 -90 AND CS3
CS2 a>x CH16 0
CS3 a<x CH16 90

At Mixers
CH14 +100% CS2 Slow(u3:d3)
CH15 +100% CS1 Slow(u3:d3)
CH16 +100% SF Slow(u10:d10)



Ch 14 and CH15 runs from -100% to +100%
The real min/max positions of the Doors and the Gears you must adapt with weight and offset at CH14 and CH15

Danke Reinhard

Helle
User avatar
Tomkfly
Posts: 77
Joined: Wed May 29, 2013 5:59 pm
Country: United Kingdom

Re: Programming P-51 gear doors

Post by Tomkfly »

Helle wrote:Hy,
does anyone have a running gear door sequenzer for Taranis
with no set or reset aFlip Flop as Memmory

helle
Simplest method is using a five point curve. Easy to set up and very flexible.

One of the first things I did when I got my Taranis was to set up a door sequencer for a P51. My first attempt was mainly using timers and it worked well. However I thought there might be another way, so I did a set up using Cutom switches and pseudo channels and that also worked. I then posted a comment on RCMF forum and one of the guys on there posted a reply saying the easiest method was to use a custom 5 point curve.it works and is so simple to set up.
The settings I used are as follows.
+ 100
- 100 , - 60
- 100 , 0
- 100 , + 60
+ 100
You can vary The +/ - 60s to give the ratio between door travel and time doors remain fully open.
I then set a mix, for the door ch, with SF as source ( gear switch ), weight - 100, delay at zero and duration 7 seconds (set to your own personal requirement).
Then set a mix for wheel ch, again SF as source, delay 3 seconds up and down, no duration, as I'm using air retracts.
If you're using proportional servos you can add a duration value, but you will have to increase the duration on the curve overall and reduce the values of 60s in the curve.
If you have any questions, on the above, please ask.

Tom
User avatar
Tomkfly
Posts: 77
Joined: Wed May 29, 2013 5:59 pm
Country: United Kingdom

Re: Programming P-51 gear doors

Post by Tomkfly »

Copy of my gear door curve:
Gear door curve.png
tom
jayteemmm
Posts: 2
Joined: Thu Feb 13, 2014 12:42 pm
Country: -

Re: Programming P-51 gear doors

Post by jayteemmm »

Hi

I have just received my Taranis, i am having difficulty setting up my gear door sequencer.
I cannot understand what to do.
I have setup ch6 as gear doors, ch7 Gear, but i would like to have the doors to close when retacted & when down.
I have tried to create a curve, but when i setup the cv1 in ch6, the door servo does not work at all?
Please can anyone help me

John
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Programming P-51 gear doors

Post by Rob Thomson »

You will need a custom switch to trigger the door position when the gear I an in certain positions.

Sent from my GT-I9300 using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
jayteemmm
Posts: 2
Joined: Thu Feb 13, 2014 12:42 pm
Country: -

Re: Programming P-51 gear doors

Post by jayteemmm »

Rob Thomson wrote:You will need a custom switch to trigger the door position when the gear I an in certain positions.

Sent from my GT-I9300 using Tapatalk
Hi Rob

I don't understand what you mean, or do i know how to set up a custom switch? :?
Helle
Posts: 577
Joined: Sat Jul 21, 2012 7:08 am
Country: -

Re: Programming P-51 gear doors

Post by Helle »

Hy,

here are two different running example at pdf for Taranis
in german

Helle
Attachments
Gear door Sequenzer Variante 2.pdf
(33.02 KiB) Downloaded 208 times
Doorsequenzer für Taranis Dokument 001.txt
(1.07 KiB) Downloaded 225 times
Door Sequenzer für Scale Modelle.pdf
(27.2 KiB) Downloaded 175 times

Post Reply

Return to “openTx”