Compensate average speed for GPS dropouts (tunnels) by interpolating between fixes

Comments

2 comments

  • Avatar
    David H. Gehring

    User-Story for Developers: As a cyclist riding through tunnels or other GPS-blind sections, I want the Karoo to stop recording 0 km/h while I'm still moving, so that a single long tunnel doesn't drag down my average speed for the rest of the ride.

    Acceptance criteria (preferred — interpolation):

    • On GPS dropout and reacquisition, the device identifies the last valid fix before loss (point 1) and the first valid fix after (point 2), with their timestamps.
    • It computes speed as distance(point 1 → point 2) ÷ elapsed time, and applies that value to every sample logged as 0 km/h during the gap.
    • The bridged distance is added to total distance.
    • Both average speed and total distance reflect actual riding through the dropout.

    Acceptance criteria (fallback — simpler):

    • Samples recorded at 0 km/h during a GPS dropout are excluded from the moving-time calculation.
    • Average speed stays accurate; total distance may be slightly short across the tunnel (acceptable trade-off vs. a wrong average).

    Nice-to-have:

    • A setting to choose between interpolation, dropping zero-speed samples, or raw/uncorrected data.
    • The same logic feeds the auto-pause / moving-time threshold so a tunnel isn't misread as a stop.
    0
    Comment actions Permalink
  • Avatar
    timklge

    I'm not sure trying to do this in software is a good approach. What should happen when you are riding under trees and your GPS does not drop out, but gets inaccurate? What happens when you stop inside a tunnel? 

    You might be able to get something done with sensor fusion using the karoo's imu. Afaik, the Karoo currently does not utilize it in any way, and it could help here and also be useful with identifying the rider's rotation while standing still.

    But why not just use a simple speedometer for 15 € that measures your wheel rotations? That is natively supported by the Karoo and works very well. Mine only ever gets confused when riding over steel bridges.

    0
    Comment actions Permalink

Please sign in to leave a comment.