maximum number of samples for fitcontributor

I did some exercises about fitcontributor and i noticed that it is possible to store a vector of data simply passing to field the array and the number of items into it. I coded and i can say it works but the graph i get on garmin connect shows always time steps of 1 second. I setup a timer of 100ms, retrieve 10 samples, push a vector of 10 samples each sec. In my mind i thougth this would produce a graph of many 10-vectors with elements spaced of 100ms ... was it supposed to be or i was wrong?

thank you

Top Replies

All Replies

  • GC doesn't understand the array.  Sounds to me like you need to use the FIT SDK and write your own app to display the array the way you want.

  • ok! thank you! I did some homeworks and found no chance to have an array ... so i think i will use the 3 arrays to store 10 values of x,y,z samples each and then average them storing only the mean value obtained. it is not good at all but maybe far enough to find what i'm searching for... 

  • Still, there must be some "feature", because the documentation talks about ":count — (Lang.Number) — 

    The number of elements to add to the Field if it is an Array". So even if it's not displayed in GCM, maybe it's saved in the fit file.

  • Still, there must be some "feature", because the documentation talks about ":count — (Lang.Number) — 

    The number of elements to add to the Field if it is an Array". So even if it's not displayed in GCM, maybe it's saved in the fit file.

    As I mentioned in the thread I linked above, the FIT specification actually has array types, but they're not documented/exposed in the CIQ API. Somebody tried setting an array type manually (using the integer value instead of a named enum) and it didn't work for them. I didn't try it myself.

    So it's just another case of bad documentation. In this case it's technically correct (count is used *if* the field is an array), but practically useless (CIQ doesn't support array FIT fields).

    However, IIRC, count is used for strings, so it's not totally useless. (I could be wrong on that - it's been a while since I've written or looked at code which writes strings to FIT files.)

  • Yes, if I recall, count was used with strings to set a max size.  If you don't specify it for a string, I think it only writes 1 character