-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All values are default values in new fields added with fitgen #76
Comments
I'll need to take a closer look, but you're sure field def numbers are correct? (190, 191 and 192.) |
I chose them at will from between 0 and 255, paying attention to having them unique (within the Profile.xlsx file). I can't find any information on this, are they pre-defined somewhere? I'm not having much luck finding anything about |
They'll need to match the field def numer they're encoded with in the file. It looks like these are undocumented/"hidden", and not present in the SDK specification. What did you use to generate the file overview in your issue? You can try to decode the file with debug logging, and then look at the different field defintions to get at hint about field def numbers. See this decode option: Line 27 in a5da86a
|
Thanks for your time and all the info! I'll probably just transform the file to CSV and read it that way, seems easier at this point. I can see all the fields and correct values in a csv.
I just loaded my file over here: https://www.fitfileviewer.com/. Seems to work OK, not sure what they do behind the scenes.
Many thanks for the tip! The project is actually about the data in the fit files, so I'll move onto that now. I didn't know the radar fields are so non-standard, I expected it to work out of the box... And thanks for the Feel free to close the issue any time. |
Hi again, So I looked at it a bit more and it seems that there is something called "Developer Data Fields", which you probably know, described here.. I can't work out how to access those using your
They seem to have definition numbers which are "local" in the sense that if I use them in the PS: when I decode the fit file with
Also, towards the end of the file, there's another one (an extra, which does not correspond to any of my radar fields):
|
Data Developer Fields are not supported fully be this libary yet. It supports parsing files containing them (i.e. parse files containing them without crashing), but they're not parsed/available yet. I'm want and plan to support them, but have not had the time to work on the feature. There is a fork that supports them (I think), https://github.com/hammerheadnav/fit, and I hope I may integrate some of that work. That being said, I'm not clear to me if the |
@tormoder thanks for the info and your work around here! Feel free to close this issue as you prefer. |
I'm not sure if this is an issue, but I need help figuring out why all values from
radar_current
,radar_speeds
, etc. fields that I added withfitgen
default to maxuint8
oruint16
as I define them. The values from other fields are parsed correctly (e.g. HR or distance). I apologize in advance if this is a user error!Let's focus on
radar_current
(which is the current count of cars coming up from behind registered by Garmin radar). See the file displayed below. The last entry is20
.I defined
radar_current
asuint8
. See SDK'sProfile.xlxs
screenshot:Once I regenerate a few files with
fitgen
and I tellgo
about it withreplace github.com/tormoder/fit => /home/jsliacan/Github/fit
ingo.mod
, I run a modified example code from here:fit/example_test.go
Line 45 in 14e5de2
radar_current
field in therecord
(snippet below). I expected to see20
but I get255
. However, forhr
field (which I didn't generate withfitgen
) I get the correct value of114
.Any help appreciated.
The text was updated successfully, but these errors were encountered: