User Tools

Site Tools


tamiwiki:projects:mynt-eye-s2110

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tamiwiki:projects:mynt-eye-s2110 [2025/05/03 16:28] wissotskytamiwiki:projects:mynt-eye-s2110 [2026/01/26 17:32] (current) – tami sdk imu data wissotsky
Line 48: Line 48:
 was incompatible with the package ecosystem of 16.04 was incompatible with the package ecosystem of 16.04
  
 +
 +===== Tami SDK =====
 +
 +===== IMU Access for MYNT EYE S2110 =====
 +
 +Accessing the **Inertial Measurement Unit (IMU)** data from the MYNT EYE S2110 involves using its UVC capabilities and the **libuvc** library.
 +
 +==== Overview ====
 +  - **UVC Device**: The camera functions as a UVC device for image streaming, but accessing IMU and temperature data requires special handling.
 +  - **Data Retrieval**: Ensure the camera is streaming images. Set control number `0x03` to access the IMU data and then retrieve it using control number `0x04`.
 +
 +==== Code Snippet ====
 +<code cpp>
 +std::uint8_t imu_packet_set_data[5] = {0x5A, correspondence_on, 0x00, 0x00, 0x00};
 +uvc_set_ctrl(devh, 0x03, 0x03, imu_packet_set_data, sizeof(imu_packet_set_data));
 +
 +static std::uint8_t data[2000]{};
 +uvc_get_ctrl(devh, 0x03, 0x04, data, sizeof(data), UVC_GET_CUR);
 +</code>
 +
 +==== Data Decoding ====
 +  - Decode the fetched data into segments that include timestamps, temperature, acceleration, and gyroscope data.
 +
 +==== Example Output ====
 +<code bash>
 +id: 13526, time: 841902864, flag: 3, ets: 0, temp: 31.38, accel: [-0.1558, 0.1452, 0.5871], gyro: [-31.7743, 121.3277, -44.7921]
 +</code>
 +
 +
 +Full thing here https://wissotsky.com/mynteye-imu-access/
  
  
tamiwiki/projects/mynt-eye-s2110.1746289708.txt.gz · Last modified: by wissotsky