mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-08 12:23:06 +02:00
Add max power stats
This commit is contained in:
@@ -9,13 +9,15 @@ public class SensorStatistics {
|
||||
private final HeartRate avgHr;
|
||||
private final Cadence maxCadence;
|
||||
private final Cadence avgCadence;
|
||||
private final Power maxPower;
|
||||
private final Power avgPower;
|
||||
|
||||
public SensorStatistics(HeartRate maxHr, HeartRate avgHr, Cadence maxCadence, Cadence avgCadence, Power avgPower) {
|
||||
public SensorStatistics(HeartRate maxHr, HeartRate avgHr, Cadence maxCadence, Cadence avgCadence, Power maxPower, Power avgPower) {
|
||||
this.maxHr = maxHr;
|
||||
this.avgHr = avgHr;
|
||||
this.maxCadence = maxCadence;
|
||||
this.avgCadence = avgCadence;
|
||||
this.maxPower = maxPower;
|
||||
this.avgPower = avgPower;
|
||||
}
|
||||
|
||||
@@ -47,6 +49,10 @@ public class SensorStatistics {
|
||||
return avgPower != null;
|
||||
}
|
||||
|
||||
public Power getMaxPower() {
|
||||
return maxPower;
|
||||
}
|
||||
|
||||
public Power getAvgPower() {
|
||||
return avgPower;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user