Baseline Fitness App code?

Is there any source for a good solid fitness app that implements most of the functions of the existing fitness apps like running or cycling?

There are a lot of limitations in the data field API (no access to laps, no ability to configure, limit of 2 CIQ fields, etc) that are preventing me from doing some of the things I want to do. Looking at the sample app code available and the API, it appears to be a rather large effort to be able to build even the baseline functionality of a fitness app (GPS, Ant+ sensors, FIT output, data field view.) It would be great if Garmin or a 3rd party published something (with a usable license) that could work as a starting point.
  • note: laps is not exposed by garmin SDK so you have to write that yourself too
  • A bare bones app is quite simple. See the RecordSample in the SDK. Then you just display (or calculate and display) the data you want shown.

    As Nikeow said, things like laps aren't there in the app by itself, and in fact, it's up to the app itself to even mark laps. If you want an auto-lap, that must be determined in the app, and then addLap() needs to be called in the code. Same if you want manual laps - user pushes a button, and your code calls addLap().

    Combine RecordSample with stuff from PositionSample if you want GPS data, and from the Sensor sample if you want to add things like a HRM
  • Right, I guess I wasn't clear.

    Say I want to create a data field that show aerobic decoupling on a per lap basis. This way with each lap you can compare speed (or power) to HR and identify when you're starting to fall apart. (This is just a pedantic example, not sure you really want to do this.)

    Since I can't get lap data in a data field, I would need to do this in an app. In order for this to be useful to anyone, the app would need to be a nearly feature complete copy of the existing running or cycling apps.

    Rather than reinvent the wheel, I was hoping someone (Garmin) had publish the code for a feature complete running app that I could use as a starting point.