mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Implementation of the ICM-40609D gyroscope driver (#14367)
* add icm40609d Co-authored-by: Mark Haslinghuis <mark@numloq.nl> refactor include * add support for setting filters from config * set optimal settings for AAF * add settings DEC2 M2 filter for Gyro * set 3Rd hardware UI filters for Gyro&Accel * update comments filter order * set readFN for read SPI data via DMA, add INT1 to pulse mode, push-pull, active high * fix PR issue * revert INT1 POLARITY to ACTIVE HIGH * refactor icm40609GetAafParams * Update src/main/drivers/accgyro/accgyro_spi_icm40609.c Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update src/main/drivers/accgyro/accgyro_spi_icm40609.c * update link to datasheet * fix typo Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Mark Haslinghuis <mark@numloq.nl> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
dd0a37b41c
commit
f217ba6d19
12 changed files with 832 additions and 1 deletions
|
@ -48,6 +48,7 @@
|
|||
#include "drivers/accgyro/accgyro_spi_icm20689.h"
|
||||
#include "drivers/accgyro/accgyro_spi_icm426xx.h"
|
||||
#include "drivers/accgyro/accgyro_spi_icm456xx.h"
|
||||
#include "drivers/accgyro/accgyro_spi_icm40609.h"
|
||||
|
||||
#include "drivers/accgyro/accgyro_spi_lsm6dso.h"
|
||||
#include "drivers/accgyro/accgyro_spi_lsm6dsv16x.h"
|
||||
|
@ -297,6 +298,15 @@ retry:
|
|||
FALLTHROUGH;
|
||||
#endif
|
||||
|
||||
#ifdef USE_ACCGYRO_ICM40609D
|
||||
case ACC_ICM40609D:
|
||||
if (icm40609SpiAccDetect(dev)) {
|
||||
accHardware = ACC_ICM40609D;
|
||||
break;
|
||||
}
|
||||
FALLTHROUGH;
|
||||
#endif
|
||||
|
||||
#ifdef USE_VIRTUAL_ACC
|
||||
case ACC_VIRTUAL:
|
||||
if (virtualAccDetect(dev)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue