joeylamb / opentx

Automatically exported from code.google.com/p/opentx
0 stars 0 forks source link

Customers switch sshould include switch got flight phase #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When setting up custom functions,  it would be good of the list of switches 
included flight phases. 

This would make it easy to deliver a function,  that is triggered by a flight 
phase becoming active 

Original issue reported on code.google.com by r...@marotori.com on 18 Apr 2013 at 5:44

GoogleCodeExporter commented 8 years ago

Original comment by r...@marotori.com on 19 Apr 2013 at 9:15

GoogleCodeExporter commented 8 years ago

Original comment by r...@marotori.com on 19 Apr 2013 at 9:15

GoogleCodeExporter commented 8 years ago
The simplest possible idea to implement this enhancement is to provide the 
index of the active mode 0...8 as a variable (FM)
then over that variable we can build any custom switch and use it in momentary 
(entering the flight mode) or static (in mode) version.

I mean we will have a simple switch like CS1 a~=x FM 3 
and we will use
mCS1 (entering the mode 3) and CS1 (in flight mode 3)

Original comment by romolo.m...@gmail.com on 19 Apr 2013 at 1:38

GoogleCodeExporter commented 8 years ago
So...  Does that mean the user has to create another custom switch to achieve 
this?

Or does that happen in the back ground?

Original comment by r...@marotori.com on 18 Aug 2013 at 9:50

GoogleCodeExporter commented 8 years ago
That would be great to play messages directly when entering flight modes ;-)

Original comment by DVD_Fr...@gmx.de on 3 Sep 2013 at 3:35

GoogleCodeExporter commented 8 years ago
@DVD_Freak@gmx.de

that already happens

put a file called /SOUNDS/$lang/$modelname/$phasename-ON.wav
where: 
$lang is the langcode of the audio you selected ie (de)
$modelname is the name of the model (ie bf109)
$phasename is the name of the phase (ie landing)

so the file in the example should be named
/SOUNDS/de/bf109/landing-ON.wav

at that will be played any time you enter landing phase
/SOUNDS/de/bf109/landing-OFF.wav
instead will be played when leaving

Original comment by romolo.m...@gmail.com on 3 Sep 2013 at 5:10

GoogleCodeExporter commented 8 years ago
The solution that Romolo proposes seems good to me.

Original comment by bson...@gmail.com on 7 Nov 2013 at 2:01