hardware_io.android contains hardware-facing access to sensors supplied by the OpenRoadCode Android sensor bridge. The bridge listens only on the phone's localhost interface, currently at http://127.0.0.1:8766.
The layering is intentionally:
AndroidSensorBridgeClient is the low-level bridge client. Its IMU snapshot contains accelerometer, linear acceleration, gyroscope, magnetometer, and barometric-pressure data when those sensors are available on the phone.
AndroidMagnetometer is the hardware-facing magnetometer device. Navigation code should adapt this device to its own contracts rather than reading Android sensor payloads directly.
Start the Android bridge application, then from the OpenRoadCode checkout in Termux run:
Rotate the phone through several orientations. The X/Y/Z magnetic field values and field magnitude should change continuously. Ctrl+C stops the test.
The bridge can be checked independently of Python with:
The /imu response is diagnostic/raw bridge data. Application code should use hardware_io interfaces and adapters instead of depending on the HTTP schema.