Add configurable Aerobic Threshold HR to HrZones

Change LTPage to include AeT HR and look like CPPage and CVPage
Default to 90% LTHR, used to delimit Polarized Zones I and II
Add config(aethr) to formulas
Add AeTHR to R/Pyhton/Rest APIs

Part 1 of #2555
This commit is contained in:
Ale Martinez
2021-03-14 20:53:54 -03:00
parent fc9e302aef
commit b79166fa59
18 changed files with 193 additions and 107 deletions

View File

@@ -551,12 +551,13 @@ APIWebService::listZones(QString athlete, QStringList, HttpRequest &request, Htt
if (zones->read(zonesFile)) {
// success - write out
response.write("date, lthr, maxhr, rhr\n");
response.write("date, lthr, aethr, maxhr, rhr\n");
for(int i=0; i<zones->getRangeSize(); i++) {
response.write(
QString("%1, %2, %3, %4\n")
QString("%1, %2, %3, %4, %5\n")
.arg(zones->getStartDate(i).toString("yyyy/MM/dd"))
.arg(zones->getLT(i))
.arg(zones->getAeT(i))
.arg(zones->getMaxHr(i))
.arg(zones->getRestHr(i))
.toLocal8Bit()