Включен low pass фильтр датчиков, уменьшен срез биквада

This commit is contained in:
2026-03-12 13:54:48 +03:00
parent c1fab9fcb3
commit 469ec64d45
3 changed files with 20 additions and 8 deletions

View File

@@ -1,3 +1,5 @@
#pragma once
#ifndef IMU_H
#define IMU_H
@@ -10,6 +12,16 @@
#define REG_ACCEL_CONFIG 0x14
#define IMU_DT 0.002f // 2 ms
#define GYRO_FS_SEL_2000 3 << 1
#define GYRO_DLPFCFG_73 3 << 3
#define GYRO_FCHOICE_ON 1
#define GYRO_FCHOICE_OFF 0
#define ACCEL_FS_SEL_8 2 << 1
#define ACCEL_DLPFCFG_69 3 << 3
#define ACCEL_FCHOICE_ON 1
#define ACCEL_FCHOICE_OFF 0
typedef struct
{
int16_t ax, ay, az; // lsb