I have a few questions/issues related to writing to a FIT file from my CIQ data field. I've numbered them in the image below to illustrate the questions/issues. Maybe a guru here can help.
It is a pretty basic technique. I call a function that writes some data to the LOG file and to the FIT file, when something happens. In this test run, I wrote to both 3 times. At minutes 1, 3, and 5 after hitting start. Here is the CODE and the LOG file.
BUG (1): The mobile app and the web site display different views of the CIQ graph. This is clearly a bug. I didn't write a thing until minute 1. The web site assumes the initial value equals what I first wrote at minute 1. The mobile connect app assumes a "-1" value until I write my first value. No biggie. I'll just initialize at startup. But probably still should be fixed for consistency.
Question (2): I wrote a 3rd value to the LOG file and to the FIT file (value = 8), a few seconds before I hit stop and then save. That last value shows up in the LOG but not in the FIT file - at least not rendered in the graphs. Why? Do I need to call some kind of FLUSH to get that to actually write?
Question (3): What do I need to do so that an AVERAGE horizontal line, and MIN/MAX values, show up in the CIQ graph, like they do in the native graphs like for Speed?
THANKS!