-
Notifications
You must be signed in to change notification settings - Fork 14
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
Parse symbole and type #19
base: master
Are you sure you want to change the base?
Parse symbole and type #19
Conversation
* create directory app/libs | ||
* copy fit.jar from the [Garmin FitSDK](https://developer.garmin.com/fit/download/) to app/libs | ||
* Download the [Connect IQ Mobile SDK (Android BLE/ADB)](https://developer.garmin.com/connect-iq/sdk/) and copy the .aar file to app/libs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the dependencies so one does not have to download oneself.
I don't know if you need the files locally for some other kind of debugging. If so I can leave the documentation unchanged.
* see Minetti, A. E. et al. (2002). Energy cost of walking and running at extreme uphill and downhill slopes. | ||
* Journal of Applied Physiology 93, 1039-1046, http://jap.physiology.org/content/93/3/1039.full | ||
* see <a href="http://jap.physiology.org/content/93/3/1039.full">Minetti, A. E. et al. (2002). | ||
* Energy cost of walking and running at extreme uphill and downhill slopes. | ||
* Journal of Applied Physiology 93, 1039-1046</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removes a warning
} catch (NoSuchMethodException e) { | ||
; | ||
} catch (IllegalAccessException e) { | ||
; | ||
} catch (InstantiationException e) { | ||
; | ||
} catch (InvocationTargetException e) { | ||
; | ||
} catch (NoSuchMethodException | IllegalAccessException | InstantiationException | | ||
InvocationTargetException ignored) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removes a warning
cp.setType(CoursePoint.GENERIC); | ||
encode.write(cp); | ||
} | ||
writeWayPoints(encode, wayPoints); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reduced code duplication
private double lat = Double.NaN; | ||
private double lon = Double.NaN; | ||
private double ele = Double.NaN; | ||
private Date time = null; | ||
private double lat; | ||
private double lon; | ||
private double ele; | ||
private Date time; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
values are overridden in constructor so they don't have to be set here
@haraldh at first it seemed to work, but now I am getting |
The main change here is that when
type
andsym
tags in gpx files are considered. They are used to determine thetype
of course points. The logic is: if there is atype
parse it. If that failssym
is used. If parsing fails again use theGENERIC
type.Also some clean ups are done