-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial ICM426xx support #891
initial ICM426xx support #891
Conversation
FOXEERF722V4 ICM_42688P & ICM_42605 ; CAUTION / really no idea if this is anything good more ICM_42688P & ICM_42605 ; CAUTION / really no idea if this is anything good FOXEERF745V3_AIO
…_nerdCopter_port' into 20230518_ICM426xx_Peck07_fixed_nerdCopter_port
… and obsolescence
#define GYRO_ICM42688P_ALIGN GYRO_1_ALIGN | ||
#define ICM42688P_CS_PIN GYRO_1_CS_PIN | ||
#define ICM42688P_SPI_INSTANCE GYRO_1_SPI_INSTANCE | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is not defined as a dual gyro quad, and there is no GYRO_2
, you cannot use defines for GYRO_1
#define GYRO_ICM42688P_ALIGN CW270_DEG
#define ACC_ICM42688P_ALIGN CW270_DEG
#define ICM42688P_CS_PIN PA4
#define ICM42688P_EXTI_PIN PC4
#define ICM42688P_SPI_INSTANCE SPI1
#define USE_MPU_DATA_READY_SIGNAL
#define ACC_MPU6000_ALIGN ACC_ICM42688P_ALIGN
#define GYRO_MPU6000_ALIGN GYRO_ICM42688P_ALIGN
#define MPU6000_CS_PIN ICM42688P_CS_PIN
#define MPU6000_SPI_INSTANCE ICM42688P_SPI_INSTANCE
#define MPU_INT_EXTI ICM42688P_EXTI_PIN
Don't need MPU6500 defines, and probably don't need the MPU6000 defines since pretty certain this is an ICM42xxxp specific target and FC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BF shows mpu6000, but not 6500
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, i'm wrong, i keep mixing up 722_2022B with 405_2022B 🍌
BF:
#define BOARD_NAME MAMBAF405_2022B
#define MANUFACTURER_ID DIAT
#define USE_ACC
#define USE_ACC_SPI_MPU6000
#define USE_GYRO
#define USE_GYRO_SPI_MPU6000
#define USE_ACC_SPI_MPU6500
#define USE_GYRO_SPI_MPU6500
#define USE_GYRO_SPI_ICM42688P
#define USE_ACC_SPI_ICM42688P
#define UART4_RX_PIN PA1 | ||
#define UART5_RX_PIN PD2 | ||
#define UART6_RX_PIN PC7 | ||
#define INVERTER_PIN_UART1 PC0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so #define RSSI_ADC_PIN PC12
???
ready for review/merge |
please see #890 (comment) i.e. |
WIPneeds testingmay need fixesmay need cleanup (especially GYRO_HARDWARE_LPF_* options)This code is ported from Betaflight. Thanks to Betaflight team and GPL licensed opensource.
https://github.com/betaflight/betaflight/blob/master/LICENSE
Massive thanks to @Peck07 for investigting and fixing some pre-existing failed works.
Massive thanks to @BeauBrewski for target definitions.
closes #869
Co-authored-by: tbolin [email protected]
Co-authored-by: KarateBrot [email protected]
Co-authored-by: Steve Evans [email protected]
Co-authored-by: Dominic Clifton [email protected]
Co-authored-by: Peck07 [email protected]
Co-authored-by: nerdCopter [email protected]