DeBesten / open9x

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

[Suggestion] Play specific wav when telemetry no data #84

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
With the help of hard coded wav name or a custom switch comparison value to 
keep it generic.

Original issue reported on code.google.com by baptiste...@gadz.org on 14 Aug 2012 at 2:47

GoogleCodeExporter commented 8 years ago
CS1 v==ofs Tx 0
+
CS1m PlayTrack [your wav]

Original comment by bson...@gmail.com on 14 Aug 2012 at 5:13

GoogleCodeExporter commented 8 years ago
Since r1203 Tx is invalid when "no data" (which is great !)
I've just tested it : CS1 v < ofs Tx 1 but it's not triggering.

Original comment by baptiste...@gadz.org on 14 Aug 2012 at 6:25

GoogleCodeExporter commented 8 years ago
Oh right! Tx and Rx should be exceptions to my change of r1203!

Original comment by bson...@gmail.com on 14 Aug 2012 at 8:05

GoogleCodeExporter commented 8 years ago
Well, i use a CS for TX < 45db and RX < 45db in order to play a voice when 
plane has gone too far.

Before r1203 voice was allways speaking till RX was powered on, that was a bit 
annoying, that's a lot better with r1203

If you revert it back i would need twice CS in order to verify that TX < 45 && 
!= 0 (same thing for RX)

Original comment by baptiste...@gadz.org on 14 Aug 2012 at 8:14

GoogleCodeExporter commented 8 years ago
I think Bertrand implemented it the same way Mike did in ER9X:
When NO DATA, all CSs that use a telemetry value are OFF.

That's why your v<ofs TX 1 would never be true.

So yeah, either an exception for TX/RX or a hard-coded NO DATA alarm with a 
fixed voice file name - I'd vote for hard coded alarm as it would save custom 
switches! Trigger it only if the NO DATA alarm is enabled in the preferences, 
of course. 

Original comment by bernet.a...@gmail.com on 14 Aug 2012 at 10:11

GoogleCodeExporter commented 8 years ago
This way should work:
CS1: v>ofs Tx 0
!CS1 => PlayTrack ...

Original comment by bson...@gmail.com on 15 Aug 2012 at 8:58

GoogleCodeExporter commented 8 years ago
Yes, just tested, that's perfect !

Original comment by baptiste...@gadz.org on 15 Aug 2012 at 9:22