Merge pull request #14 from JaapvanEkris/patch-2

extracts magic constant c into the rower specific settings
This commit is contained in:
Lars Berning 2021-04-29 15:05:07 +02:00 committed by GitHub
commit 1f947bd1d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ function createRowingEngine (rowerSettings) {
// A constant that is commonly used to convert flywheel revolutions to a rowed distance
// see here: http://eodg.atm.ox.ac.uk/user/dudhia/rowing/physics/ergometer.html#section9
const c = 2.8
const c = rowerSettings.magicConstant
// jMoment * ωdot = -kDamp * ω^2 during non-power part of stroke
const kDamp = jMoment * omegaDotDivOmegaSquare