Code Monkey home page Code Monkey logo

Comments (4)

Tigge avatar Tigge commented on June 3, 2024

It seems like the Forefunner 610 have generated an invalid value for the FIT type lap_trigger. Values 0 to 8 are in the specification (manual, time, distance, position_start, position_lap, position_waypoint, position_marked, session_end, fitness_equipment).

You can replace the line (163) with this. At least it will generate a complete tcx file:

triggermet = LAP_TRIGGER_MAP.get(lap.get_data("lap_trigger"), "Manual")

That will mark that lap as manually triggered. I'm not sure if that is a good mapping here though. The valid values for TCX are Manual, Distance, Location, Time and HeartRate.

from fit-to-tcx.

krissen avatar krissen commented on June 3, 2024

Thanks for the reply & fix, @Tigge!

from fit-to-tcx.

Tigge avatar Tigge commented on June 3, 2024

I was a bit curious how Garmin would handle this case so I upload this to Garmin Connect and downloaded it again and what their generated TCX files would look like. It can handle and import this type of files and it will generate a trigger with value Manual.

I'll add a default value like this to all map lookups in a future commit.

from fit-to-tcx.

krissen avatar krissen commented on June 3, 2024

Yes, that's how I've been handling these interval-files previously. (Exporting them through GC.)

Thanks again for the swift fix.

from fit-to-tcx.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.