Added interval number to RowingData
Added the interval number to the RowingData, allowing RowingData to recognize the intervals.
This commit is contained in:
parent
52d491b5f2
commit
a72fe3f017
|
|
@ -67,7 +67,7 @@ function createWorkoutRecorder () {
|
|||
log.info(`saving session as RowingData file ${filename}...`)
|
||||
|
||||
// Required file header, please note this includes a typo and odd spaces as the specification demands it!
|
||||
let RowingData = ',index, Stroke Number,TimeStamp (sec), ElapsedTime (sec), HRCur (bpm),DistanceMeters, Cadence (stokes/min), Stroke500mPace (sec/500m), Power (watts), StrokeDistance (meters),' +
|
||||
let RowingData = ',index, Stroke Number, lapIdx,TimeStamp (sec), ElapsedTime (sec), HRCur (bpm),DistanceMeters, Cadence (stokes/min), Stroke500mPace (sec/500m), Power (watts), StrokeDistance (meters),' +
|
||||
' DriveTime (ms), DriveLength (meters), StrokeRecoveryTime (ms),Speed, Horizontal (meters), Calories (kCal), DragFactor, PeakDriveForce (N), AverageDriveForce (N),' +
|
||||
'Handle_Force_(N),Handle_Velocity_(m/s),Handle_Power_(W)\n'
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ function createWorkoutRecorder () {
|
|||
trackPointTime = new Date(startTime.getTime() + currentstroke.totalMovingTime * 1000)
|
||||
timestamp = trackPointTime.getTime() / 1000
|
||||
|
||||
RowingData += `${currentstroke.totalNumberOfStrokes.toFixed(0)},${currentstroke.totalNumberOfStrokes.toFixed(0)},${currentstroke.totalNumberOfStrokes.toFixed(0)},${timestamp.toFixed(5)},` +
|
||||
RowingData += `${currentstroke.totalNumberOfStrokes.toFixed(0)},${currentstroke.totalNumberOfStrokes.toFixed(0)},${currentstroke.totalNumberOfStrokes.toFixed(0)},${currentstroke.intervalNumber.toFixed(0)},${timestamp.toFixed(5)},` +
|
||||
`${currentstroke.totalMovingTime.toFixed(5)},${(currentstroke.heartrate > 30 ? currentstroke.heartrate.toFixed(0) : NaN)},${currentstroke.totalLinearDistance.toFixed(1)},` +
|
||||
`${currentstroke.cycleStrokeRate.toFixed(1)},${(currentstroke.totalNumberOfStrokes > 0 ? currentstroke.cyclePace.toFixed(2) : NaN)},${(currentstroke.totalNumberOfStrokes > 0 ? currentstroke.cyclePower.toFixed(0) : NaN)},` +
|
||||
`${currentstroke.cycleDistance.toFixed(2)},${(currentstroke.driveDuration * 1000).toFixed(0)},${(currentstroke.totalNumberOfStrokes > 0 ? currentstroke.driveLength.toFixed(2) : NaN)},${(currentstroke.recoveryDuration * 1000).toFixed(0)},` +
|
||||
|
|
|
|||
Loading…
Reference in New Issue