Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seconds count down for timer show elapsed option and Voice/Haptic support #2711

Merged
merged 3 commits into from
Jan 23, 2023

Conversation

eshifri
Copy link
Contributor

@eshifri eshifri commented Nov 11, 2022

Summary of changes:
first commit fixes audio time announcements for "odd" timer values.
E.g. current code when the timer is set to 1:32 will announce 1 minute 2 seconds (for elapsed option). After the fix it will be 1 minute as expected.

Second commit adds support for seconds announcement for elapsed time.
Current code will announce remaining seconds independently of the option selected.
New code will announce elapsed seconds.
I'm not convinced this is useful/good idea - hence two commits to allow selective pull in.

Resolves #2677

@Eldenroot
Copy link
Contributor

Great.

Timers need some love.

Especially I do not understand why we cannot set haptic+voice together like we can on other radio manufactures... And even more

@pfeerick
Copy link
Member

Especially I do not understand why we cannot set haptic+voice together like we can on other radio manufactures... And even more

Probably because people have not wanted that before, or no-one has gone and writeen the code to do it ;)

Second commit adds support for seconds announcement for elapsed time.
Current code will announce remaining seconds independently of the option selected.
New code will announce elapsed seconds.
I'm not convinced this is useful/good idea - hence two commits to allow selective pull in.

I'm also unsure about that second commit conceptually - perhaps we should be thinking about an option to control announcement of seconds, and as of when. See what happens when I actually use it ;)

@Eldenroot
Copy link
Contributor

@eshifri - please check the video in this ticket:

#1892

video link:
https://www.youtube.com/watch?v=jD05KqG-c6w&t=400s

This is really missing, but thank you for your last commit!

@eshifri
Copy link
Contributor Author

eshifri commented Nov 13, 2022

@Eldenroot Thank you for the video!
I guess I'm missing a certain use case you have in mind, since to me it looks like that ETX has almost the same capabilities.
Is it really important to have the flexibility to enable countdowns for 30/20/1 second independently?
It is possible of course, but it is a lot of code since ETX supports multiple targets.

@eshifri eshifri changed the title seconds count down for timer1 show elapsed option seconds count down for timer1 show elapsed option and Voice/Haptic support Nov 13, 2022
@Eldenroot
Copy link
Contributor

@Eldenroot Thank you for the video! I guess I'm missing at a certain use case you have in mind, since t o me it looks like tha ETX has almost the same capabilities. Is it really important to have the flexibility to enable countdowns for 30/20/1 second independently? It is possible of course, but it is a lot of code since ETX supports multiple targets.

I used this a lot when I had Spektrum.

Especially:

  • every minute
  • expiration
  • 10 to 1 second - beeps

I understand that this is not simple to add and everybody prefers something different, but I find these really useful.

I can collaborate, free to discuss - discord.

@Eldenroot
Copy link
Contributor

Hi, any progress with this one? Thx

@eshifri
Copy link
Contributor Author

eshifri commented Dec 6, 2022

I think it is implemented here. Almost completely. It does not have flexibility to enable 30 and 20 s beeps independently, but the rest is here.

@Eldenroot
Copy link
Contributor

OK, do you have any plans on these mentioned above? Maybe to extend in another PR? Or anyway how to set it easily? :) thx!

@eshifri
Copy link
Contributor Author

eshifri commented Dec 6, 2022

Personally, I do not have plans for that. :-)
It requires a lot of coding (CPN, storage, etc...) and changes to UI, that will take screen real estate.
IMO - not worth the effort: one extra beep? Is it so bad? :-)
And if you use 10s and then every second beep/haptic - you will get it from this PR.

@pfeerick pfeerick self-assigned this Dec 23, 2022
@Eldenroot
Copy link
Contributor

OK, I understand :) So I hope this will get soon to nightly .) thx!

@pfeerick pfeerick added the enhancement ✨ New feature or request label Jan 20, 2023
@pfeerick pfeerick force-pushed the eshifri/count_elapsed_seconds branch from 2454bdb to 925f1a7 Compare January 20, 2023 05:09
@pfeerick pfeerick changed the title seconds count down for timer1 show elapsed option and Voice/Haptic support Seconds count down for timer show elapsed option and Voice/Haptic support Jan 20, 2023
@pfeerick pfeerick added this to the 2.9 milestone Jan 20, 2023
@pfeerick
Copy link
Member

pfeerick commented Jan 23, 2023

Ok, I've finally played with this on the radio now (TX16S and TX12MKII), and I see what you mean by the changes to voice dependent on whether show remain or show elapsed is configured. Let's leave this as it is, and see what feedback we get from nightly users... in one respect it makes sense, as it makes it so the timer value is being verbalised rather than counting down even though you have the timer configured as an elapsed timer.

@pfeerick pfeerick merged commit 8e8e786 into EdgeTX:main Jan 23, 2023
@Eldenroot
Copy link
Contributor

Ok, great. Maybe create a ticket with these for discussion? I believe it should be implemented someday ;)

@pfeerick
Copy link
Member

pfeerick commented Jan 23, 2023

Of course, you're free to do so if you wish. :) Then we can see how much interest there is for those features, and what is the best way to go about incorporating them if there is enough interest / someone wanting to work on it.

@ParkerEde
Copy link
Contributor

nice. also tested with lua model.setTimer .... extraHaptic=1. works fine

mha1 pushed a commit to mha1/edgetx that referenced this pull request Jan 27, 2023
… countdown (EdgeTX#2711)

* fix "odd" elapsed time announcement

* announce elapsed seconds

* Add support for "Beeps and Haptic" and "Voice and Haptic" for timer countdown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timer Countdown new parameter "Voice and Haptic"
4 participants