TRN switch plus delayed action ?
TRN switch plus delayed action ?
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!
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!
Re: TRN switch plus delayed action ?
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
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
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
Re: TRN switch plus delayed action ?
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...
And... nope, that line doesn't seem to set CH5 to 0 immediately, unless I did something wrong...
Re: TRN switch plus delayed action ?
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
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
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
Re: TRN switch plus delayed action ?
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
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
Re: TRN switch plus delayed action ?
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!
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!
Re: TRN switch plus delayed action ?
Great, thanks a lot!!!
This seem to work as expected:
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?
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?
Re: TRN switch plus delayed action ?
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?
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?
Re: TRN switch plus delayed action ?
Sorry I misread your post. Thought that ch5 should stay always at zero when sw is not pressed..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).
Yeah, skyboard.. I thought that the stock board also could do that.. but just checked my other radio with atmega128 and it can't..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...
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
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
Re: TRN switch plus delayed action ?
Oh, lucky you! Do you have a spare stock board left?
Re: TRN switch plus delayed action ?
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
Re: TRN switch plus delayed action ?
Thanks a lot!!!