File tree Expand file tree Collapse file tree
libraries/AP_HAL_ChibiOS/hwdef Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ACT_TELEM_RATE 10
2+ ACT1_CURR_PIN 9
3+ ACT1_AMP_OFFSET 0
4+ ACT1_AMP_PERVLT 10
5+ ACT1_CURR_MAX 2.5
6+ ACT2_CURR_PIN 10
7+ ACT2_AMP_OFFSET 0
8+ ACT2_AMP_PERVLT 10
9+ ACT2_CURR_MAX 2.5
10+ ACT3_CURR_PIN 11
11+ ACT3_AMP_OFFSET 0
12+ ACT3_AMP_PERVLT 10
13+ ACT3_CURR_MAX 2.5
14+ ACT4_CURR_PIN 12
15+ ACT4_AMP_OFFSET 0
16+ ACT4_AMP_PERVLT 10
17+ ACT4_CURR_MAX 2.5
Original file line number Diff line number Diff line change @@ -8,14 +8,16 @@ PB7 USART1_RX USART1 NODMA
88STDOUT_SERIAL SD1
99STDOUT_BAUDRATE 57600
1010
11- define HAL_USE_ADC FALSE
11+ define HAL_USE_ADC TRUE
1212
13- #Servo VCC Current Sampling, for future development
14- # define STM32_ADC_USE_ADC1 TRUE
15- # PA4 SPARE1_ADC1 ADC1 SCALE(1) # Current Sampling on PWM(1)
16- # PA5 SPARE2_ADC1 ADC1 SCALE(1) # Current Sampling on PWM(2)
17- # PA6 SPARE3_ADC1 ADC1 SCALE(1) # Current Sampling on PWM(3)
18- # PA7 SPARE4_ADC1 ADC1 SCALE(1) # Current Sampling on PWM(4)
13+ #Servo VCC Current Sampling
14+ define AP_PERIPH_ACTUATOR_TELEM_ENABLED 1
15+ define HAL_ACTUATOR_TELEM_CHANNELS 4
16+ define STM32_ADC_USE_ADC1 TRUE
17+ PA4 ACT1_CURRENT_SENS ADC1 SCALE(1) # Current Sampling on PWM(1)
18+ PA5 ACT2_CURRENT_SENS ADC1 SCALE(1) # Current Sampling on PWM(2)
19+ PA6 ACT3_CURRENT_SENS ADC1 SCALE(1) # Current Sampling on PWM(3)
20+ PA7 ACT4_CURRENT_SENS ADC1 SCALE(1) # Current Sampling on PWM(4)
1921
2022define AP_PERIPH_RC_OUT_ENABLED 1
2123
Original file line number Diff line number Diff line change 370370#ifndef AP_PERIPH_BUZZER_WITHOUT_NOTIFY_ENABLED
371371#define AP_PERIPH_BUZZER_WITHOUT_NOTIFY_ENABLED 0
372372#endif
373+ #ifndef AP_PERIPH_ACTUATOR_TELEM_ENABLED
374+ #define AP_PERIPH_ACTUATOR_TELEM_ENABLED 0
375+ #endif
373376
374377/*
375378 * turning on of ArduPilot features based on which AP_Periph features
You can’t perform that action at this time.
0 commit comments