v 2.4.26
-
- calculateElapsedCardioTime
- calculateElapsedResistanceTime
- identifyResultTypes
- calculateJumps
- calculateJumpsGood
- calculateJumpPercentage
- calculateSegmentTypeMaxHR
- calculateSegmentTypeMinHR
- calculateSegmentTypeAverageHR
- calculateTotalCaloriesBurned
- calculateExerciseCount
- caculateBandChanges
- parseVersionNumbers
- getSegmentTypeHRSamples
id
:string
UUIDname
:string
dob
:string
date of birthemail
:string
height
:number
in inchesweight
:number
in poundsuser_code
:string
4-digit identification code used to sign into a machine
- sessionId
- libraryVersion
- segmentRecordStartTime
- msecondsCardioPaused
- msecondsResistancePaused
- segmentRecordEndTime
- jumps
- jumpsGood
- jpmSamples
- heartBPM
- segmentRecordSamples
- heartBPMSamples
- startStatus
- events
- bandChanging
- callibratedBandReading
- maxBandReading
- totalMaxBandReadings
- countingRep
- bandStatus
- reps
- repSecondCount
- totalReps
- statusRequestsPerSecond
string
UUID Initialized as null
identifies the session this segment record belongs to
Identifier for the segmentRecord. This id is generated by the server.
string
digijump-sessionData-library version number
number
Initialized as null
Timestamp when segmentRecord was begun. In milliseconds since EPOCH
number
Initialized as 0
Running total of milliseconds passed while paused during a cardio segment. This value is updated when a segmentRecord is unpaused or when a segment ends. Used to offset Cardio segment start times (and effectively only counting unpaused time toward total time elapsed in a given segment) by calculateElapsedCardioTime
number
Initialized as 0
Running total of milliseconds passed while paused during a resistance segment. This value is updated when a segmentRecord is unpaused or when a segment ends. Used to offset Resistance segment start times (and effectively only counting unpaused time toward total time elapsed in a given segment) by calculateElapsedResistanceTime
number
Initialized as null
Timestamp when segmentRecord was ended. In milliseconds since EPOCH
number
Initialized as 0
Number of jumps completed during a segment.
number
Initialized as 0
Number of good jumps completed during a segment.
array
of number
s Initialized as []
Array of timestamps of last six jumps recorded
integer
Initialized as 0
Most recent heartrate reading
array
of segmentRecordSample objects Initialized as []
Timestamped array of all raw readings from the serial device
{parsedData, timestamp:number
}
array
of heartBPMSample objects Initialized as []
{heartBPM: integer
, timestamp:number
}
Array of all heartrate readings during the segmentRecord.
parsedData Object Initialized as null
Initial serial readings from the device. Used as a baseline for calibration.
Initialized as []
Array of OnDevice app events.
An OnDevice app event object
timestamp
of the eventband
identifies the changing band
timestamp
of the eventband
identifies the changing bandcallibratedBandReading
timestamp
of the eventsegType
SEGMENT_RECORD, CARDIO, or RESISTANCEcurrentJumps
[ optional ] total number of jumps a the time of the eventcurrentJumpsGood
[ optional ] total number of good jumps a the time of the event
timestamp
of the eventsegType
SEGMENT_RECORD, CARDIO, or RESISTANCEcurrentMsecondsCardioPaused
[ optional ] total number of msecondsCardioPaused at the time of the eventcurrentMsecondsResistancePaused
[ optional ] msecondsResistancePaused at the time of the eventcurrentJumps
[ optional ] total number of jumps a the time of the eventcurrentJumpsGood
[ optional ] total number of good jumps a the time of the event
timestamp
of the eventsegType
CARDIO, or RESISTANCElastUnpausedReading
index of the last reading in the segmentRecordSamples which occured before the pause event occured.
timestamp
of the eventsegType
CARDIO, or RESISTANCElastPausedReading
index of the last reading in the segmentRecordSamples which occured before the unpause event occured.
number
Initialized as null
number
Initialized as null
number
Initialized as null
number
Initialized as []
number
Initialized as false
number
Initialized as 'neutral'
number
Initialized as 0
number
Initialized as 0
number
Initialized as 0
number
Pulled from config defaults to 12
This is the rate at which stat requests are sent to the digijump device
lowerBand
:number
lowerBandForce
:number
centerBand
:number
centerBandForce
:number
highBand
:number
highBandForce
:number
topBand
:number
topBandForce
:number
lexanLoad
:number
jumps
:number
jumpsGood
:number
airtTimeMs
:number
heartBPM
:number
motorCurrent
:number
systemStatus
:number
cycleTime
:number
calculateElapsedCardioTime(segmentRecord)
takes the segmentRecord object and returns the sum of seconds elapsed within each Cardio Segment in the SegmentRecord. Time elapsed while paused or outside of a Cardio Segment is not counted.
calculateElapsedResistanceTime(segmentRecord)
takes the segmentRecord object and returns the sum of seconds elapsed within each Resistance Segment in the SegmentRecord. Time elapsed while paused or outside of a Resistance Segment is not counted.
identifyResultTypes(segmentRecord)
takes the segmentRecord object and returns an object with two boolean properties: cardio
and resistance
signifying the prescence of each type of Segment in the results
calculateJumps(segmentRecord)
takes the segmentRecord object and returns the sum of jumps completed within each Cardio Segment in the SegmentRecord. Jumps while paused or outside of a Cardio Segment are not counted.
calculateJumpsGood(segmentRecord)
takes the segmentRecord object and returns the sum of good jumps completed within each Cardio Segment in the SegmentRecord. Good jumps while paused or outside of a Cardio Segment are not counted.
calculateJumpPercentage(segmentRecord)
takes the segmentRecord object and returns percentage of jumps which were good jumps
calculateSegmentTypeMaxHR(segmentRecord, segmentType)
takes the segmentRecord object and returns the maximum heartrate BPM sample from the heartBPMSamples array after filtering for samples which are timestamped within a START_EVENT and END_EVENT of the specified segmentType
calculateSegmentTypeMinHR(segmentRecord, segmentType)
takes the segmentRecord object and returns the minimum heartrate BPM sample from the heartBPMSamples array after filtering for samples which are timestamped within a START_EVENT and END_EVENT of the specified segmentType
calculateSegmentTypeAverageHR(segmentRecord, segmentType)
takes the segmentRecord object and returns the average of the heartrate BPM samples in the heartBPMSamples array after filtering for samples which are timestamped within a START_EVENT and END_EVENT of the specified segmentType
calculateTotalCaloriesBurned(segmentRecord, athlete)
takes the segmentRecord object and the athlete object and returns the total calories burned by the athlete during the segmentRecord
calculateExerciseCount(segmentRecord, segType)
takes the segmentRecord object and segmentType returns the number of segments completed of the specified type
calculateCurrentJpm(segmentRecord)
takes the segmentRecord object and returns the average jumps per minute of the last six jumps
calculateBandChanges(parsedData, segmentRecord)
returns an object {bandChanging, callibratedBandReading, maxDiff}
which are the name of the band which has the max difference from its startStatus compared to all other bands, the force reading of that band, and the max difference amount itself--respectively
parseVersionNumbers(segmentRecord)
returns an object {majorVer, minorVer, patchVer}
containing the major, minor and patch version of the segmentRecord provided.
getSegmentTypeHRSamples(segmentRecord, segmentType)
returns all of the samples in heartBPMSamples array after filtering for samples which are timestamped within a START_EVENT and END_EVENT of the specified segmentType
Released with a [ major ].[ minor ].[ patch ] versioning scheme. Minor changes include any breaking changes with functions Patch changes are backwards compatible