Skip to content
Permalink
Browse files

Setup Duration, initial sample bracketing and metrics for erg2 files

Parsing is correct, but without this initialization they cannot be executed.
Fixes #3338
  • Loading branch information
amtriathlon committed Feb 11, 2020
1 parent 1b3792d commit 48670ff566244e375c55d7636d4b075c0f327087
Showing with 9 additions and 3 deletions.
  1. +9 −3 src/Train/ErgFile.cpp
@@ -225,10 +225,16 @@ void ErgFile::parseErg2(QString p)
add.val = add.y = int((segment.at(2).toDouble() /100.00) * CP);
Points.append(add);
}
}
// set ErgFile duration
Duration = Points.last().x; // last is the end point in msecs

qDebug() << "document" << object["title"];
valid = true;
leftPoint = 0; // setup initial sample bracketing
rightPoint = 1;
interpolatorReadIndex = 0;

calculateMetrics();
valid = true;
}
}
}

0 comments on commit 48670ff

Please sign in to comment.
You can’t perform that action at this time.