From db94dc20f82a7bc398bd8d83b7bd189a996a52b4 Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Wed, 13 Nov 2024 20:31:17 -0500
Subject: [PATCH 01/13] Add SPEEDYBEEF405WING target
---
configs/SPEEDYBEEF405WING/config.h | 126 +++++++++++++++++++++++++++++
1 file changed, 126 insertions(+)
create mode 100644 configs/SPEEDYBEEF405WING/config.h
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
new file mode 100644
index 00000000..17e78526
--- /dev/null
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -0,0 +1,126 @@
+/*
+ * 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 SPEEDYBEEF405WING
+#define MANUFACTURER_ID SPBE
+
+#define USE_ACC
+#define USE_GYRO
+#define USE_GYRO_SPI_ICM42688P
+#define USE_GYRO_SPI_ICM42605
+#define USE_ACC_SPI_ICM42688P
+#define USE_ACC_SPI_ICM42605
+#define USE_FLASH
+#define USE_FLASH_W25Q128FV
+#define USE_SDCARD
+#define USE_SDCARD_SPI
+#define USE_MAX7456
+#define USE_BARO
+#define USE_BARO_BMP280
+#define USE_BARO_MS5611
+#define USE_BARO_BMP085
+#define USE_BARO_DPS310
+#define USE_BARO_SPL06
+
+#define BEEPER_PIN PC15
+#define MOTOR1_PIN PB7
+#define MOTOR2_PIN PB6
+#define SERVO1_PIN PB0
+#define SERVO2_PIN PB1
+#define SERVO3_PIN PC8
+#define SERVO4_PIN PC9
+#define SERVO5_PIN PB14
+#define SERVO6_PIN PA15
+#define SERVO7_PIN PB10
+#define LED_STRIP_PIN PA8
+#define UART1_TX_PIN PA9
+#define UART2_TX_PIN PA2
+#define UART3_TX_PIN PC10
+#define UART4_TX_PIN PA0
+#define UART5_TX_PIN PC12
+#define UART6_TX_PIN PC6
+#define UART1_RX_PIN PA10
+#define UART2_RX_PIN PA3
+#define UART3_RX_PIN PC11
+#define UART4_RX_PIN PA1
+#define UART5_RX_PIN PD2
+#define UART6_RX_PIN PC7
+#define I2C1_SCL_PIN PB8
+#define I2C1_SDA_PIN PB9
+#define LED0_PIN PA14
+#define LED1_PIN PA13
+#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 PC3
+#define SPI3_SDO_PIN PB5
+#define ADC_VBAT_PIN PC0
+#define ADC_RSSI_PIN PC5
+#define ADC_CURR_PIN PC1
+#define PINIO1_PIN PC13
+#define SDCARD_CS_PIN PC14
+#define MAX7456_SPI_CS_PIN PB12
+//#define GYRO_1_EXTI_PIN PC4
+#define GYRO_1_CS_PIN PA4
+
+#define TIMER_PIN_MAPPING \
+ TIMER_PIN_MAP( 0, PB7 , 1, 0) \
+ TIMER_PIN_MAP( 1, PB6 , 1, 0) \
+ TIMER_PIN_MAP( 2, PB0 , 2, -1) \
+ TIMER_PIN_MAP( 3, PB1 , 2, -1) \
+ TIMER_PIN_MAP( 4, PC8 , 2, -1) \
+ TIMER_PIN_MAP( 5, PC9 , 2, -1) \
+ TIMER_PIN_MAP( 6, PB14, 2, -1) \
+ TIMER_PIN_MAP( 5, PA15, 1, -1) \
+ TIMER_PIN_MAP( 5, PB10, 1, -1) \
+ TIMER_PIN_MAP( 5, PA8 , 1, 0)
+
+#define ADC1_DMA_OPT 0
+
+#define SERIALRX_UART SERIAL_PORT_USART1
+#define MSP_UART SERIAL_PORT_USART6
+
+#define MAG_I2C_INSTANCE (I2CDEV_1)
+#define BARO_I2C_INSTANCE (I2CDEV_1)
+#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
+#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
+#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
+#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
+#define DEFAULT_CURRENT_METER_SCALE 195
+//#define DEFAULT_CURRENT_METER_OFFSET -500
+#define BEEPER_INVERTED
+#define SYSTEM_HSE_MHZ 8
+#define MAX7456_SPI_INSTANCE SPI2
+#define DASHBOARD_I2C_INSTANCE (I2CDEV_1)
+#define PINIO1_CONFIG 1
+#define PINIO1_BOX 0
+#define FLASH_SPI_INSTANCE SPI3
+#define GYRO_1_SPI_INSTANCE SPI1
+#define GYRO_1_ALIGN CW270_DEG
+#define GYRO_1_ALIGN_YAW 2700
From 72efb7a25751989291254173b6f0d75e90431a5d Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Wed, 13 Nov 2024 20:32:12 -0500
Subject: [PATCH 02/13] Update config.h
---
configs/SPEEDYBEEF405WING/config.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
index 17e78526..8872645f 100644
--- a/configs/SPEEDYBEEF405WING/config.h
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -44,6 +44,10 @@
#define USE_BARO_DPS310
#define USE_BARO_SPL06
+#ifndef USE_WING
+#define USE_WING
+#endif
+
#define BEEPER_PIN PC15
#define MOTOR1_PIN PB7
#define MOTOR2_PIN PB6
From 22376676a9e7837b366ee1e059ced222fdfebd1d Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Sun, 17 Nov 2024 21:18:37 -0500
Subject: [PATCH 03/13] Update config.h
---
configs/SPEEDYBEEF405WING/config.h | 139 +++++++++++++++--------------
1 file changed, 71 insertions(+), 68 deletions(-)
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
index 8872645f..32c9748a 100644
--- a/configs/SPEEDYBEEF405WING/config.h
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -21,10 +21,10 @@
#pragma once
-#define FC_TARGET_MCU STM32F405
+#define FC_TARGET_MCU STM32F405
-#define BOARD_NAME SPEEDYBEEF405WING
-#define MANUFACTURER_ID SPBE
+#define BOARD_NAME SPEEDYBEEF405WING
+#define MANUFACTURER_ID SPBE
#define USE_ACC
#define USE_GYRO
@@ -48,50 +48,54 @@
#define USE_WING
#endif
-#define BEEPER_PIN PC15
-#define MOTOR1_PIN PB7
-#define MOTOR2_PIN PB6
-#define SERVO1_PIN PB0
-#define SERVO2_PIN PB1
-#define SERVO3_PIN PC8
-#define SERVO4_PIN PC9
-#define SERVO5_PIN PB14
-#define SERVO6_PIN PA15
-#define SERVO7_PIN PB10
-#define LED_STRIP_PIN PA8
-#define UART1_TX_PIN PA9
-#define UART2_TX_PIN PA2
-#define UART3_TX_PIN PC10
-#define UART4_TX_PIN PA0
-#define UART5_TX_PIN PC12
-#define UART6_TX_PIN PC6
-#define UART1_RX_PIN PA10
-#define UART2_RX_PIN PA3
-#define UART3_RX_PIN PC11
-#define UART4_RX_PIN PA1
-#define UART5_RX_PIN PD2
-#define UART6_RX_PIN PC7
-#define I2C1_SCL_PIN PB8
-#define I2C1_SDA_PIN PB9
-#define LED0_PIN PA14
-#define LED1_PIN PA13
-#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 PC3
-#define SPI3_SDO_PIN PB5
-#define ADC_VBAT_PIN PC0
-#define ADC_RSSI_PIN PC5
-#define ADC_CURR_PIN PC1
-#define PINIO1_PIN PC13
-#define SDCARD_CS_PIN PC14
+#ifndef USE_SERVOS
+#define USE_SERVOS
+#endif
+
+#define BEEPER_PIN PC15
+#define MOTOR1_PIN PB7
+#define MOTOR2_PIN PB6
+#define SERVO1_PIN PB0
+#define SERVO2_PIN PB1
+#define SERVO3_PIN PC8
+#define SERVO4_PIN PC9
+#define SERVO5_PIN PB14
+#define SERVO6_PIN PA15
+#define SERVO7_PIN PB10
+#define LED_STRIP_PIN PA8
+#define UART1_TX_PIN PA9
+#define UART2_TX_PIN PA2
+#define UART3_TX_PIN PC10
+#define UART4_TX_PIN PA0
+#define UART5_TX_PIN PC12
+#define UART6_TX_PIN PC6
+#define UART1_RX_PIN PA10
+#define UART2_RX_PIN PA3
+#define UART3_RX_PIN PC11
+#define UART4_RX_PIN PA1
+#define UART5_RX_PIN PD2
+#define UART6_RX_PIN PC7
+#define I2C1_SCL_PIN PB8
+#define I2C1_SDA_PIN PB9
+#define LED0_PIN PA14
+#define LED1_PIN PA13
+#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 PC3
+#define SPI3_SDO_PIN PB5
+#define ADC_VBAT_PIN PC0
+#define ADC_RSSI_PIN PC5
+#define ADC_CURR_PIN PC1
+#define PINIO1_PIN PC13
+#define SDCARD_CS_PIN PC14
#define MAX7456_SPI_CS_PIN PB12
-//#define GYRO_1_EXTI_PIN PC4
-#define GYRO_1_CS_PIN PA4
+//#define GYRO_1_EXTI_PIN PC4
+#define GYRO_1_CS_PIN PA4
#define TIMER_PIN_MAPPING \
TIMER_PIN_MAP( 0, PB7 , 1, 0) \
@@ -101,30 +105,29 @@
TIMER_PIN_MAP( 4, PC8 , 2, -1) \
TIMER_PIN_MAP( 5, PC9 , 2, -1) \
TIMER_PIN_MAP( 6, PB14, 2, -1) \
- TIMER_PIN_MAP( 5, PA15, 1, -1) \
- TIMER_PIN_MAP( 5, PB10, 1, -1) \
- TIMER_PIN_MAP( 5, PA8 , 1, 0)
+ TIMER_PIN_MAP( 7, PA15, 1, -1) \
+ TIMER_PIN_MAP( 8, PB10, 1, -1) \
+ TIMER_PIN_MAP( 9, PA8 , 1, 0)
-#define ADC1_DMA_OPT 0
+#define ADC1_DMA_OPT 0
-#define SERIALRX_UART SERIAL_PORT_USART1
-#define MSP_UART SERIAL_PORT_USART6
+#define SERIALRX_UART SERIAL_PORT_USART1
+#define MSP_UART SERIAL_PORT_USART6
-#define MAG_I2C_INSTANCE (I2CDEV_1)
-#define BARO_I2C_INSTANCE (I2CDEV_1)
-#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
-#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
-#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
-#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
-#define DEFAULT_CURRENT_METER_SCALE 195
+#define MAG_I2C_INSTANCE I2CDEV_1
+#define BARO_I2C_INSTANCE I2CDEV_1
+#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
+#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
+#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
+#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
+#define DEFAULT_CURRENT_METER_SCALE 195
//#define DEFAULT_CURRENT_METER_OFFSET -500
#define BEEPER_INVERTED
-#define SYSTEM_HSE_MHZ 8
-#define MAX7456_SPI_INSTANCE SPI2
-#define DASHBOARD_I2C_INSTANCE (I2CDEV_1)
-#define PINIO1_CONFIG 1
-#define PINIO1_BOX 0
-#define FLASH_SPI_INSTANCE SPI3
-#define GYRO_1_SPI_INSTANCE SPI1
-#define GYRO_1_ALIGN CW270_DEG
-#define GYRO_1_ALIGN_YAW 2700
+#define SYSTEM_HSE_MHZ 8
+#define MAX7456_SPI_INSTANCE SPI2
+#define PINIO1_CONFIG 1
+#define PINIO1_BOX 0
+#define FLASH_SPI_INSTANCE SPI3
+#define GYRO_1_SPI_INSTANCE SPI1
+#define GYRO_1_ALIGN CW270_DEG
+#define GYRO_1_ALIGN_YAW 2700
From 79ba0538df9fb748da8747bae8e3a45d3c71d989 Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Sun, 5 Jan 2025 21:49:26 -0500
Subject: [PATCH 04/13] Update configs/SPEEDYBEEF405WING/config.h
---
configs/SPEEDYBEEF405WING/config.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
index 32c9748a..2ebd7718 100644
--- a/configs/SPEEDYBEEF405WING/config.h
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -127,7 +127,7 @@
#define MAX7456_SPI_INSTANCE SPI2
#define PINIO1_CONFIG 1
#define PINIO1_BOX 0
-#define FLASH_SPI_INSTANCE SPI3
+#define SDCARD_SPI_INSTANCE SPI3
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW270_DEG
#define GYRO_1_ALIGN_YAW 2700
From 35c9a3238dd5f5e814be93079c81c20a0cc5e29c Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Sun, 5 Jan 2025 21:53:30 -0500
Subject: [PATCH 05/13] Update config.h
---
configs/SPEEDYBEEF405WING/config.h | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
index 2ebd7718..8c991dc5 100644
--- a/configs/SPEEDYBEEF405WING/config.h
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -105,9 +105,9 @@
TIMER_PIN_MAP( 4, PC8 , 2, -1) \
TIMER_PIN_MAP( 5, PC9 , 2, -1) \
TIMER_PIN_MAP( 6, PB14, 2, -1) \
- TIMER_PIN_MAP( 7, PA15, 1, -1) \
- TIMER_PIN_MAP( 8, PB10, 1, -1) \
- TIMER_PIN_MAP( 9, PA8 , 1, 0)
+ TIMER_PIN_MAP( 7, PA15, 1, -1) \
+ TIMER_PIN_MAP( 8, PB10, 1, -1) \
+ TIMER_PIN_MAP( 9, PA8 , 1, 0)
#define ADC1_DMA_OPT 0
@@ -116,7 +116,7 @@
#define MAG_I2C_INSTANCE I2CDEV_1
#define BARO_I2C_INSTANCE I2CDEV_1
-#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
+#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
@@ -127,7 +127,8 @@
#define MAX7456_SPI_INSTANCE SPI2
#define PINIO1_CONFIG 1
#define PINIO1_BOX 0
-#define SDCARD_SPI_INSTANCE SPI3
+#define SDCARD_SPI_INSTANCE SPI3
+//#define FLASH_SPI_INSTANCE SPI3
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW270_DEG
#define GYRO_1_ALIGN_YAW 2700
From 907e52a3742a41d78f76d4b1e321f52a2db98d66 Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Mon, 6 Jan 2025 01:16:14 -0500
Subject: [PATCH 06/13] Update config.h
---
configs/SPEEDYBEEF405WING/config.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
index 8c991dc5..9abd698d 100644
--- a/configs/SPEEDYBEEF405WING/config.h
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -32,8 +32,8 @@
#define USE_GYRO_SPI_ICM42605
#define USE_ACC_SPI_ICM42688P
#define USE_ACC_SPI_ICM42605
-#define USE_FLASH
-#define USE_FLASH_W25Q128FV
+//#define USE_FLASH
+//#define USE_FLASH_W25Q128FV
#define USE_SDCARD
#define USE_SDCARD_SPI
#define USE_MAX7456
@@ -92,7 +92,7 @@
#define ADC_RSSI_PIN PC5
#define ADC_CURR_PIN PC1
#define PINIO1_PIN PC13
-#define SDCARD_CS_PIN PC14
+#define SDCARD_SPI_CS_PIN PC14
#define MAX7456_SPI_CS_PIN PB12
//#define GYRO_1_EXTI_PIN PC4
#define GYRO_1_CS_PIN PA4
From ab30380bfd426b95d0ecd8e58b2626c0b9094fe3 Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Fri, 10 Jan 2025 16:20:20 -0500
Subject: [PATCH 07/13] Update configs/SPEEDYBEEF405WING/config.h
Co-authored-by: Mark Haslinghuis
---
configs/SPEEDYBEEF405WING/config.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
index 9abd698d..15852e81 100644
--- a/configs/SPEEDYBEEF405WING/config.h
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -32,8 +32,6 @@
#define USE_GYRO_SPI_ICM42605
#define USE_ACC_SPI_ICM42688P
#define USE_ACC_SPI_ICM42605
-//#define USE_FLASH
-//#define USE_FLASH_W25Q128FV
#define USE_SDCARD
#define USE_SDCARD_SPI
#define USE_MAX7456
From 1b3bac476057653b88a2dcd9e174a896e8d0627f Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Fri, 10 Jan 2025 16:20:30 -0500
Subject: [PATCH 08/13] Update configs/SPEEDYBEEF405WING/config.h
Co-authored-by: Mark Haslinghuis
---
configs/SPEEDYBEEF405WING/config.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
index 15852e81..13012008 100644
--- a/configs/SPEEDYBEEF405WING/config.h
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -92,7 +92,6 @@
#define PINIO1_PIN PC13
#define SDCARD_SPI_CS_PIN PC14
#define MAX7456_SPI_CS_PIN PB12
-//#define GYRO_1_EXTI_PIN PC4
#define GYRO_1_CS_PIN PA4
#define TIMER_PIN_MAPPING \
From cac34c776e6ed44fd4c91ae097049f0b554cdd54 Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Fri, 10 Jan 2025 16:20:37 -0500
Subject: [PATCH 09/13] Update configs/SPEEDYBEEF405WING/config.h
Co-authored-by: Mark Haslinghuis
---
configs/SPEEDYBEEF405WING/config.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
index 13012008..a66b2767 100644
--- a/configs/SPEEDYBEEF405WING/config.h
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -40,7 +40,6 @@
#define USE_BARO_MS5611
#define USE_BARO_BMP085
#define USE_BARO_DPS310
-#define USE_BARO_SPL06
#ifndef USE_WING
#define USE_WING
From f5c937ad440e3008359a47c1059d01d2138b1e39 Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Fri, 10 Jan 2025 16:20:46 -0500
Subject: [PATCH 10/13] Update configs/SPEEDYBEEF405WING/config.h
Co-authored-by: Mark Haslinghuis
---
configs/SPEEDYBEEF405WING/config.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
index a66b2767..f1356c5c 100644
--- a/configs/SPEEDYBEEF405WING/config.h
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -117,7 +117,6 @@
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SCALE 195
-//#define DEFAULT_CURRENT_METER_OFFSET -500
#define BEEPER_INVERTED
#define SYSTEM_HSE_MHZ 8
#define MAX7456_SPI_INSTANCE SPI2
From 0291cae8eef54eb86c3e0b7fc6e3b363cb73d17a Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Fri, 10 Jan 2025 16:20:54 -0500
Subject: [PATCH 11/13] Update configs/SPEEDYBEEF405WING/config.h
Co-authored-by: Mark Haslinghuis
---
configs/SPEEDYBEEF405WING/config.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
index f1356c5c..9f0463bb 100644
--- a/configs/SPEEDYBEEF405WING/config.h
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -123,7 +123,6 @@
#define PINIO1_CONFIG 1
#define PINIO1_BOX 0
#define SDCARD_SPI_INSTANCE SPI3
-//#define FLASH_SPI_INSTANCE SPI3
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW270_DEG
#define GYRO_1_ALIGN_YAW 2700
From e343f064fd65e79e9c9973eb59ce8fab17f84a02 Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Sat, 11 Jan 2025 13:09:57 -0500
Subject: [PATCH 12/13] Update configs/SPEEDYBEEF405WING/config.h
Co-authored-by: Mark Haslinghuis
---
configs/SPEEDYBEEF405WING/config.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
index 9f0463bb..bef7b0f1 100644
--- a/configs/SPEEDYBEEF405WING/config.h
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -125,4 +125,3 @@
#define SDCARD_SPI_INSTANCE SPI3
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW270_DEG
-#define GYRO_1_ALIGN_YAW 2700
From fd7fe36191134980cecd4408c8e300503841396d Mon Sep 17 00:00:00 2001
From: ot0tot <36753790+ot0tot@users.noreply.github.com>
Date: Sat, 11 Jan 2025 13:11:37 -0500
Subject: [PATCH 13/13] Limit PID loop rate to 4kHz by default
---
configs/SPEEDYBEEF405WING/config.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/SPEEDYBEEF405WING/config.h b/configs/SPEEDYBEEF405WING/config.h
index bef7b0f1..39cf24f4 100644
--- a/configs/SPEEDYBEEF405WING/config.h
+++ b/configs/SPEEDYBEEF405WING/config.h
@@ -110,6 +110,7 @@
#define SERIALRX_UART SERIAL_PORT_USART1
#define MSP_UART SERIAL_PORT_USART6
+#define DEFAULT_PID_PROCESS_DENOM 2
#define MAG_I2C_INSTANCE I2CDEV_1
#define BARO_I2C_INSTANCE I2CDEV_1
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD