Skip to main content

IMU Sensor API

The Systems Engine provides endpoints for retrieving data from Inertial Measurement Unit (IMU) sensors. This page documents the request and response formats for IMU sensor operations.

Read Primary IMU Sensor

Retrieves data from the primary IMU sensor, including position and orientation information.

Endpoint

GET /system/sensors/imu/primary

Response

{
"pos_x": 578,
"pos_y": 757,
"pos_z": 63713,
"roll": 0,
"pitch": 65527,
"yaw": 65526
}

Read Secondary IMU Sensor

Retrieves data from a specific IMU sensor node.

Endpoint

GET /system/sensors/imu

Query Parameters

ParameterTypeDescription
nodeIndexNumberIndex of the node to read IMU data from (0-3)

Response

{
"pos_x": 578,
"pos_y": 757,
"pos_z": 63713,
"roll": 0,
"pitch": 65527,
"yaw": 65526
}

These endpoints provide access to motion and orientation data from the device's IMU sensors, which can be used for tracking head movement, position, and other motion-related metrics.