Skip to content
Permalink
Browse files

Added virtual power support for CycleOps JetFluid Pro

Fixes #1809
  • Loading branch information...
amtriathlon committed Oct 29, 2019
1 parent a68cc8d commit a6875c583a76232c047275148642bc8dc9d948da
Showing with 8 additions and 0 deletions.
  1. +1 −0 src/Train/AddDeviceWizard.cpp
  2. +7 −0 src/Train/RealtimeController.cpp
@@ -1275,6 +1275,7 @@ AddFinal::AddFinal(AddDeviceWizard *parent) : QWizardPage(parent), wizard(parent
virtualPower->addItem(tr("Power - Tacx Sirius (10)")); // 65
virtualPower->addItem(tr("Power - Elite Crono Fluid ElastoGel")); // 66
virtualPower->addItem(tr("Power - Elite Turbo Muin (2015)")); // 67
virtualPower->addItem(tr("Power - CycleOps JetFluid Pro")); // 68

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

case 68: // CycleOps JetFluid Pro
{
double V = rtData.getSpeed();
rtData.setWatts(0.94874757375670469046 * V + 0.11615123681031937322 * pow(V,2) + 0.00400691905019748630 * pow(V,3));
}
break;

default : // unknown - do nothing
break;
}

0 comments on commit a6875c5

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