From 7cdbc6169fec7a0b4a9d07c207c41a9d4b4e3ad0 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Wed, 1 Mar 2023 20:58:42 +0000 Subject: [PATCH] AP_HAL_ChibiOS: bdshot version of QioTekZealotH743 --- .../QioTekZealotH743-bdshot/defaults.parm | 20 +++++++++++++++++++ .../QioTekZealotH743-bdshot/hwdef-bl.dat | 1 + .../hwdef/QioTekZealotH743-bdshot/hwdef.dat | 16 +++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743-bdshot/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743-bdshot/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743-bdshot/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743-bdshot/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743-bdshot/defaults.parm new file mode 100644 index 0000000000..65b893da7c --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743-bdshot/defaults.parm @@ -0,0 +1,20 @@ +# setup the heater temperature to 45 degree +BRD_HEAT_TARG 45 + +# setup serial2 port defaults for ESP8266 +SERIAL2_BAUD 921600 + +# setup the parameter for the ADC power module +BATT_MONITOR 4 +BATT_VOLT_PIN 16 +BATT_CURR_PIN 17 +BATT_VOLT_MULT 20.000 +BATT_AMP_PERVLT 17.000 +BATT2_VOLT_PIN 10 +BATT2_CURR_PIN 11 +BATT2_VOLT_MULT 20.000 +BATT2_AMP_PERVLT 17.000 + +# setup the parameter for the two Relays GPIO others for reserve +RELAY_PIN 1 +RELAY_PIN2 2 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743-bdshot/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743-bdshot/hwdef-bl.dat new file mode 100644 index 0000000000..43ee42fdee --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743-bdshot/hwdef-bl.dat @@ -0,0 +1 @@ +include ../QioTekZealotH743/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743-bdshot/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743-bdshot/hwdef.dat new file mode 100644 index 0000000000..902e1bf5f7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotH743-bdshot/hwdef.dat @@ -0,0 +1,16 @@ +# hw definition file for processing by chibios_hwdef.py for bdshot version of Qiotek ZealotH743 + +include ../QioTekZealotH743/hwdef.dat + +undef PD12 PD13 PD14 PD15 PC6 PC7 + +# PWM AUX channels (1-8 have level shifters so cannot be used for bdshot) +PD12 TIM4_CH1 TIM4 PWM(9) GPIO(58) BIDIR +PD13 TIM4_CH2 TIM4 PWM(10) GPIO(59) +PD14 TIM4_CH3 TIM4 PWM(11) GPIO(60) BIDIR +PD15 TIM4_CH4 TIM4 PWM(12) GPIO(61) +PC6 TIM3_CH1 TIM3 PWM(13) GPIO(62) BIDIR +PC7 TIM3_CH2 TIM3 PWM(14) GPIO(63) + +NODMA I2C* +define STM32_I2C_USE_DMA FALSE