Private
Public Access
1
0

bike erg power calculation correction

This commit is contained in:
Sander Roosendaal
2018-08-29 11:32:49 +02:00
parent d12897ec03
commit 72223578aa
2 changed files with 3 additions and 3 deletions

View File

@@ -834,11 +834,11 @@ def add_workout_from_data(user,importid,data,strokedata,
pace = pace.replace(0,300)
velo = 500./pace
power = 2.8*velo**3
if workouttype == 'bike':
velo = 1000./pace
pace = 500./velo
power = 2.8*velo**3
# save csv
# Create data frame with all necessary data to write to csv

View File

@@ -246,11 +246,11 @@ def add_c2_stroke_data_db(strokedata,workoutid,starttimeunix,csvfilename,
pace = pace.replace(0,300)
velo = 500./pace
power = 2.8*velo**3
if workouttype == 'bike':
velo = 1000./pace
# This may be wrong for the bike erg
power = 2.8*velo**3
# save csv
# Create data frame with all necessary data to write to csv