Commit 157e5a73 authored by Raphael's avatar Raphael
Browse files

slope and verticalSpeed added

parent 9468d643
......@@ -67,6 +67,8 @@ def handleGpx(gpx):
point.segmentlength = point.distanceTo(points[i-1])
point.distance = points[i-1].distance + point.segmentlength
point.speed = point.segmentlength / (point.time - points[i-1].time)
point.slope = (point.elevation - points[i-1]) / segmentlength
point.verticalSpeed = (point.elevation - points[i-1]) / segmentlength
points.append(point)
return points
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment