trails/packages/fit
Ullrich Schäfer dbba1c1607
Fix FIT Course capabilities and lap duration
The Course message advertised capabilities=0x04 (time only), telling
consumers the course had no position data. Wahoo accepted the route
(distance/elevation come from request fields) but rendered an empty
map. Set capabilities to valid|distance|position (0x1A).

Also write a real lap totalElapsedTime/totalTimerTime derived from the
1Hz record timestamps; a zero-duration lap can be rejected as malformed.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 10:24:50 +02:00
..
__fixtures__ Add @trails-cool/fit package with GPX→FIT Course encoder 2026-04-30 22:31:37 +02:00
src Fix FIT Course capabilities and lap duration 2026-05-01 10:24:50 +02:00
package.json Add @trails-cool/fit package with GPX→FIT Course encoder 2026-04-30 22:31:37 +02:00
tsconfig.json Add @trails-cool/fit package with GPX→FIT Course encoder 2026-04-30 22:31:37 +02:00
vitest.config.ts Add @trails-cool/fit package with GPX→FIT Course encoder 2026-04-30 22:31:37 +02:00