File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed
libraries/AP_HAL_ChibiOS/hwdef Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1+ ACT_TELEM_RATE 10
2+ ACT_NUM_CHANS 4
3+ ACT_CURR_PIN1 9
4+ ACT_AMP_OFFSET 0
5+ ACT_AMP_PERVLT 10
6+ ACT_CURR_MAX 2.5
Original file line number Diff line number Diff line change @@ -8,14 +8,15 @@ 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 STM32_ADC_USE_ADC1 TRUE
16+ PA4 ACT1_CURRENT_SENS ADC1 SCALE(1) # Current Sampling on PWM(1)
17+ PA5 ACT2_CURRENT_SENS ADC1 SCALE(1) # Current Sampling on PWM(2)
18+ PA6 ACT3_CURRENT_SENS ADC1 SCALE(1) # Current Sampling on PWM(3)
19+ PA7 ACT4_CURRENT_SENS ADC1 SCALE(1) # Current Sampling on PWM(4)
1920
2021define AP_PERIPH_RC_OUT_ENABLED 1
2122
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