Skip to content

Commit

Permalink
disable avg inclination for gpx treadmill
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein authored Dec 27, 2023
1 parent 2c71206 commit 53b245c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/trainprogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,9 +716,9 @@ void trainprogram::scheduler() {
}
if (rows.at(0).inclination != -200) {
double inc;
if (!isnan(rows.at(0).latitude) && !isnan(rows.at(0).longitude)) {
/*if (!isnan(rows.at(0).latitude) && !isnan(rows.at(0).longitude)) {
inc = avgInclinationNext100Meters(currentStep);
} else {
} else */{
inc = rows.at(0).inclination;
}
qDebug() << QStringLiteral("trainprogram change inclination") + QString::number(inc);
Expand Down Expand Up @@ -854,9 +854,9 @@ void trainprogram::scheduler() {
}
if (rows.at(currentStep).inclination != -200) {
double inc;
if (!isnan(rows.at(currentStep).latitude) && !isnan(rows.at(currentStep).longitude)) {
/*if (!isnan(rows.at(currentStep).latitude) && !isnan(rows.at(currentStep).longitude)) {
inc = avgInclinationNext100Meters(currentStep);
} else {
} else */{
inc = rows.at(currentStep).inclination;
}
qDebug() << QStringLiteral("trainprogram change inclination") + QString::number(inc);
Expand Down Expand Up @@ -1004,7 +1004,7 @@ void trainprogram::scheduler() {

if (rows.at(currentStep).inclination != -200 &&
(!isnan(rows.at(currentStep).latitude) && !isnan(rows.at(currentStep).longitude))) {
double inc = avgInclinationNext100Meters(currentStep);
double inc = rows.at(currentStep).inclination;
// if Bike used and it is a gpx with Video use the new weightedInclination
if ((videoAvailable) && (bluetoothManager->device()->deviceType() == bluetoothdevice::BIKE)) {
inc = weightedInclination(currentStep);
Expand Down

0 comments on commit 53b245c

Please sign in to comment.