Countdown timer doesn't beep at 00:00 ?

More
26 Nov 2012 14:36 #3233 by vlad_vy
Countdown timer doesn't beep at 00:00? It's normal? I have beeps at prealarm and uptimer time, but haven't any beep at 00:00.

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 14:47 #3234 by suvsuv
Replied by suvsuv on topic Countdown timer doesn't beep at 00:00 ?

vlad_vy wrote: Countdown timer doesn't beep at 00:00? It's normal? I have beeps at prealarm and uptimer time, but haven't any beep at 00:00.

The official version won't beep at 00:00. But in my own devo10, I like the timer beeps at 00:00, so I will release an unofficial release that beeps at 00:00.
Attachments:

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 15:03 #3235 by FDR
Replied by FDR on topic Countdown timer doesn't beep at 00:00 ?
There is some mixup, I guess, because the official version should beep (actually play a tune) at 0, it always did.

The point was that it is not when the time changes from 00:01 to 00:00, but when it goes from 00:00 to -00:00.
This is a simple rounding issue.
If you imagine a plus digit, it looks like:
00:01.1
00:01.0
00:00.9 (beep is not here)
00:00.8
....
00:00.2
00:00.1
00:00.0
-00:00.0 beeps here!
-00:00.1
....
-00:00.9
-00:01.0

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 15:21 - 26 Nov 2012 15:21 #3236 by suvsuv
Replied by suvsuv on topic Countdown timer doesn't beep at 00:00 ?
If What FDR said is correct, PB should take my fix checked in 3 days ago ( #3122: www.deviationtx.com/forum/3-feedback-que...rge-back-2&start=220 ), otherwise, the timer with current codes will neve ever beep at -00:00

if (timer_val < 1000 && Transmitter.countdown_timer_settings.timeup_interval != 0) { // give extra 1seconds to alarm in 00:00
Last edit: 26 Nov 2012 15:21 by suvsuv.

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 15:51 #3237 by FDR
Replied by FDR on topic Countdown timer doesn't beep at 00:00 ?
I've just tested all the three build (emu_devo8, PB's and Suvsuv's emu_devo10), and all work as I expect, so I'm a bit confused now.

Is the problem that there is no beep at zero IF there is no tune to play?
Because if there is a tune configured, it is played at zero, so there is no point to beep too...

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 16:03 #3238 by suvsuv
Replied by suvsuv on topic Countdown timer doesn't beep at 00:00 ?
You need to verify it with a real devo8/10 device. The emulator's clock can not reflect real device's clock

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 16:12 #3239 by vlad_vy
Replied by vlad_vy on topic Countdown timer doesn't beep at 00:00 ?
I don't know what is the difference, but I havn't beep at 00:00 for Devo8 and emu_devo8. All settings are default.

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 18:06 #3244 by PhracturedBlue
Replied by PhracturedBlue on topic Countdown timer doesn't beep at 00:00 ?
My timer beeps when the timer transitions from 0:00 to -0:00 This is the proper behavior. Is this not what other see?

Please Log in or Create an account to join the conversation.

More
26 Nov 2012 18:11 #3245 by FDR
Replied by FDR on topic Countdown timer doesn't beep at 00:00 ?
It might be because of the different settings, so here are my settings:

Prealert time=10
Prealert intvl=1
Timeup intvl=2

[alert1] and [alert2] are both configured in the sound.ini

I see no problem in either emulators, will try the tx later...

Please Log in or Create an account to join the conversation.

More
27 Nov 2012 14:06 - 27 Nov 2012 14:07 #3296 by vlad_vy
Replied by vlad_vy on topic Countdown timer doesn't beep at 00:00 ?
These settings don't help. I have not beep exactly at 00:00, but have beep 1 second before 00:00, have beep 2 seconds after 00:00.

I can say that is unstable problem. At other PC I have beep at 00:00 with emu_devo8. Right now I havn't beep at 00:00 with emu_devo8 and Devo8.
Last edit: 27 Nov 2012 14:07 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
27 Nov 2012 14:19 - 27 Nov 2012 14:21 #3298 by PhracturedBlue
Replied by PhracturedBlue on topic Countdown timer doesn't beep at 00:00 ?
Ok. download the filesystem and emu for 2.0.0
change nothing else, but go to the transmitter config and change prealert intrvl to 1 and timeup intrvl to 1
go back to the main page, reset the timer2, and let it count down.
it beeps at 9,8,7,6,5,4,3,2,1,0, and double beeps at 0:00->-0:00, -0:01, ...
That is what I see on my tx and in the emulator for both devo8 and devo10. Please test with the emu/filesystem in the downloads area to ensure that nothing else is going on. You should , at least, be able to reproduce what I just did doing those steps, and then at least we can start from common ground in figuring out what is wrong.
Last edit: 27 Nov 2012 14:21 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
27 Nov 2012 14:50 - 27 Nov 2012 14:55 #3300 by vlad_vy
Replied by vlad_vy on topic Countdown timer doesn't beep at 00:00 ?
It beeps at 9,8,7,6,5,4,3,2,1,0, and double beeps at 0:00->-0:00, -0:01, -00:02, ... (with 2 seconds pause)

With default settings = 20 seconds pause.
Last edit: 27 Nov 2012 14:55 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
27 Nov 2012 15:07 #3301 by PhracturedBlue
Replied by PhracturedBlue on topic Countdown timer doesn't beep at 00:00 ?
Wait. you followed my instructions above using the official build, and do not get the double-beep at 0:00-> -0:00?
How is that possible?
With the default settings it does not beep at 0:00 -> -0:00, that is certainly a bug.

Please Log in or Create an account to join the conversation.

More
27 Nov 2012 15:11 - 27 Nov 2012 15:20 #3302 by FDR
Replied by FDR on topic Countdown timer doesn't beep at 00:00 ?
It works as expected for me in both emulators...
Beeps at 9,8,7,6,5,4,3,2,1,0, and double (actually triple) beeps at -0,-1,-2, and so on.
Last edit: 27 Nov 2012 15:20 by FDR. Reason: typo

Please Log in or Create an account to join the conversation.

More
27 Nov 2012 15:14 - 27 Nov 2012 15:14 #3303 by PhracturedBlue
Replied by PhracturedBlue on topic Countdown timer doesn't beep at 00:00 ?
If I unzip the emu and the filesystem and do nothing other than reset the timer2 (no idea why it starts at 0:00 that also looks like a bug) and start it, it beeps at -0, -10, -20,...
Last edit: 27 Nov 2012 15:14 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
27 Nov 2012 15:15 #3304 by vlad_vy
Replied by vlad_vy on topic Countdown timer doesn't beep at 00:00 ?
Yes, I use filesystem and emu v2.0.0

With Devo8 and firmware v2.0.0 all is the same, with any settings I have not double beep at 0:00 -> -0:00, but pause.

Please Log in or Create an account to join the conversation.

More
27 Nov 2012 15:19 #3305 by FDR
Replied by FDR on topic Countdown timer doesn't beep at 00:00 ?

PhracturedBlue wrote: ...(no idea why it starts at 0:00 that also looks like a bug)...

Yeah, I saw that too, but only for the first time. After saving the model once, it is all right.

Please Log in or Create an account to join the conversation.

More
27 Nov 2012 15:22 #3306 by suvsuv
Replied by suvsuv on topic Countdown timer doesn't beep at 00:00 ?

PhracturedBlue wrote: Wait. you followed my instructions above using the official build, and do not get the double-beep at 0:00-> -0:00?
How is that possible?
With the default settings it does not beep at 0:00 -> -0:00, that is certainly a bug.

I got this bug report from another user ej189 last week, so I believe this is certainly a bug and happens only in some devo10/devo8

Please Log in or Create an account to join the conversation.

More
27 Nov 2012 15:24 - 27 Nov 2012 15:25 #3307 by PhracturedBlue
Replied by PhracturedBlue on topic Countdown timer doesn't beep at 00:00 ?
one thing I saw is that the code may not trigger if the timer doesn't fire at exactly '0' msec. since we only update it every 100msec, it is possible that it doesn't fire on the '0' tick. in that case the behavior may not be consistent. I didn't write the beep logic, but I'll dig into it and see if I can figure out what is wrong.

I'll take another look at the patch suvsuv sent as well.
Last edit: 27 Nov 2012 15:25 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
27 Nov 2012 15:24 #3308 by suvsuv
Replied by suvsuv on topic Countdown timer doesn't beep at 00:00 ?

vlad_vy wrote: Yes, I use filesystem and emu v2.0.0

With Devo8 and firmware v2.0.0 all is the same, with any settings I have not double beep at 0:00 -> -0:00, but pause.

Please try this dfu in you devo8, it should give you double-beeping at -00:00

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum