Implement elevation gain via barometer.

This commit is contained in:
Dennis Guse
2020-03-30 20:03:04 +02:00
parent 01ee1a1e49
commit 8a14bc46f6
15 changed files with 480 additions and 36 deletions
@@ -32,6 +32,7 @@ public class TrackPoint {
private Float heartRate_bpm = null;
private Float cyclingCadence_rpm = null;
private Float power = null;
private float elevationGain = Float.NaN;
public TrackPoint() {
this.location = new Location("");
@@ -92,6 +93,18 @@ public class TrackPoint {
return location;
}
public boolean hasElevationGain() {
return !Float.isNaN(elevationGain);
}
public float getElevationGain() {
return elevationGain;
}
public void setElevationGain(float elevationGain) {
this.elevationGain = elevationGain;
}
public double getLatitude() {
return location.getLatitude();
}