하드웨어 만보계를 갖춘 6축 IMU(가속도계 + 자이로스코프). I²C로 연결하는 LSM6DS3.
저장소: github.com/dekiengine/deki-imu · 최신 릴리스: 0.19.0 · 엔진 0.19.0 이상 필요 · 의존: deki-i2c
DekiEditor --packages-add deki-imu <project> 또는 패키지 관리자로 설치합니다. 엔진 자체의 컴포넌트와 C++ API는 Deki 문서에 있습니다.
에디터에는 IMU (Accelerometer + Gyroscope)(으)로 표시됩니다.
컴포넌트
기능 플래그
빌드에서 뺄 수 있는 부분입니다. define이 있는 기능은 그 define으로 켜고 끄며, 나머지는 컴포넌트와 함께 제거됩니다.
| 기능 | define | 기본값 |
| LSM6DS3 (I²C, 6-axis + hardware pedometer) | DEKI_FEATURE_IMU_LSM6DS3 | 켜짐 |
컴포넌트 레퍼런스
LSM6DS3IMUComponent
I2C로 LSM6DS3 모션 센서를 읽습니다. 걸음 수 카운터도 포함됩니다.
인스펙터 이름: LSM6DS3 IMU · 카테고리: 센서 · 유형: DekiImu::LSM6DS3IMUComponent
| 속성 | 유형 | 기본값 | 제약 | 설명 |
| i2cPort | int32 | 0 | 0~3 | 센서가 연결된 I2C 버스입니다. 해당 포트를 설정한 I2C 버스 컴포넌트와 일치해야 합니다. |
| i2cAddress | int32 | 106 | 0~127 | 버스상의 센서 주소로, SDO/SA0 핀으로 정해집니다. 그 핀이 Low이면 0x6A, High이면 0x6B입니다. 이 핀을 다르게 연결하면 이 칩 두 개가 하나의 버스를 공유할 수 있습니다. |
| enablePedometer | bool | true | | 칩에 내장된 걸음 수 카운터를 실행합니다. 하드웨어에서 세므로 CPU를 깨우지 않고도 걸음 수가 계속 쌓이며, 소비 전류가 약간 늘어납니다. |
변경 내역
변경 내역은 영어로 되어 있습니다.
0.19.0
Changed
- minEngine 0.19.0: built against engine 0.19.0, whose component metadata records the package each class is in. A build of this package from before does not load and is rebuilt.
Added
- Japanese, Simplified Chinese and Korean: editor/lang/ja.json, zh.json and ko.json translate the names, tooltips and enum values this package's components show in the Inspector.
0.18.0
Changed
- minEngine 0.18.0. Reflection ABI 21: the package must be rebuilt.
- Names follow the code style (deki-engine/docs/codestyle): types, functions and enum values are PascalCase, constants kPascalCase, members m_PascalCase, locals and parameters camelCase. The code is formatted with clang-format 22.
- The functions the editor finds by name are PascalCase: DekiIMURegisterComponents, DekiIMUGetAutoComponentCount, DekiIMUEnsureRegistered and the rest. Built against engine ABI 21; a build of this package from before does not load and is rebuilt.
Fixed
- LSM6DS3: resetting the step count works. It set a bit in the wrong register, so the count never cleared.
- LSM6DS3: with the pedometer on, the gyroscope's X and Z axes stay on. Turning the pedometer on switched them off on the original LSM6DS3. The pedometer bits now follow the chip: the LSM6DS3 and the LSM6DS3TR-C keep them in different places.
Removed
- The former names from before 0.16.0 (bare class names, and deki-gpio's DekiEsp32::ESP32PinSetup). A scene that old is upgraded with 0.17 first.
이전 릴리스: CHANGELOG.md
패키지의 리플렉션 데이터에서 생성했습니다(엔진 0.19.0). 속성 이름은 씬 파일에서 쓰는 키입니다. 이름을 바꿔도 별칭이 유지됩니다(호환성).