Skip to content

Commit

Permalink
Force HRM Power Pedalling Index on (#57)
Browse files Browse the repository at this point in the history
We do this any time power data is available, even though we get no such
pedalling index data from the V800.

This is being done for PPT5's benefit (does anyone use HRM files with
anything else?).
  • Loading branch information
pcolby committed Nov 26, 2015
1 parent 973a991 commit 1bd0eda
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/polar/v2/trainingsession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1547,8 +1547,11 @@ QStringList TrainingSession::toHRM(const bool rrDataOnly) const
stream << (haveAltitude ? '1' : '0'); // c) Altitude
stream << (havePower ? '1' : '0'); // d) Power
stream << (havePowerBalance ? '1' : '0'); // e) Power Left Right Balance
// Note, we're forcing Power Pedalling Index on when we have power data,
// even though we have no such pedalling index data. This is for PPT5's
// benefit. See issue #57 - https://github.com/pcolby/bipolar/issues/57
stream << (havePowerBalance ? '1' : '0'); // f) Power Pedalling Index
stream <<
"0" // f) Power Pedalling Index (does not appear to be supported by FlowSync).
"0" // g) HR/CC data (available only with Polar XTrainer Plus).
"0" // h) US / Euro unit (always metric).
"0" // i) Air pressure (not available).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Params]
Version=106
Monitor=1
SMode=111110000
SMode=111111000
Date=20151101
StartTime=12:17:52.0
Length=01:42:07.3
Expand Down
2 changes: 1 addition & 1 deletion test/polar/v2/testdata/training-sessions-267510822.hrm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Params]
Version=106
Monitor=1
SMode=111110000
SMode=111111000
Date=20151101
StartTime=12:17:52.0
Length=01:42:07.3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Params]
Version=106
Monitor=1
SMode=011110000
SMode=011111000
Date=20141229
StartTime=12:58:44.0
Length=00:00:35.8
Expand Down
2 changes: 1 addition & 1 deletion test/polar/v2/testdata/training-sessions-42261903.hrm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Params]
Version=106
Monitor=1
SMode=011110000
SMode=011111000
Date=20141229
StartTime=12:58:44.0
Length=00:00:35.8
Expand Down

0 comments on commit 1bd0eda

Please sign in to comment.