Shadowtrance d0ad1b014c
IMU Updates (#694)
* IMU Updates

Updated BMI270 and MPU6886 with the mount-matrix.
Updated devices i can test with the mount-matrix. papers3, stackchan (cores3), sticks3, tab5, waveshare-s3-lcd-13, waveshare-s3-lcd-128
Devices not changed and not tested because i don't own them are:

MPU6886 - core2, stickc-plus2.
BMI270 - cardputer-adv

* Update device.properties

* No USB here! CH343P
2026-10-14 23:26:43 +02:00

16 lines
595 B
YAML

description: Bosch BMI270 6-axis IMU
include: [ "i2c-device.yaml" ]
compatible: "bosch,bmi270"
properties:
mount-matrix:
type: values
default: [1, 0, 0, 0, 1, 0, 0, 0, 1]
description: >
Row-major 3x3 rotation matrix that maps the sensor frame onto the device frame, following the
Linux IIO "mount-matrix" convention (x' = m[0]*x + m[1]*y + m[2]*z, and so on). It is applied
to the accelerometer and gyroscope readings so consumers always see the device frame,
regardless of how the IMU is physically oriented on the PCB. Defaults to the identity matrix.