Safe safety switch

Programing help and example for all firmwares based on thus's th9 firmware.
Post Reply
tmc
Posts: 3
Joined: Sun Jul 28, 2013 8:57 am
Country: -

Safe safety switch

Post by tmc »

Hi everyone and since this is my first post here, thanks to the developers all around!

to my problem: I've setup the "thr cut" switch to be my safety switch for throttle stick.

CH3 S !THR -100

This works nicely, but the problem is: if i have the throttle stick at a high level and flip the "thr cut" switch accidentally, i don't want the motor to go nuts. Rather i would like it to be only switched on when the "thr cut" switch is activated while the throttle stick is at <-90%. I think this should be some sort of flip flop option and have tried the following:

custom switches:
SW1 v<ofs CH3 -90 THR
SW2 AND ON SW3 THR
SW3 OR SW2 SW1 ---

and of course safety switch:

CH3 S !SW2 -100

SW2 and SW3 should "remember" their state as long as THR is "on". The simulator does not play along (SW2 and SW3 are switched off when CH3 >= -90), but when i program the tx with this, it does seem to work. Since this is the throttle control we are talking about, i didn't want to test it on a life plane until i knew what was going on.

Could someone enlighten me as to how to do what i'm trying to do?

thanks and regards.

User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Safe safety switch

Post by MikeB »

Which firmware (er9x or openTx)?
What you want is a "STICKY T-CUT" or sticky throttle cut. It's on the forum somewhere! You should also find a template for it in the templates menu.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Safe safety switch

Post by jhsa »

i'm guessing. You're using er9x as firmware. Don't know which version though. Go to templates and you'll find one called "Sticky Throttle Cut". Try it. Be very welcome to the forum. I hope you are a beer drinker. If not, you will be soon. :mrgreen:
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
tmc
Posts: 3
Joined: Sun Jul 28, 2013 8:57 am
Country: -

Re: Safe safety switch

Post by tmc »

Wow thanks guys. That was fast and it works nicely.

I couldn't find much documentation regarding the custom switches as well as the safety switches. The documentation just mentions both very briefly. Specifically, I would like to know if there is any difference between SW1-9 and SWA-C. Also, what does the "type" column in the safety switches (second column being "S", "A" or "V") mean?
tmc
Posts: 3
Joined: Sun Jul 28, 2013 8:57 am
Country: -

Re: Safe safety switch

Post by tmc »

oh and i am in fact using er9x version r790 (28.04.2013)

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

Re: Safe safety switch

Post by jhsa »

S - Safety Switch
A - Alarm (Audio alarms like beeps and sirens, etc)
V - Voice. But for this you need a voice module..

I mentioned the er9x version because the er9x-frsky version of the fw doesn't have the templates in it due to lack of flash memory. So, they were removed..

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

Post Reply

Return to “er9x / gruvin9x / th9 based firmwares”