i have an issue with a lap field.
the field is written properly into the FIT file. i know i am doing this right, because i have read out the content of the FIT file using the java scripts provided with the FIT sdk.
but:
- the lap field is not shown in GC in windows 10 - internet explorer. i have another lap field, which is being shown
- the lap field column is shown in GC app in Android, BUT the value is empty (well, actually is a dash "-").
if i compare my two fields, i see no difference between them. everything seems well implemented.
in resources file
<fitField id="4"
displayInActivityLaps="true"
sortOrder = "4"
precision="2"
dataLabel="@Strings.total_distance_label"
unitLabel="@Strings.total_distance_units" />
<fitField id="5"
displayInActivityLaps="true"
sortOrder = "5"
precision="2"
dataLabel="@Strings.avg_pace_label"
unitLabel="@Strings.avg_pace_units" />if lap field definition:
lapTotalDistance = session.createField("total distance", 4, Fit.DATA_TYPE_FLOAT, { :nativeNum=>9, :mesgType=>Fit.MESG_TYPE_LAP, :units=>"m" });
lapAvgPace = session.createField("avg pace", 5, Fit.DATA_TYPE_FLOAT, {:mesgType=>Fit.MESG_TYPE_LAP, :units=>"s/100m" });and when setting the value:
lapTotalDistance.setData(total_distance);
lapAvgPace.setData(100.0/avg_speed);everything seems equivalent to me. and, as i mentioned, I can see the proper data written into the FIT file. but somehow GC is failing to find it.
i have the feeling that this is a Garmin bug. it is strange for instance that the field is not shown at all in windows, but on the other hand the column is shown i Android, although with no data.
Here you can find some screenshots. field avg_pace is not shown is windows, label is shown in android but no data, and field is present in excel (FIT-file).
(offtopic: how do i get the pics to be automatically shown in a post?)
can somebody figure out what is missing? or some garmin guy could tell me if this is a known issue? there is a ton of other issues with fields and GC, could you bring some light here?
i have also problems with:
- chart colors
- chart not showing in full screen
- number of fields and labels cannot be changed after first app upload. succesive changes are OK in FIT file, but break GC interface.
thank you in advance