feat(imu): MPU6000 sensor fusion — complementary filter (bd-2dv) #2
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sl-controls/bd-2dv-imu-fusion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
src/mpu6000.cimplementing a complementary filter (α=0.98) over the existing icm42688 SPI driverbalance.c(was ±250°/s/±2g; hardware is configured ±2000°/s/±16g)balance_update()into the IMU driver layer — balance controller now consumesIMUData.pitchdirectlymain.cto usempu6000_init()/mpu6000_read()andIMUDataFilter design
Dt is computed from
HAL_GetTick()on each read — robust to loop jitter.Testing notes
COMP_ALPHAtunable inmpu6000.c(increase toward 0.99 for noisier environments)Closes bd-2dv
6dfb5640dbto398cbb9a55