Git Product home page Git Product logo

fit2gpx's People

Contributors

maksvasilev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fit2gpx's Issues

Default values for enumerate

java -jar fit2gpx.jar --full-dump
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 99 out of bounds for length 5
at fit2gpx.main(fit2gpx.java:117)

Problem with fit file created by Suunto watch

When I try to convert my fit file I get following exception:
"C:\Program Files\jdk-16\bin\java.exe" -jar fit2gpx.jar Mountaineering_2021-08-14T08_08_21.fit
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 4 out of bounds for length 4
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.base/java.util.Objects.checkIndex(Objects.java:359)
at java.base/java.util.ArrayList.get(ArrayList.java:427)
at Converter.fix(Converter.java:413)
at Converter.run(Converter.java:194)
at fit2gpx.main(fit2gpx.java:260)

Mountaineering_2021-08-14T08_08_21.zip

Empty point at the end of the GPX

Hello,

A bug is happening with some fit files (example attached):
It creates a last point with empty lat/lon:

<trkpt lat="" lon="">
    <time>2022-04-17T11:53:08Z</time>
    <ele>95.0</ele>
    <extensions>
     <nmea:speed>0.028888888889923692</nmea:speed>
     <gpxtpx:TrackPointExtension>
      <gpxtpx:atemp>17</gpxtpx:atemp>
      <gpxtpx:speed>0.028888888889923692</gpxtpx:speed>
      <gpxtpx:course>73134.1</gpxtpx:course>
     </gpxtpx:TrackPointExtension>
    </extensions>
</trkpt>

While other FIT 2 GPS translator doesn't put such empty point at the end
f06ae542-b465-44f4-b3ff-edce1314043a.zip

fit2gpx on Android

Программа уже написана на java. Могли бы Вы адаптировать её для Android?

Running dinamics

Message number: 20 Name: "record" Fields: 20
Field num: 253 Name: "timestamp" Units: (s) [841083683]
Field num: 0 Name: "position_lat" Units: (semicircles) [802104488]
Field num: 1 Name: "position_long" Units: (semicircles) [652181821]
Field num: 5 Name: "distance" Units: (m) [17015.7]
Field num: 2 Name: "altitude" Units: (m) [101.39999999999998]
Field num: 6 Name: "speed" Units: (m/s) [3.714]
Field num: 39 Name: "vertical_oscillation" Units: (mm) [72.2]
Field num: 40 Name: "stance_time_percent" Units: (percent) [38.25]
Field num: 41 Name: "stance_time" Units: (ms) [243.0]
Field num: 83 Name: "vertical_ratio" Units: (percent) [5.65]
Field num: 84 Name: "stance_time_balance" Units: (percent) [48.5]
Field num: 85 Name: "step_length" Units: (mm) [1227.0]

Field num: 87 Name: "unknown" Units: () [0]
Field num: 3 Name: "heart_rate" Units: (bpm) [155]
Field num: 4 Name: "cadence" Units: (rpm) [95]
Field num: 13 Name: "temperature" Units: (C) [3]
Field num: 42 Name: "activity_type" Units: () [1]
Field num: 53 Name: "fractional_cadence" Units: (rpm) [0.0]
Field num: 78 Name: "enhanced_altitude" Units: (m) [101.39999999999998]
Field num: 73 Name: "enhanced_speed" Units: (m/s) [3.714]

Developer data from FIT

Information that fields and widgets on Connect IQ write to the FIT file: W'bal, TRIM ZCW...

Use enhanced_altitude and enhanced_speed

Must use enhanced_altitude and enhanced_speed instead of speed and height, because they have a large bit depth. Speed is currently limited to 65.535 m / s (235 km / h)

Power data to GPX file

No power data in GPX file.

Workaround (Strava variant):

<extensions>
 <power>147</power>
...

English translation

This just looks just like what I need.

Please translate your readme/issues also to English, so everybody can profit and contribute from your project.

Thanks!

fit2gpx vs. Bryton

Добрый день.

Очень хорошая утилита, в т.ч. и тем, что распознает "нестандартные" .fit-файлы, записанные моим Bryton Rider 530.

В ходе обсуждения на веломании (мой диалог с pavlinux) выяснилось, что по сути корректно их распознает только страва. Я заметил, что после обработки fit2gpx (без ошибок) получившийся .gpx выглядит несколько странно - одна и та же секунда повторяется по 2 раза с разными данными. А чуть позже на глаза попалась эта тема.

GoldenCheetah анализирует этот .gpx криво, результаты абсолютно бесполезны. Имеющиеся решения не подходят - GPX/TCX из стравы получаются какими-то куцыми...

Проблему для себя я решил локально - написал на VBA )) маленький фикс, обрабатывающий .gpx. Он объединяет данные с одним и тем же временем и добавляет координаты в те точки, когда скорость равна 0 и работает Smart Pause.

Я не программист и понимаю, что мое "решение" работает только для моего набора (530+текущая прошивка+HR). Что будет с другими .fit от других пользователей Bryton - не представляю. На Bryton надежды нет - их support пребывает в зачаточном или предсмертном состоянии.

Поэтому, так как

Любые предложения приветствуются!

я вношу свои: 1) добавить в fit2gpx функцию объединения данных из "record", имеющих "same timestamp", а также 2) добавить координаты и заодно elevation (и то, и другое из ближайшей из ранее записанных точек, где эти данные есть) в тех случаях, когда велосипед не движется и устройство переходит в режим паузы.

Bryton.zip

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.