#61 New parameter in Overviewdiagramm

open
nobody
5
2010-09-17
2010-03-20
Ralf Tralow
No

Hi,

i needed an additional feature "Heart rate" for the overviewdiagramm. Therefore i programmed (implemented) it.
Now the questions:
1. Is there an easy way with netbeans to support the language files, or must i implement all languages per hand?
2. Do you need the new source files (with no warrenty of perfectness)

I am currently developing an application for HRM on a Nokia N79 phone with a Zephyr™ HxM.
I want to export my data in the polar HRM format.
Witch HRM versions (1.02, 1.05, 1.06, 1.07) from polar do the SportsTracker can import?

Best regards
Ralf

Discussion

  • jede28
    jede28
    2010-03-20

    Hi Ralf,

    a lot of questions - I try to answer all of them...

    Can you please describe the new Heartrate feature? I would like to know more about it first,,,

    The text resources needs to be inserted manually in at least the default english properties file. NetBeans has very nice tool support for editing the files.

    If you want to send me the sources, then please create a patch against the latest Subversion repositiory.

    I always want to support the latest HRM format version. The older ones are supported automatically, new versions are mostly just extend the older ones. Please let me know if you have problems with unsupported HRM files.

    Bye, Stefan

     
  • Ralf Tralow
    Ralf Tralow
    2010-03-21

    added heartrate in overview diagramm

     
    Attachments
  • Ralf Tralow
    Ralf Tralow
    2010-03-21

    Hi Stefan,

    thanks for the fast respond.
    I only wanted to display the heartrate (bpm avg) in the overview diagramm.
    Is the created patch correct?
    In the future i plan to import the HRM with heartrate in R-R interval.
    I cant find the differentiation in the parser source if the heartrate is in bpm or R-R.
    Is this assessment correct?

    Best regards
    Ralf

     
  • jede28
    jede28
    2010-03-21

    Hi Ralf,

    thanks for your patch, I've just reviewed it. I will not commit it, there are several issues:

    (1) It's not complete. You're refer new text resources, but you have not included the modified properties file(s).

    (2) You just take the avg heartrate of the exercise for each exercise, that's wrong. You need to compute the average avg heartrate for all exercises in the particular time period. Otherwise the information is just wrong! To be exact, you need to include the exercise duration too.

    It would be nice when you could fix those issues...

    What do you mean by R-R interval? The percentage of the personal maximum hartrate? If yes, there was a lot of discussion here on sourceforge on this topic. You could take a look on those entries first.

    Bye,
    Stefan

     
  • Hi Stefan,

    sorry for this half patch file. I modified also the properties, but i think i made something wrong with Netbeans (i used only Eclipse before) as i made a diff for all.

    It was the first draft and i think i will change this next weekend.
    I am not so familiar with your software and i am thankful for your hints.

    The R-R Intervall is not the personal maximum heartrate, but the it is the time between every heart beat. (heart rate variability). My new HRM can sample this, and i will only want to display them (In the polarviewer).

    Best regards
    Ralf

     
  • jede28
    jede28
    2010-03-23

    Hi Ralf,

    nice to hear that you want to complete your changes.

    R-R Interval: can you tell me how the R-R data is stored in the exercise?
    At the moment an exercise is a list of laps and samples, each sample for a fixed duration (e.g. 5 seconds). How does the R-R interval data fit into this domain model?

    Bye, Stefan

     
  • Ralf Tralow
    Ralf Tralow
    2010-03-24

    Hi Stefan,

    i found this description for Polar HRM:
    www.polar.fi/files/Polar_HRM_file%20format.pdf
    There are more sample rates. (e.g. the R-R with the index 238)

    Bye Ralf

     
  • jede28
    jede28
    2010-03-26

    Hi Ralf,

    OK, now I know what R-R is.
    At the moment we could display exercises with R-R data as normal exercises with samples for each e.g. 15 seconds. So we must compute the heartrate for those 15 seconds from the parsed R-R data and store it in the exercise object.

    The "problem" is that the exercise object model has a fixed duration between every stored sample. I plan a bigger refactoring which will store the millisecond timestamp for each recorded sample, then it would be possible to store the R-R information. The reason is to support heartrate monitors (e.g. from Garmin) which don't have a fixed sample gap.

    Bye, Stefan

     
  • jede28
    jede28
    2010-09-17

    • labels: 721201 --> SportsTracker