kawal547 / open9x

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

thralert.wav and swalert.wav not played anymore on sky9x #132

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Tested with open9x for sky9x r1362.
A beep is played instead.

If i push forward THR and move a switch before powering on the radio the 
Throttle alert is a beep and the switch alert is ok (voice), so it's seems to 
be a matter of audio initialisation timing.

(When the alert is only for a switch, it is the first to be shown and it's a 
beep not the voice)

Original issue reported on code.google.com by baptiste...@gadz.org on 8 Sep 2012 at 10:28

GoogleCodeExporter commented 8 years ago
In open9x.cpp, there are these lines:

#if defined(PCBARM) && defined(SDCARD)
    for (int i=0; i<200 && !Card_initialized; i++) {
      CoTickDelay(1);  // 2ms
    }
#endif

Would you check to change 200 by 500 or 1000?

Original comment by bson...@gmail.com on 8 Sep 2012 at 1:03

GoogleCodeExporter commented 8 years ago
Here's the results of the test:

i=200 -> KO
i=300 -> KO
i=400 -> KO
i=500 -> OK !

Original comment by baptiste...@gadz.org on 8 Sep 2012 at 2:09

GoogleCodeExporter commented 8 years ago
Your card is very slow... But I am ok with 500, as it's only a timeout. 

Original comment by bson...@gmail.com on 8 Sep 2012 at 2:19

GoogleCodeExporter commented 8 years ago
It means 1 full second to initialize, that's why you have the dots on screen ...

Original comment by bson...@gmail.com on 8 Sep 2012 at 2:21

GoogleCodeExporter commented 8 years ago
OK thanks a lot, i'll try to found a cat10 card at the occasion.

Original comment by baptiste...@gadz.org on 8 Sep 2012 at 3:23