garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

.. /docs/notes/indoor-positioning.md

raw


topic: indoor positioning triggers: [high_precision.rs, precise_sensors.rs, FieldReadings, "crates/vio", "indoor positioning", "magnetic field", magnetometer, "Wi-Fi RTT", WifiRttManager, UWB, "Wi-Fi sensing", CSI] updated: 2026-11-03

Indoor positioning

RTK gives centimetres under open sky and nothing indoors: the UM980 in a room on 2026-10-13 held a single fix at ±18–30 m (rtk-receiver.md). What "precise indoors" can mean here was worked through on 2026-11-03; nothing in this note beyond the log's field readings is built, and none of the accuracies below were measured here — they are the published or commercial figures.

The shape it has to take

Every source fails differently, so the answer is a combination, with the camera tracking (camera-tracking.md) as the spine:

SourceAccuracyFails how
Camera + motion sensors~1 cm relative to where it locked (bench)drifts with distance (camera tracking in general ~1 %), loses itself on blank walls and in the dark; a restart is a new scale
RTK fix carried in through the door1–2 cm, onceonly outside; the anchor today is one phone GNSS fix, which indoors is tens of metres off
Magnetic field matching1–3 m (IndoorAtlas-class)needs the building's field mapped once; a magnet near the phone disturbs it; one reading is ambiguous, only a stretch of walk matches
Wi-Fi RTT (802.11mc/az)1–2 monly where access points answer it and their positions are known; most home routers do not
The building's wallsrules places out3DBAG and BAG give the shell only; doors are derived (doors-and-rooms.md)

The fast relative source carries the hand; the slow absolute ones pull the track back onto the map now and then. Metre sources do not add up to centimetres: absolute centimetres everywhere indoors needs UWB anchors per venue. Relative centimetres is what a hand-sensing prim needs, and the high-precision note's rule holds indoors too — no correction applied while a hand is playing.

Magnetic matching fits this project better than it fits most: the camera tracking can map a building's field on the first visit (it knows where the phone is to centimetres while the walk is short), so no separate survey is needed; and a field map says nothing about people, so keeping it does not reverse "nothing the camera sees is kept".

What the log measures (2026-11-03)

FieldReadings in high_precision.rs writes the field a second at a time — its strength and its up component, both independent of how the phone is turned — from Android's calibrated magnetometer at 50 Hz (platform::precise_sensors, optional: a phone without one says "magnet 0/s"). The test to run: the same indoor route walked three times with high precision on, then the log copied. If the three strength sequences line up, the OnePlus's field is repeatable enough to match against; if they do not, the magnetic row above is off the table for this phone. Not run yet.

Rejected