hwdef: added DShot peripheral for MatekL431
This commit is contained in:
parent
5b5319f1b3
commit
8c3d2205cb
16
libraries/AP_HAL_ChibiOS/hwdef/MatekL431-DShot/defaults.parm
Normal file
16
libraries/AP_HAL_ChibiOS/hwdef/MatekL431-DShot/defaults.parm
Normal file
@ -0,0 +1,16 @@
|
||||
# up to 5 motors
|
||||
|
||||
OUT1_FUNCTION 33
|
||||
OUT2_FUNCTION 34
|
||||
OUT3_FUNCTION 35
|
||||
OUT4_FUNCTION 36
|
||||
OUT5_FUNCTION 37
|
||||
|
||||
# DShot 600
|
||||
ESC_PWM_TYPE 7
|
||||
OUT_BLH_OTYPE 6
|
||||
|
||||
OUT_BLH_MASK 31
|
||||
|
||||
# DShot telem on RX1
|
||||
ESC_TELEM_PORT 0
|
@ -0,0 +1,3 @@
|
||||
include ../MatekL431/hwdef-bl.inc
|
||||
|
||||
define CAN_APP_NODE_NAME "org.ardupilot.MatekL431-DShot"
|
19
libraries/AP_HAL_ChibiOS/hwdef/MatekL431-DShot/hwdef.dat
Normal file
19
libraries/AP_HAL_ChibiOS/hwdef/MatekL431-DShot/hwdef.dat
Normal file
@ -0,0 +1,19 @@
|
||||
include ../MatekL431/hwdef.inc
|
||||
|
||||
define CAN_APP_NODE_NAME "org.ardupilot.MatekL431-DShot"
|
||||
|
||||
define HAL_USE_ADC FALSE
|
||||
|
||||
# --------------------- PWM -----------------------
|
||||
PA8 TIM1_CH1 TIM1 PWM(1) GPIO(50)
|
||||
PA9 TIM1_CH2 TIM1 PWM(2) GPIO(51)
|
||||
PA10 TIM1_CH3 TIM1 PWM(3) GPIO(52)
|
||||
PA11 TIM1_CH4 TIM1 PWM(4) GPIO(53)
|
||||
PA15 TIM2_CH1 TIM2 PWM(5) GPIO(54)
|
||||
|
||||
define HAL_PERIPH_ENABLE_RC_OUT
|
||||
define HAL_PERIPH_ENABLE_NOTIFY
|
||||
|
||||
# enable ESC control
|
||||
define HAL_SUPPORT_RCOUT_SERIAL 1
|
||||
define HAL_WITH_ESC_TELEM 1
|
Loading…
Reference in New Issue
Block a user