Average Grade, Smoothed
· vV 2.1-upd3
About
It seems some Forerunner 920XT users (including myself) have observed that %grade from the unit is inaccurate: it seems to be instantaneous grade, and as such changes every second between, for example, 0, 9, -6, 3, -6, 6, 0, 3 and so on.
This data field calculates %grade over 10 seconds, and returns the running average of those calculations. This looks more reasonable, and seems to agree well with an Edge 500's reading on a test ride. The numbers are meaningless for the first several seconds; but on a nice long climb or descent it seems to give good numbers. I also wrote a least-squares version, and it seems to agree with this simple average.
This is my first Connect IQ app, just wanted to see if I could make something work. Let me know how this works for you!
V 2.1 is the same as V 2.0, but works on more devices. Source code here: https://github.com/nickmacias/Garmin-AvgGrade