From b1f8eec005796c94dfc179cf262a9c168e69cbb2 Mon Sep 17 00:00:00 2001 From: Vitaliy Nimych Date: Wed, 4 Dec 2024 23:51:20 +0200 Subject: [PATCH 1/9] add target Stellar F4 V2 --- configs/STELLARF4V2/config.h | 127 +++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 configs/STELLARF4V2/config.h diff --git a/configs/STELLARF4V2/config.h b/configs/STELLARF4V2/config.h new file mode 100644 index 00000000..38717f06 --- /dev/null +++ b/configs/STELLARF4V2/config.h @@ -0,0 +1,127 @@ +/* + * This file is part of Betaflight. + * + * Betaflight is free software. You can redistribute this software + * and/or modify this software under the terms of the GNU General + * Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later + * version. + * + * Betaflight is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this software. + * + * If not, see . + */ + +#pragma once + +#define FC_TARGET_MCU STM32F405 +#define BOARD_NAME STELLARF4 +#define MANUFACTURER_ID STBE + +#define TARGET_BOARD_IDENTIFIER "STF4" +#define USBD_PRODUCT_STRING "StingBee Stellar F4 V2" + +#define USE_ACC +#define USE_ACC_SPI_ICM42605 +#define USE_ACC_SPI_ICM42688P +#define USE_GYRO +#define USE_GYRO_SPI_ICM42605 +#define USE_GYRO_SPI_ICM42688P +#define USE_GYRO_CLKIN +#define USE_BARO +#define USE_BARO_BMP280 +#define USE_BARO_DPS310 +#define USE_MAX7456 +#define USE_SDCARD +#define USE_FLASH +#define USE_FLASH_M25P16 +#define USE_FLASH_W25N01G +#define USE_FLASH_W25M02G + +#define BEEPER_PIN PB2 +#define MOTOR1_PIN PC9 // TIM8 CH4 (AF3) DMA2 Stream 7 Channel 7 +#define MOTOR2_PIN PC8 // TIM8 CH3 (AF3) DMA2 Stream 4 Channel 7 +#define MOTOR3_PIN PC7 // TIM8 CH2 (AF3) DMA2 Stream 3 Channel 7 +#define MOTOR4_PIN PC6 // TIM8 CH1 (AF3) DMA2 Stream 2 Channel 7 +#define SERVO1_PIN PB6 // TIM4 CH1 (AF2) +#define SERVO2_PIN PB7 // TIM4 CH2 (AF2) +#define SERVO3_PIN PB8 // TIM4 CH3 (AF2) +#define SERVO4_PIN PB9 // TIM4 CH4 (AF2) +#define SERVO5_PIN PA9 // TIM1 CH2 (AF1) +#define SERVO6_PIN PA10 // TIM1 CH3 (AF1) or UART1_RX_PIN +#define SERVO7_PIN PA8 // TIM1 CH1 (AF1) or UART1_TX_PIN +#define RX_PPM_PIN PA3 // TIM5 CH4 (AF2) DMA1 Stream 1 Channel 6 +#define UART2_TX_PIN PA2 +#define UART3_TX_PIN PC10 +#define UART4_TX_PIN PA0 +#define UART5_TX_PIN PC12 +#define UART2_RX_PIN PA3 +#define UART3_RX_PIN PC11 +#define UART4_RX_PIN PA1 +#define UART5_RX_PIN PD2 +#define I2C2_SCL_PIN PB10 +#define I2C2_SDA_PIN PB11 +#define LED0_PIN PA15 +#define SPI1_SCK_PIN PA5 +#define SPI2_SCK_PIN PB13 +#define SPI3_SCK_PIN PB3 +#define SPI1_SDI_PIN PA6 +#define SPI2_SDI_PIN PC2 +#define SPI3_SDI_PIN PB4 +#define SPI1_SDO_PIN PA7 +#define SPI2_SDO_PIN PB15 +#define SPI3_SDO_PIN PB5 +#define ADC_VBAT_PIN PC0 +#define ADC_CURR_PIN PC1 +#define FLASH_CS_PIN PC13 +#define PINIO1_PIN PC14 +#define MAX7456_SPI_CS_PIN PB12 +#define GYRO_1_EXTI_PIN PA4 +#define GYRO_1_CS_PIN PC5 +#define GYRO_1_CLKIN_PIN PB0 // // TIM3 CH3 (AF2) no DMA + +#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, PC9, 2, 0 ) \ + TIMER_PIN_MAP( 1, PC8, 2, 1 ) \ + TIMER_PIN_MAP( 2, PC7, 2, 1 ) \ + TIMER_PIN_MAP( 3, PC6, 2, 1 ) \ + TIMER_PIN_MAP( 4, PB6, 1, -1 ) \ + TIMER_PIN_MAP( 5, PB7, 1, -1 ) \ + TIMER_PIN_MAP( 6, PB8, 1, -1 ) \ + TIMER_PIN_MAP( 7, PB9, 1, -1 ) \ + TIMER_PIN_MAP( 8, PA9, 1, -1 ) \ + TIMER_PIN_MAP( 9, PA10, 1, -1 ) \ + TIMER_PIN_MAP( 10, PA8, 1, -1 ) \ + TIMER_PIN_MAP( 11, PA3 , 2, 0 ) \ + TIMER_PIN_MAP( 12, PB0, 2, -1 ) + +#define ADC1_DMA_OPT 0 // DMA2 Stream 0 Channel 0 + +#define SERIALRX_UART SERIAL_PORT_USART2 +#define SERIALRX_PROVIDER SERIALRX_CRSF + +#define MAG_I2C_INSTANCE (I2CDEV_2) +#define BARO_I2C_INSTANCE (I2CDEV_2) +#define DASHBOARD_I2C_INSTANCE (I2CDEV_2) + +#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON +#define MOTOR_PWM_PROTOCOL DSHOT300 +#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC +#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC +#define DEFAULT_VOLTAGE_METER_SCALE 110 +#define DEFAULT_CURRENT_METER_SCALE 100 +#define BEEPER_INVERTED +#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH +#define FLASH_SPI_INSTANCE SPI3 +#define MAX7456_SPI_INSTANCE SPI2 + +#define PINIO1_BOX 40 +#define GYRO_1_SPI_INSTANCE SPI1 +#define GYRO_1_ALIGN CW180_DEG +#define GYRO_1_ALIGN_PITCH 1800 From 73d6978ed273e3254bd61b34fb19337a37828780 Mon Sep 17 00:00:00 2001 From: Vitaliy Nimych Date: Thu, 5 Dec 2024 01:21:34 +0200 Subject: [PATCH 2/9] fix issue, fix typo --- configs/STELLARF4V2/config.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configs/STELLARF4V2/config.h b/configs/STELLARF4V2/config.h index 38717f06..3117734e 100644 --- a/configs/STELLARF4V2/config.h +++ b/configs/STELLARF4V2/config.h @@ -22,7 +22,7 @@ #pragma once #define FC_TARGET_MCU STM32F405 -#define BOARD_NAME STELLARF4 +#define BOARD_NAME STELLARF4V2 #define MANUFACTURER_ID STBE #define TARGET_BOARD_IDENTIFIER "STF4" @@ -39,10 +39,8 @@ #define USE_BARO_BMP280 #define USE_BARO_DPS310 #define USE_MAX7456 -#define USE_SDCARD #define USE_FLASH #define USE_FLASH_M25P16 -#define USE_FLASH_W25N01G #define USE_FLASH_W25M02G #define BEEPER_PIN PB2 From e3b39def08d5335198734f8649c120e1714c2636 Mon Sep 17 00:00:00 2001 From: cvetaevvitaliy Date: Fri, 6 Dec 2024 16:36:00 +0200 Subject: [PATCH 3/9] Update configs/STELLARF4V2/config.h Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com> --- configs/STELLARF4V2/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/STELLARF4V2/config.h b/configs/STELLARF4V2/config.h index 3117734e..15412673 100644 --- a/configs/STELLARF4V2/config.h +++ b/configs/STELLARF4V2/config.h @@ -108,7 +108,7 @@ #define BARO_I2C_INSTANCE (I2CDEV_2) #define DASHBOARD_I2C_INSTANCE (I2CDEV_2) -#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON +#define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF #define MOTOR_PWM_PROTOCOL DSHOT300 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC From 27611c03a939640c56ad7f7a00538c93f329b5a0 Mon Sep 17 00:00:00 2001 From: cvetaevvitaliy Date: Fri, 6 Dec 2024 16:37:11 +0200 Subject: [PATCH 4/9] Update configs/STELLARF4V2/config.h Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com> --- configs/STELLARF4V2/config.h | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/STELLARF4V2/config.h b/configs/STELLARF4V2/config.h index 15412673..c189fb6e 100644 --- a/configs/STELLARF4V2/config.h +++ b/configs/STELLARF4V2/config.h @@ -106,7 +106,6 @@ #define MAG_I2C_INSTANCE (I2CDEV_2) #define BARO_I2C_INSTANCE (I2CDEV_2) -#define DASHBOARD_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF #define MOTOR_PWM_PROTOCOL DSHOT300 From 55fc4d05a676f34afbe27b5fb233a2bef9174ec8 Mon Sep 17 00:00:00 2001 From: cvetaevvitaliy Date: Fri, 6 Dec 2024 16:37:25 +0200 Subject: [PATCH 5/9] Update configs/STELLARF4V2/config.h Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com> --- configs/STELLARF4V2/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/STELLARF4V2/config.h b/configs/STELLARF4V2/config.h index c189fb6e..333aa1b2 100644 --- a/configs/STELLARF4V2/config.h +++ b/configs/STELLARF4V2/config.h @@ -104,8 +104,8 @@ #define SERIALRX_UART SERIAL_PORT_USART2 #define SERIALRX_PROVIDER SERIALRX_CRSF -#define MAG_I2C_INSTANCE (I2CDEV_2) -#define BARO_I2C_INSTANCE (I2CDEV_2) +#define MAG_I2C_INSTANCE I2CDEV_2 +#define BARO_I2C_INSTANCE I2CDEV_2 #define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF #define MOTOR_PWM_PROTOCOL DSHOT300 From c228ac94286713b988ed66db223b7c81367d7d8c Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 6 Dec 2024 15:04:28 +0000 Subject: [PATCH 6/9] update ADC DMA --- configs/STELLARF4V2/config.h | 249 ++++++++++++++++++----------------- 1 file changed, 125 insertions(+), 124 deletions(-) diff --git a/configs/STELLARF4V2/config.h b/configs/STELLARF4V2/config.h index 333aa1b2..8ebed532 100644 --- a/configs/STELLARF4V2/config.h +++ b/configs/STELLARF4V2/config.h @@ -1,124 +1,125 @@ -/* - * This file is part of Betaflight. - * - * Betaflight is free software. You can redistribute this software - * and/or modify this software under the terms of the GNU General - * Public License as published by the Free Software Foundation, - * either version 3 of the License, or (at your option) any later - * version. - * - * Betaflight is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this software. - * - * If not, see . - */ - -#pragma once - -#define FC_TARGET_MCU STM32F405 -#define BOARD_NAME STELLARF4V2 -#define MANUFACTURER_ID STBE - -#define TARGET_BOARD_IDENTIFIER "STF4" -#define USBD_PRODUCT_STRING "StingBee Stellar F4 V2" - -#define USE_ACC -#define USE_ACC_SPI_ICM42605 -#define USE_ACC_SPI_ICM42688P -#define USE_GYRO -#define USE_GYRO_SPI_ICM42605 -#define USE_GYRO_SPI_ICM42688P -#define USE_GYRO_CLKIN -#define USE_BARO -#define USE_BARO_BMP280 -#define USE_BARO_DPS310 -#define USE_MAX7456 -#define USE_FLASH -#define USE_FLASH_M25P16 -#define USE_FLASH_W25M02G - -#define BEEPER_PIN PB2 -#define MOTOR1_PIN PC9 // TIM8 CH4 (AF3) DMA2 Stream 7 Channel 7 -#define MOTOR2_PIN PC8 // TIM8 CH3 (AF3) DMA2 Stream 4 Channel 7 -#define MOTOR3_PIN PC7 // TIM8 CH2 (AF3) DMA2 Stream 3 Channel 7 -#define MOTOR4_PIN PC6 // TIM8 CH1 (AF3) DMA2 Stream 2 Channel 7 -#define SERVO1_PIN PB6 // TIM4 CH1 (AF2) -#define SERVO2_PIN PB7 // TIM4 CH2 (AF2) -#define SERVO3_PIN PB8 // TIM4 CH3 (AF2) -#define SERVO4_PIN PB9 // TIM4 CH4 (AF2) -#define SERVO5_PIN PA9 // TIM1 CH2 (AF1) -#define SERVO6_PIN PA10 // TIM1 CH3 (AF1) or UART1_RX_PIN -#define SERVO7_PIN PA8 // TIM1 CH1 (AF1) or UART1_TX_PIN -#define RX_PPM_PIN PA3 // TIM5 CH4 (AF2) DMA1 Stream 1 Channel 6 -#define UART2_TX_PIN PA2 -#define UART3_TX_PIN PC10 -#define UART4_TX_PIN PA0 -#define UART5_TX_PIN PC12 -#define UART2_RX_PIN PA3 -#define UART3_RX_PIN PC11 -#define UART4_RX_PIN PA1 -#define UART5_RX_PIN PD2 -#define I2C2_SCL_PIN PB10 -#define I2C2_SDA_PIN PB11 -#define LED0_PIN PA15 -#define SPI1_SCK_PIN PA5 -#define SPI2_SCK_PIN PB13 -#define SPI3_SCK_PIN PB3 -#define SPI1_SDI_PIN PA6 -#define SPI2_SDI_PIN PC2 -#define SPI3_SDI_PIN PB4 -#define SPI1_SDO_PIN PA7 -#define SPI2_SDO_PIN PB15 -#define SPI3_SDO_PIN PB5 -#define ADC_VBAT_PIN PC0 -#define ADC_CURR_PIN PC1 -#define FLASH_CS_PIN PC13 -#define PINIO1_PIN PC14 -#define MAX7456_SPI_CS_PIN PB12 -#define GYRO_1_EXTI_PIN PA4 -#define GYRO_1_CS_PIN PC5 -#define GYRO_1_CLKIN_PIN PB0 // // TIM3 CH3 (AF2) no DMA - -#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, PC9, 2, 0 ) \ - TIMER_PIN_MAP( 1, PC8, 2, 1 ) \ - TIMER_PIN_MAP( 2, PC7, 2, 1 ) \ - TIMER_PIN_MAP( 3, PC6, 2, 1 ) \ - TIMER_PIN_MAP( 4, PB6, 1, -1 ) \ - TIMER_PIN_MAP( 5, PB7, 1, -1 ) \ - TIMER_PIN_MAP( 6, PB8, 1, -1 ) \ - TIMER_PIN_MAP( 7, PB9, 1, -1 ) \ - TIMER_PIN_MAP( 8, PA9, 1, -1 ) \ - TIMER_PIN_MAP( 9, PA10, 1, -1 ) \ - TIMER_PIN_MAP( 10, PA8, 1, -1 ) \ - TIMER_PIN_MAP( 11, PA3 , 2, 0 ) \ - TIMER_PIN_MAP( 12, PB0, 2, -1 ) - -#define ADC1_DMA_OPT 0 // DMA2 Stream 0 Channel 0 - -#define SERIALRX_UART SERIAL_PORT_USART2 -#define SERIALRX_PROVIDER SERIALRX_CRSF - -#define MAG_I2C_INSTANCE I2CDEV_2 -#define BARO_I2C_INSTANCE I2CDEV_2 - -#define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF -#define MOTOR_PWM_PROTOCOL DSHOT300 -#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC -#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC -#define DEFAULT_VOLTAGE_METER_SCALE 110 -#define DEFAULT_CURRENT_METER_SCALE 100 -#define BEEPER_INVERTED -#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH -#define FLASH_SPI_INSTANCE SPI3 -#define MAX7456_SPI_INSTANCE SPI2 - -#define PINIO1_BOX 40 -#define GYRO_1_SPI_INSTANCE SPI1 -#define GYRO_1_ALIGN CW180_DEG -#define GYRO_1_ALIGN_PITCH 1800 +/* + * This file is part of Betaflight. + * + * Betaflight is free software. You can redistribute this software + * and/or modify this software under the terms of the GNU General + * Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later + * version. + * + * Betaflight is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this software. + * + * If not, see . + */ + +#pragma once + +#define FC_TARGET_MCU STM32F405 +#define BOARD_NAME STELLARF4V2 +#define MANUFACTURER_ID STBE + +#define TARGET_BOARD_IDENTIFIER "STF4" +#define USBD_PRODUCT_STRING "StingBee Stellar F4 V2" + +#define USE_ACC +#define USE_ACC_SPI_ICM42605 +#define USE_ACC_SPI_ICM42688P +#define USE_GYRO +#define USE_GYRO_SPI_ICM42605 +#define USE_GYRO_SPI_ICM42688P +#define USE_GYRO_CLKIN +#define USE_BARO +#define USE_BARO_BMP280 +#define USE_BARO_DPS310 +#define USE_MAX7456 +#define USE_FLASH +#define USE_FLASH_M25P16 +#define USE_FLASH_W25M02G + +#define BEEPER_PIN PB2 +#define MOTOR1_PIN PC9 // TIM8 CH4 (AF3) DMA2 Stream 7 Channel 7 +#define MOTOR2_PIN PC8 // TIM8 CH3 (AF3) DMA2 Stream 4 Channel 7 +#define MOTOR3_PIN PC7 // TIM8 CH2 (AF3) DMA2 Stream 3 Channel 7 +#define MOTOR4_PIN PC6 // TIM8 CH1 (AF3) DMA2 Stream 2 Channel 7 +#define SERVO1_PIN PB6 // TIM4 CH1 (AF2) +#define SERVO2_PIN PB7 // TIM4 CH2 (AF2) +#define SERVO3_PIN PB8 // TIM4 CH3 (AF2) +#define SERVO4_PIN PB9 // TIM4 CH4 (AF2) +#define SERVO5_PIN PA9 // TIM1 CH2 (AF1) +#define SERVO6_PIN PA10 // TIM1 CH3 (AF1) or UART1_RX_PIN +#define SERVO7_PIN PA8 // TIM1 CH1 (AF1) or UART1_TX_PIN +#define RX_PPM_PIN PA3 // TIM5 CH4 (AF2) DMA1 Stream 1 Channel 6 +#define UART2_TX_PIN PA2 +#define UART3_TX_PIN PC10 +#define UART4_TX_PIN PA0 +#define UART5_TX_PIN PC12 +#define UART2_RX_PIN PA3 +#define UART3_RX_PIN PC11 +#define UART4_RX_PIN PA1 +#define UART5_RX_PIN PD2 +#define I2C2_SCL_PIN PB10 +#define I2C2_SDA_PIN PB11 +#define LED0_PIN PA15 +#define SPI1_SCK_PIN PA5 +#define SPI2_SCK_PIN PB13 +#define SPI3_SCK_PIN PB3 +#define SPI1_SDI_PIN PA6 +#define SPI2_SDI_PIN PC2 +#define SPI3_SDI_PIN PB4 +#define SPI1_SDO_PIN PA7 +#define SPI2_SDO_PIN PB15 +#define SPI3_SDO_PIN PB5 +#define ADC_VBAT_PIN PC0 +#define ADC_CURR_PIN PC1 +#define FLASH_CS_PIN PC13 +#define PINIO1_PIN PC14 +#define MAX7456_SPI_CS_PIN PB12 +#define GYRO_1_EXTI_PIN PA4 +#define GYRO_1_CS_PIN PC5 +#define GYRO_1_CLKIN_PIN PB0 // // TIM3 CH3 (AF2) no DMA + +#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, PC9, 2, 0 ) \ + TIMER_PIN_MAP( 1, PC8, 2, 1 ) \ + TIMER_PIN_MAP( 2, PC7, 2, 1 ) \ + TIMER_PIN_MAP( 3, PC6, 2, 1 ) \ + TIMER_PIN_MAP( 4, PB6, 1, -1 ) \ + TIMER_PIN_MAP( 5, PB7, 1, -1 ) \ + TIMER_PIN_MAP( 6, PB8, 1, -1 ) \ + TIMER_PIN_MAP( 7, PB9, 1, -1 ) \ + TIMER_PIN_MAP( 8, PA9, 1, -1 ) \ + TIMER_PIN_MAP( 9, PA10, 1, -1 ) \ + TIMER_PIN_MAP( 10, PA8, 1, -1 ) \ + TIMER_PIN_MAP( 11, PA3 , 2, 0 ) \ + TIMER_PIN_MAP( 12, PB0, 2, -1 ) + +#define ADC_INSTANCE ADC3 +#define ADC3_DMA_OPT 1 // DMA2 Stream 1 Channel 2 + +#define SERIALRX_UART SERIAL_PORT_USART2 +#define SERIALRX_PROVIDER SERIALRX_CRSF + +#define MAG_I2C_INSTANCE I2CDEV_2 +#define BARO_I2C_INSTANCE I2CDEV_2 + +#define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF +#define MOTOR_PWM_PROTOCOL DSHOT300 +#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC +#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC +#define DEFAULT_VOLTAGE_METER_SCALE 110 +#define DEFAULT_CURRENT_METER_SCALE 100 +#define BEEPER_INVERTED +#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH +#define FLASH_SPI_INSTANCE SPI3 +#define MAX7456_SPI_INSTANCE SPI2 + +#define PINIO1_BOX 40 +#define GYRO_1_SPI_INSTANCE SPI1 +#define GYRO_1_ALIGN CW180_DEG +#define GYRO_1_ALIGN_PITCH 1800 From c1e98781f9e2e328138f60c2c44210da4c94c205 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 6 Dec 2024 15:31:24 +0000 Subject: [PATCH 7/9] remove DMA for PPM --- configs/STELLARF4V2/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/STELLARF4V2/config.h b/configs/STELLARF4V2/config.h index 8ebed532..c6b4a7c5 100644 --- a/configs/STELLARF4V2/config.h +++ b/configs/STELLARF4V2/config.h @@ -55,7 +55,7 @@ #define SERVO5_PIN PA9 // TIM1 CH2 (AF1) #define SERVO6_PIN PA10 // TIM1 CH3 (AF1) or UART1_RX_PIN #define SERVO7_PIN PA8 // TIM1 CH1 (AF1) or UART1_TX_PIN -#define RX_PPM_PIN PA3 // TIM5 CH4 (AF2) DMA1 Stream 1 Channel 6 +#define RX_PPM_PIN PA3 // TIM5 CH4 (AF2) #define UART2_TX_PIN PA2 #define UART3_TX_PIN PC10 #define UART4_TX_PIN PA0 @@ -96,7 +96,7 @@ TIMER_PIN_MAP( 8, PA9, 1, -1 ) \ TIMER_PIN_MAP( 9, PA10, 1, -1 ) \ TIMER_PIN_MAP( 10, PA8, 1, -1 ) \ - TIMER_PIN_MAP( 11, PA3 , 2, 0 ) \ + TIMER_PIN_MAP( 11, PA3 , 2, -1 ) \ TIMER_PIN_MAP( 12, PB0, 2, -1 ) #define ADC_INSTANCE ADC3 From aa153623fb478a8d19c6b4f4009048c9724dc173 Mon Sep 17 00:00:00 2001 From: cvetaevvitaliy Date: Fri, 6 Dec 2024 17:32:10 +0200 Subject: [PATCH 8/9] Update configs/STELLARF4V2/config.h Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com> --- configs/STELLARF4V2/config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/STELLARF4V2/config.h b/configs/STELLARF4V2/config.h index c6b4a7c5..876af578 100644 --- a/configs/STELLARF4V2/config.h +++ b/configs/STELLARF4V2/config.h @@ -52,9 +52,10 @@ #define SERVO2_PIN PB7 // TIM4 CH2 (AF2) #define SERVO3_PIN PB8 // TIM4 CH3 (AF2) #define SERVO4_PIN PB9 // TIM4 CH4 (AF2) -#define SERVO5_PIN PA9 // TIM1 CH2 (AF1) +#define SERVO5_PIN PA9 // TIM1 CH2 (AF1) or UART1_TX_PIN #define SERVO6_PIN PA10 // TIM1 CH3 (AF1) or UART1_RX_PIN -#define SERVO7_PIN PA8 // TIM1 CH1 (AF1) or UART1_TX_PIN +#define SERVO7_PIN PA8 // TIM1 CH1 (AF1) + #define RX_PPM_PIN PA3 // TIM5 CH4 (AF2) #define UART2_TX_PIN PA2 #define UART3_TX_PIN PC10 From 688199e32da08d6ee156c9643efe57ec84c9ae49 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Fri, 6 Dec 2024 22:49:53 +0100 Subject: [PATCH 9/9] Add box user name description --- configs/STELLARF4V2/config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/STELLARF4V2/config.h b/configs/STELLARF4V2/config.h index 876af578..547ae967 100644 --- a/configs/STELLARF4V2/config.h +++ b/configs/STELLARF4V2/config.h @@ -124,3 +124,5 @@ #define GYRO_1_SPI_INSTANCE SPI1 #define GYRO_1_ALIGN CW180_DEG #define GYRO_1_ALIGN_PITCH 1800 + +#define BOX_USER1_NAME "CAM 1,2"