ados-clock runs on the drone, ground_station and visor profiles. ados-sensorhub runs on drone and visor.
The sensor bus
The bus is the socket/run/ados/sensing/sensors.sock. Each frame is length-prefixed msgpack with a kind (clock, imu, gnss, trigger, baro, mag, rtcm, sync), a source id and a payload, and every sample is stamped on the host monotonic timebase.
An extension reads the bus with the
sensor.stream.read capability, which gives it the whole /run/ados/sensing/ directory, so it follows the socket across restarts.
The clock
ados-clock fits every source that publishes sync pairs (flight controller, sensor hub, GNSS PPS, simulator) against the host monotonic clock, and tracks the rate and freshness of every stream on the bus. Once a second it writes /run/ados/sensing/clock.json and /run/ados/sensors.json. A locked GNSS PPS source is also handed to chrony through its SOCK refclock, so the system clock follows it.
The timebase a capture session records against is the first of these that is locked:
GET /api/v1/clock
With the service absent the body is
present: false, timebase: host_monotonic, locked: false, sigma_ns: -1 and an empty sources list.
The sensor hub
The ADOS Sensor Hub is a USB co-processor that samples IMUs, fires and timestamps camera triggers, and passes GNSS through.ados-sensorhub reads its packet stream over USB CDC-ACM or TCP, maps hub time onto the host clock, and publishes each packet on the bus. RTCM corrections on the bus are forwarded to the hub’s receiver. The link state goes to /run/ados/sensorhub.json once a second.
The rig file
/etc/ados/rig.json describes the rig: its id, calibration version, and each sensor’s id, kind, role and mount. The sensors table and the capture extension read it.
Both validate the document before writing, store it atomically, and then reload
ados-sensorhub so the hub picks up the new extrinsics. A success returns {"ok": true, "rig_id", "calib_version"}. An invalid rig is E_RIG_INVALID. The lidar add is refused with 409 when the rig already has a lidar, already has a sensor named lidar0, or the stored rig does not validate; nothing is changed.
GET /api/v1/sensors
The live sensor table joins the bus streams with the rig file, the hub link, the clock and GNSS.
Each sensor row has
id, kind (imu, camera, gnss, baro, mag, lidar, thermal), role, source (hub, fc, gnss, vision, lidar), the measured rate_hz beside the configured expected_hz, last_t_ns, age_ms and the source clock’s sigma_ns. A sensor in the rig file that is not streaming is still listed, at rate 0. A lidar lists the scan rate the navigation hub measures.
Clock configuration
clock.sim.latency_floor_ns is the measured minimum latency of the simulator’s frame pipeline (encode, RTSP and decode), which one-way timing pairs cannot measure. When set, it is added to the simulator source’s offset. When unset, the offset is left as measured and the published sigma carries a 30 ms bound instead.