Correct workload
This commit is contained in:
@@ -33,8 +33,6 @@ namespace ErgometerApplication
|
|||||||
client.updateStepsText("U begint nu aan een warmup, probeer een tempo van 50 rpm aan te houden. De test gaat automatisch verder.");
|
client.updateStepsText("U begint nu aan een warmup, probeer een tempo van 50 rpm aan te houden. De test gaat automatisch verder.");
|
||||||
workloads = new List<Workload>();
|
workloads = new List<Workload>();
|
||||||
MainClient.ComPort.Write("PW 25");
|
MainClient.ComPort.Write("PW 25");
|
||||||
|
|
||||||
Console.WriteLine(CalculateVOMax());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void timerTick()
|
public void timerTick()
|
||||||
@@ -199,7 +197,7 @@ namespace ErgometerApplication
|
|||||||
|
|
||||||
private int GetCurrentWorkload()
|
private int GetCurrentWorkload()
|
||||||
{
|
{
|
||||||
return workloads.Count - 1;
|
return workloads.Count + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private double CalculateMaximumHeartRate()
|
private double CalculateMaximumHeartRate()
|
||||||
|
|||||||
Reference in New Issue
Block a user