- Posts: 268
Countdown timer doesn't beep at 00:00 ?
- suvsuv
- Offline
That is what I thought, there is no guarantee that the clock can always be triggered exactly at 0, so my previous fix gave the timer 1second lead time to make sure it can always beep at 00:00.PhracturedBlue wrote: 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.
the way to verify the fix is to set a breakpoint insid the TIMER_update() when the timer is near 00:00, to on purposely let the emulator lose the 00:00, then you will see the timer won't beep until next interval cycle
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- suvsuv
- Offline
- Posts: 268
Ok, you point out the reproduce step.vlad_vy wrote: I forget to mention that I start timer by throttle. If I set swith to 'None' and start timer manually (touch screen), I have double beep at 00:00 -> -00:00.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- FDR
- Offline
I've just tried in both emulators to start the timers with the throttle stick and ch3 as the switch, and both worked fine. OK sometimes there was a slight delay in the last single beep at 0, but it beeped...
Please Log in or Create an account to join the conversation.
- FDR
- Offline
I'm trying it on an XP with i7 2.6GHz.
I will try it at home on a slower notebook under Vista later tonight...
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- suvsuv
- Offline
- Posts: 268
forget the emulator, there are many bugs can't reproduce in emulator.FDR wrote: Not necessarily.
I've just tried in both emulators to start the timers with the throttle stick and ch3 as the switch, and both worked fine. OK sometimes there was a slight delay in the last single beep at 0, but it beeped...
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Yep, but Vlad got this error in the emulators too.suvsuv wrote:
forget the emulator, there are many bugs can't reproduce in emulator.FDR wrote: Not necessarily.
I've just tried in both emulators to start the timers with the throttle stick and ch3 as the switch, and both worked fine. OK sometimes there was a slight delay in the last single beep at 0, but it beeped...
Besides I don't have the tx at work...
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Start timer from throttle (or any switch) = no double beep at 00:00 -> -00:00.
Start timer manually (touch screen) = double beep at 00:00 -> -00:00.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please confirm.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
With the 738b8ff both the emulator and the tx beep at zero even if there is a timer switch configured, so it solves the problem.
However I think it wasn't random at all. On the same platform it always behaved the same...
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
I have just committed a fix for that tooFDR wrote: BTW the timer value is not properly displayed on the actual tx either for the first time. After a model save it is there...
Please Log in or Create an account to join the conversation.
- Home
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Countdown timer doesn't beep at 00:00 ?