mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Revert "HRV / R-R updates to RideFile and Allplot"
.. inadvertently committed alongside updates for sport tags.
.. these updates introduced a serious regression for the
ridefile JSON format and backwards compatibility
.. reverts the following commits:
b47cb733a2
d432602b35
This commit is contained in:
@@ -42,7 +42,6 @@
|
||||
|
||||
#define LAP_TYPE 19
|
||||
#define RECORD_TYPE 20
|
||||
#define HRV_TYPE 78
|
||||
#define SEGMENT_TYPE 142
|
||||
|
||||
static int fitFileReaderRegistered =
|
||||
@@ -1032,25 +1031,6 @@ struct FitFileReaderState
|
||||
last_event_type = event_type;
|
||||
}
|
||||
|
||||
void decodeHRV(const FitDefinition &def,
|
||||
const std::vector<FitValue>& values) {
|
||||
int rrvalue;
|
||||
int i=0;
|
||||
foreach(const FitField &field, def.fields) {
|
||||
FitValue value = values[i++];
|
||||
if ( value.type == ListValue && field.num == 0){
|
||||
for (int j=0; j<value.list.size(); j++)
|
||||
{
|
||||
rrvalue = int(value.list.at(j));
|
||||
if (rrvalue == -1){
|
||||
break;
|
||||
}
|
||||
rideFile->appendHRV(rrvalue);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void decodeLap(const FitDefinition &def, int time_offset,
|
||||
const std::vector<FitValue>& values) {
|
||||
time_t time = 0;
|
||||
@@ -2553,9 +2533,7 @@ struct FitFileReaderState
|
||||
case 53: /* speed zone */
|
||||
case 55: /* monitoring */
|
||||
case 72: /* training file (undocumented) : new since garmin 800 */
|
||||
case HRV_TYPE:
|
||||
decodeHRV(def, values);
|
||||
break;/* hrv */
|
||||
case 78: /* hrv */
|
||||
case 79: /* HR zone (undocumented) ; see details below: */
|
||||
/* #253: timestamp / #1: default Min HR / #2: default Max HR / #5: user Min HR / #6: user Max HR */
|
||||
case 103: /* monitoring info */
|
||||
|
||||
Reference in New Issue
Block a user