TheAngryRaven / DovesLapTimer

GPS Based Arduino laptimer library
MIT License
9 stars 2 forks source link

BUG: First crossing time badly off when using catmulrom? #8

Open TheAngryRaven opened 1 year ago

TheAngryRaven commented 1 year ago

Problem

Re-watching the wokwi simulation and for some reason the first lap is 90,000+ seconds

Description

There seems to be some weird time issue still at play, originally this was caused when looking for satellites instead of a proper fix.

Problem only seems to happen on the first lap? Other laps appear to be reported correctly...

Proposed Solution

  1. Investigate WokWi Code
  2. Investigate how new crossing "fix" might be effecting things.
  3. Investigate what happens on first crossing
TheAngryRaven commented 1 year ago

Initial investigation before bed reveals a problem with the catmulrom interpolation method.

Title has been updated, and repo was updated to default to linear interpolation until the problem is properly fixed.