TRN switch plus delayed action ?

Post Reply
andrewju
Posts: 784
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

TRN switch plus delayed action ?

Post by andrewju »

Hi All,

Need your expert advise on whether something like this could be realized in ER9X:

When TRN switch is pressed, the collective pitch channel (let's say CH5) should be explicitly set to 0. If TRN is still kept pressed, CH5 should stay at 0 for about 0.3 to 0.4 seconds, then go to +100 and stay there as long as TRN is held. As soon as TRN is released, the normal operation should be resumed.

This is supposed to help to recover a helicopter in case if a pilot loses orientation of the model.
(not sure it will work, but will certainly help to understand the functionality of ER9X). :)

Thanks!

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

Re: TRN switch plus delayed action ?

Post by jhsa »

Try this.

Ch5 HALF 100% (switch TRN) DELAY UP 0.3
If it doesn't work right away, try delay down instead of up. I just tested in eepe and had to use delay down.


Sent from my GT-I9195 using Tapatalk
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
andrewju
Posts: 784
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: TRN switch plus delayed action ?

Post by andrewju »

Ummm... Is there a way to set a delay to 0.x ? It looks to be an integer variable...

And... nope, that line doesn't seem to set CH5 to 0 immediately, unless I did something wrong...
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: TRN switch plus delayed action ?

Post by jhsa »

on my er9x radio it works and i can choose decimal values. Maybe on stock board is not possible??

Using delay down, my ch5 is at 0 (middle position) like you said, and when i flick the TRN switch, waits 0.3 seconds and then go to +100.

Or do you mean that when switch not pressed, ch5 should be at -100??

João
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
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: TRN switch plus delayed action ?

Post by ReSt »

Ch03 +100%THR
R -100%FULL Switch(TRN)
R +100%FULL Switch(SW1)

CH16 +100%FULL Switch(TRN) Slow(U1:d0)

CSwitch1 v>ofs CH16 -40

Ch16 gives you a time ramp. Needs 1 second from -100 to +100 (when trainer switch is active)
Sw1 gets activated when CH16 > -40 that is 0.4 sec after the Trainer switch is activated

On Ch03 the first replace mix is activated immediately with the trainer switch
the second Replace mix overwrites everything above it when switch1 gets active, that is 0.4 sec later
It stays as long as the trainer switch is active.

If you have to switch several channels at the same time, just place the 'replace' mixes into an empty unused channel and add (with replace) this channel to the channels in question.

Reinhard

andrewju
Posts: 784
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: TRN switch plus delayed action ?

Post by andrewju »

When TRN is not pressed CH5 should reflect collective pitch. Or, for simplicity, let's say it should reflect THR stick position.

When TRN is pressed, CH5 should immediately go to 0. Then, if TRN is pressed for 0.3 - 0.4 seconds, CH5 should go to 100 and stay there as long as TRN is pressed.

When TRN is released, CH5 should return to normal operation (depending on the current THR stick position).


Now, why are you able to select decimal values for delay, and I'm not? Do you have Ersky board?
I have a stock board with an Atmega2561...


P.S. Just saw Reinhard's post. Need to think about it, looks close to what I was looking for. Maybe even better! :) Thanks!
andrewju
Posts: 784
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: TRN switch plus delayed action ?

Post by andrewju »

Great, thanks a lot!!!

This seem to work as expected:
Ch03 +100%THR
R 0%FULL Switch(TRN)
R +100%FULL Switch(SW1)

CH16 +100%FULL Switch(TRN) Slow(U1:d0)

CSwitch1 v>ofs CH16 -40

But I got one more question. Either of these lines seem to bring the same result (at least in eePe):

CH16 +100%FULL Switch(TRN) Slow(U1:d0)

CH16 +100%FULL Switch(TRN) Delay(u0:d1)

(with all other settings the same)

Is this how it should be?
andrewju
Posts: 784
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: TRN switch plus delayed action ?

Post by andrewju »

Ah, another question (more a clarification):

CH16 gets from -100 to +100 for 1 second.

So it means it will get from -100 to -40 for 0.3 second (not 0.4), right?
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: TRN switch plus delayed action ?

Post by jhsa »

andrewju wrote: When TRN is pressed, CH5 should immediately go to 0. Then, if TRN is pressed for 0.3 - 0.4 seconds, CH5 should go to 100 and stay there as long as TRN is pressed.

When TRN is released, CH5 should return to normal operation (depending on the current THR stick position).
Sorry I misread your post. Thought that ch5 should stay always at zero when sw is not pressed..
Now, why are you able to select decimal values for delay, and I'm not? Do you have Ersky board?
I have a stock board with an Atmega2561...
Yeah, skyboard.. I thought that the stock board also could do that.. but just checked my other radio with atmega128 and it can't..

João
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
andrewju
Posts: 784
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: TRN switch plus delayed action ?

Post by andrewju »

Oh, lucky you! Do you have a spare stock board left? :)
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: TRN switch plus delayed action ?

Post by ReSt »

andrewju wrote:Ah, another question (more a clarification):

CH16 gets from -100 to +100 for 1 second.

So it means it will get from -100 to -40 for 0.3 second (not 0.4), right?

Correct

Reinhard
andrewju
Posts: 784
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: TRN switch plus delayed action ?

Post by andrewju »

Thanks a lot!!!

Post Reply

Return to “er9x model setup”