Heart Rate Reserve Calculation Bug

Heart Rate Reserve Calculation Bug

Postby Swanny » Thu Dec 04, 2014 12:58 pm

The HRR heart rate reserve calculation needs to add resting heart rate back to the resultant BPM percentage calculation. In the rooster.custom.script.js Javascript you need to add the resting heart rate to the calculatHrrAll() function as follows;

function calculateHrrAll()
{
var baseNumber = toNumber(maxHeartRate.val()) - toNumber(restingHeartRate.val());

percentageInputs.each(function (index)
{
bpmInputs[index].value = Math.ceil(baseNumber * (toNumber(this.value) / 100) + toNumber(restingHeartRate.val());
});
}
Swanny
 
Posts: 25
Joined: Mon Aug 26, 2013 6:04 pm

Re: Heart Rate Reserve Calculation Bug

Postby admin » Tue Dec 16, 2014 11:45 am

thank you Swanny for reporting this,
we have now corrected it
Cris
admin
Site Admin
 
Posts: 641
Joined: Wed May 29, 2013 4:42 pm


Return to Bug reporting

Who is online

Users browsing this forum: No registered users and 1 guest