peregin / gps-overlay-on-video

Telemetry (GPS) data overlay on videos
MIT License
285 stars 36 forks source link

Fix tests to match new algorithms #211

Closed kvr000 closed 3 months ago

kvr000 commented 3 months ago

One bugfix - prevPoints didn't include the immediately preceding previous point.

Distance is interpolated on difference between distance instead of segment, as the interpolation may happen on the same single point.

The constants in tests were adjusted to match new smoothing algorithm. Sometimes it's significant as the sample data are often recorded 3-5 seconds and new algorithm looks up to 9 seconds instead of previously 9 points.