Skip to content
Permalink
Browse files

Added virtual power support for Tacx Magnetic T1820

Fixes #1521
  • Loading branch information...
amtriathlon committed Oct 30, 2019
1 parent 5cf76dd commit 5c4f72da6c2cb0235cadf2ff702307e68f58f267
Showing with 16 additions and 0 deletions.
  1. +2 −0 src/Train/AddDeviceWizard.cpp
  2. +14 −0 src/Train/RealtimeController.cpp
@@ -1277,6 +1277,8 @@ AddFinal::AddFinal(AddDeviceWizard *parent) : QWizardPage(parent), wizard(parent
virtualPower->addItem(tr("Power - Elite Turbo Muin (2015)")); // 67
virtualPower->addItem(tr("Power - CycleOps JetFluid Pro")); // 68
virtualPower->addItem(tr("Power - Elite Crono Mag Elastogel (3/5)")); // 69
virtualPower->addItem(tr("Power - Tacx Magnetic T1820 (4/7)")); // 70
virtualPower->addItem(tr("Power - Tacx Magnetic T1820 (7/7)")); // 71

//
// Wheel size
@@ -612,6 +612,20 @@ RealtimeController::processRealtimeData(RealtimeData &rtData)
}
break;

case 70: // Tacx Magnetic T1820 (4/7)
{
double V = rtData.getSpeed();
rtData.setWatts(6.77999074563685972005 * V - 0.00148787143661883094 * pow(V,2) + 0.00085058630585658189 * pow(V,3));
}
break;

case 71: // Tacx Magnetic T1820 (7/7)
{
double V = rtData.getSpeed();
rtData.setWatts(9.80556623734881995572 * V - 0.00668894865103764724 * pow(V,2) + 0.00125560535410925628 * pow(V,3));
}
break;

default : // unknown - do nothing
break;
}

0 comments on commit 5c4f72d

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