Hi,
I updated the SimpleDataField App (https://apps.garmin.com/en-US/apps/f848e2ec-ad56-4dbd-8e36-eaf0316d5ea3) for recording the metrics and the fit file created have errors, garmin connecte file is this:
https://connect.garmin.com/modern/activity/1304734679 (time graph wrong and some GPS point)
In the App have write, as globals variables
const WBAL_FIELD_ID = 0;
hidden var wBalField;
In initiaze section:
wBalField = createField("current_wbal", WBAL_FIELD_ID, FitContributor.DATA_TYPE_FLOAT, {
:mesgType => FitContributor.MESG_TYPE_RECORD,
:units => "%"
});
wBalField.setData(100.0);
In compute section:
wBalField.setData(balance_por);
what am I doing wrong?
Thanks