It seems I am stuck in writing data into a fit file to be analyzed in Garmen Connect after the activity is finished. What I am doing is:
- creating a DataField
- in my initialize() method, i create the FIT fields like
FitActivityField = DataField.createField(
"Field",
FIELD_ACT_ID,
FitContributor.DATA_TYPE_UINT32,
{:mesgType=>FitContributor.MESG_TYPE_SESSION, :units=>"m"});
FitActivityField.setData(0);
- in my compute() method I then write the data like
FitActivityField.setData(10);
What am I missing? I found the documentation in the Programmers Guide about the Namaste example, but it talks about sessions, that are not necessary for DataFields, as far as I understand? Some examples are about editing XML data, but is there an explanation about how this should be done? Is there a detailed documentation/example about how to add FIT data in a DataField?