Acknowledged
over 1 year ago

bug: simulated totalAscent in activity data does crazy jumps when paused and resumed

SDK 6.4.2, simulator, fr955. I start my datafield with the following code in compute:

System.println("compute: timerTime: " + activityInfo.timerTime + ", elapsedDistance: " + activityInfo.elapsedDistance + ", totalAscent: " + activityInfo.totalAscent + ", calories: " + activityInfo.calories);
When I start the activity and hit the "play" button to generate random data I start to see numbers changing every second by a bit (makes sense).
When I hit the pause button, distance and ascent stop changing (as expected).
After hitting play again they continue to change, but a few seconds later totalAscent does a 6000m jump!!!
12:54:23 computeImpl: timerTime: 52805, elapsedDistance: 245.266983, totalAscent: 0.503906, calories: 5
paused, you can see the distance, ascent stop changing:
12:54:24 computeImpl: timerTime: 53805, elapsedDistance: 254.509247, totalAscent: 0.503906, calories: null
12:54:25 computeImpl: timerTime: 54804, elapsedDistance: 254.509247, totalAscent: 0.920105, calories: null
12:54:26 computeImpl: timerTime: 55804, elapsedDistance: 254.509247, totalAscent: 0.920105, calories: null
12:54:27 computeImpl: timerTime: 56806, elapsedDistance: 254.509247, totalAscent: 0.920105, calories: null
12:54:28 computeImpl: timerTime: 57805, elapsedDistance: 254.509247, totalAscent: 0.920105, calories: null
12:54:29 computeImpl: timerTime: 58804, elapsedDistance: 254.509247, totalAscent: 0.920105, calories: null
12:54:30 computeImpl: timerTime: 59804, elapsedDistance: 254.509247, totalAscent: 0.920105, calories: 0
12:54:31 computeImpl: timerTime: 60804, elapsedDistance: 254.509247, totalAscent: 0.920105, calories: 0
hit play button, distance and ascent continue to change:
12:54:32 computeImpl: timerTime: 61807, elapsedDistance: 263.638733, totalAscent: 0.920105, calories: 0
12:54:33 computeImpl: timerTime: 62806, elapsedDistance: 272.569916, totalAscent: 0.920105, calories: 0
12:54:34 computeImpl: timerTime: 63803, elapsedDistance: 281.531464, totalAscent: 0.920105, calories: 0
but a few seconds later ascent becomes crazy:
12:54:35 computeImpl: timerTime: 64806, elapsedDistance: 290.573090, totalAscent: 6096.222168, calories: 0
12:54:36 computeImpl: timerTime: 65805, elapsedDistance: 299.605438, totalAscent: 6096.222168, calories: 1