Rockbox Development > Feature Ideas

Cool feature for runners

(1/2) > >>

hrdcorbassfishin:
For me, I would prefer not to carry a stopwatch when doing HITT (high intensity turbulence training). If it would be possible to have a feature that is a stopwatch that you can set intervals for a loud beep sound. It would decrease the volume of the music playing and beep really loud at, in my case, at the 5 min mark, 5:30, 7, 7:30, 9 etc... of course those intervals would be customized to your own needs.

For those who run steady pace and want to keep a 6min/mile pace, you could set beeps at like 5 min and 5:30 so you know if you need to push harder to stay on track.

Anyway, Ithink this would be very useful and would love to see it in a future release. Anyone have any thoughts?

jgsprenger:
Hey I like that IDEA!

related, but not all that similar, I run 10 min and walk 1 min, so a linked timer would be great.... set timer A for 10 min, when it counts down to zero, Beeeeep, beeeep, then start timer B (which is set for 1 min), when it counts down to zero, different beeeeep beeeep, then repeat back to timer A!

I wonder if this could be done with Lua to run in the background with listening to tunes or audiobooks...?

Grahack:
Hi, I posted a patch to allow Lua to beep.
http://www.rockbox.org/tracker/task/10608
I'd be glad if you could test it.


--- Code: ---rb.beep(freq, duration, amplitude)
--- End code ---

I wonder how we can wait x seconds efficiently. A pure empty loop + os.time() checks would IMHO grab the CPU's time, while using rb.sleep(rb.HZ) does not let us stop the Lua script exactly when we want.

Mr Whippy:
How about it the mic picks up your footsteps and beeps to increase/decrease pace? Maybe have  Gunnery Sergeant Hartman shouting at you  ;D

Domonoky:

--- Quote from: Grahack on September 15, 2009, 02:40:32 PM ---I wonder how we can wait x seconds efficiently. A pure empty loop + os.time() checks would IMHO grab the CPU's time, while using rb.sleep(rb.HZ) does not let us stop the Lua script exactly when we want.

--- End quote ---

Just place a small sleep into the loop. ie rb.sleep(rb.HZ/100) would sleep for 10ms.

Navigation

[0] Message Index

[#] Next page

Go to full version