- Published on
- Reading time
- 19 min read
GPS Simulator, part 3: a GPS that behaves like a real one, with noise, curves and geofences
A perfect route, at constant speed and with zero error, hides the bugs that show up on a real GPS. A walk through the simulation engine of GPS Simulator: a pure function of elapsed time, the tick loop in the foreground service, repeatable noise, speed variation, braking before curves, a parked point that drifts, the geofence state machine, and how to try each imperfection yourself.