Skip to content

Commit 9df3f3f

Browse files
Fix ADCs, Gyro orientation and selection on chonker (#909)
* change CHONKER to H735 * Corrected ADCs and gyro orientation * Corrected ADCs and gyro orientation * cleanup - ADCX_DMA_OPT must be configured --------- Co-authored-by: Volker Göschl-Covrljan <[email protected]>
1 parent 8225241 commit 9df3f3f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

configs/CHONKERH735/config.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Details: https://github.com/crteensy/yolo-chonker/tree/as-built-20230303
2525

2626
#pragma once
2727

28-
#define FC_TARGET_MCU STM32H725
28+
#define FC_TARGET_MCU STM32H735
2929

3030
#define BOARD_NAME CHONKERH735
3131
#define MANUFACTURER_ID FOSS
@@ -43,7 +43,10 @@ Details: https://github.com/crteensy/yolo-chonker/tree/as-built-20230303
4343

4444
// ADC Resources
4545

46-
// #define ADC_VBAT_PIN
46+
#define ADC1_DMA_OPT 9
47+
#define ADC3_DMA_OPT 11
48+
#define ADC_INSTANCE ADC1
49+
#define ADC_VBAT_PIN PC5
4750
#define ADC_CURR_PIN PA5
4851

4952
// #define BEEPER_PIN
@@ -101,8 +104,6 @@ Details: https://github.com/crteensy/yolo-chonker/tree/as-built-20230303
101104
TIMER_PIN_MAP( 2, MOTOR3_PIN, 2, 2 ) \
102105
TIMER_PIN_MAP( 3, MOTOR4_PIN, 2, 3 )
103106

104-
#define ADC_INSTANCE ADC3
105-
#define ADC3_DMA_OPT 10
106107

107108
#define BARO_I2C_INSTANCE I2CDEV_2
108109
#define MAG_I2C_INSTANCE I2CDEV_2
@@ -116,7 +117,8 @@ Details: https://github.com/crteensy/yolo-chonker/tree/as-built-20230303
116117

117118
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
118119

119-
#define GYRO_1_ALIGN CW0_DEG_FLIP
120-
#define GYRO_2_ALIGN CW0_DEG_FLIP
120+
#define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_2
121+
#define GYRO_1_ALIGN CW270_DEG
122+
#define GYRO_2_ALIGN CW270_DEG
121123

122124
#define ENSURE_MPU_DATA_READY_IS_LOW

0 commit comments

Comments
 (0)