This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| tamiwiki:projects:mynt-eye-s2110 [2025/05/03 16:28] – wissotsky | tamiwiki: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**: | ||
| + | |||
| + | ==== Code Snippet ==== | ||
| + | <code cpp> | ||
| + | std:: | ||
| + | uvc_set_ctrl(devh, | ||
| + | |||
| + | static std:: | ||
| + | uvc_get_ctrl(devh, | ||
| + | </ | ||
| + | |||
| + | ==== Data Decoding ==== | ||
| + | - Decode the fetched data into segments that include timestamps, temperature, | ||
| + | |||
| + | ==== 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] | ||
| + | </ | ||
| + | |||
| + | |||
| + | Full thing here https:// | ||