Accuracy
TorkeKit’s automated tests simulate runs with exact physics (so the real time is known) and feed them through the engine with the worst of a phone: 1 Hz GPS, sensor noise and a tilted mount. Every release must meet these targets:
| Mark | Target |
|---|---|
| 60 ft | ± 0.10 s |
| 0–100 km/h | ± 0.20 s |
| 1/4 mile | ± 0.15 s |
On top of that, iOS and Android must give the same result from the same samples: the tests on both platforms read demo-42.torkerun.json and compare the times to half a millisecond.
What helps and what hurts
Section titled “What helps and what hurts”| Helps | Hurts |
|---|---|
| Rigid mount | Phone in the hand or loose |
| Open sky | Roofs, trees, buildings |
| GPS at 5 Hz or faster | 1 Hz GPS with dropped fixes |
| Flat strip | Slope (gravity leaks in as acceleration) |
| One second still before launching | Rolling off the line |
The phone’s GPS
Section titled “The phone’s GPS”TorkeKit works with the phone alone, without external receivers or other hardware. To get the most from the GPS it has:
- The real rate.
snapshot.gpsRatesays how many fixes per second each phone’s GPS gives: 1 on iPhone and most Android phones, 5 to 10 on some. The engine uses every fix that arrives. - Full tracking on Android. From Android 12,
PhoneSensorProviderasks the GNSS chip to track every satellite without power-saving gaps while recording. Fixes come steadier; it uses a bit more battery.PhoneSensorProvider(context, fullTracking = false)turns it off. - Satellites and signal on Android.
phone.gnsssays how many satellites the GPS uses, how many it sees and their mean signal (C/N0). Under open sky a phone uses 15 or more at 30–40 dB-Hz; with fewer, the speed is less accurate. - Why not raw Doppler. The chip already computes the speed from the satellites’ Doppler shift; recomputing it by hand needs each satellite’s ephemeris and doesn’t improve it.
Check it with your runs
Section titled “Check it with your runs”The targets above are checked with simulated runs. With real runs and their timeslips, torke-validate tells you how far off TorkeKit is at each mark.