Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Cool feature for runners
« previous next »
  • Print
Pages: [1]

Author Topic: Cool feature for runners  (Read 3188 times)

Offline hrdcorbassfishin

  • Member
  • *
  • Posts: 1
Cool feature for runners
« on: August 08, 2009, 02:41:25 PM »
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?
Logged

Offline jgsprenger

  • Member
  • *
  • Posts: 19
Re: Cool feature for runners
« Reply #1 on: August 18, 2009, 10:37:58 PM »
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...?
Logged
e280*2 | e250 | c250 | Free Luna

Offline Grahack

  • Member
  • *
  • Posts: 13
Re: Cool feature for runners
« Reply #2 on: September 15, 2009, 02:40:32 PM »
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: [Select]
rb.beep(freq, duration, amplitude)

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.
« Last Edit: September 16, 2009, 03:20:18 AM by Grahack »
Logged

Offline Mr Whippy

  • Member
  • *
  • Posts: 154
Re: Cool feature for runners
« Reply #3 on: September 15, 2009, 05:48:15 PM »
How about it the mic picks up your footsteps and beeps to increase/decrease pace? Maybe have  Gunnery Sergeant Hartman shouting at you  ;D
Logged

Offline Domonoky

  • Developer
  • Member
  • *
  • Posts: 205
Re: Cool feature for runners
« Reply #4 on: September 18, 2009, 12:55:51 PM »
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.

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

Offline Grahack

  • Member
  • *
  • Posts: 13
Re: Cool feature for runners
« Reply #5 on: September 18, 2009, 01:03:24 PM »
Indeed, but hrdcorbassfishin and jgsprenger wanted more time ("at the 5 min mark, 5:30, 7, 7:30, 9 etc..." and "run 10 min and walk 1 min").
Maybe sleeping 60 times one second would save some CPU and allow us to act on the script more often. But maybe that's what you meant...
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Cool feature for runners
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.09 seconds with 15 queries.