diff --git a/src/main/target/BEEBRAIN_V2F/BEESTORM.mk b/src/main/target/BEEBRAIN_V2F/BEESTORM.mk new file mode 100644 index 000000000..d5a44c281 --- /dev/null +++ b/src/main/target/BEEBRAIN_V2F/BEESTORM.mk @@ -0,0 +1 @@ +# BEESTORM is a variant of BEEBRAIN_V2F without built-in vtx. \ No newline at end of file diff --git a/src/main/target/BEEBRAIN_V2F/config.c b/src/main/target/BEEBRAIN_V2F/config.c index 8c07d5850..3f0952cb8 100644 --- a/src/main/target/BEEBRAIN_V2F/config.c +++ b/src/main/target/BEEBRAIN_V2F/config.c @@ -103,7 +103,11 @@ void targetConfiguration(void) *customMotorMixerMutable(3) = (motorMixer_t){ 1.0f, 0.414178f, -1.0f, -1.0f }; // FRONT_L vcdProfileMutable()->video_system = VIDEO_SYSTEM_NTSC; +#if defined(BEESTORM) + strcpy(pilotConfigMutable()->name, "BeeStorm"); +#else strcpy(pilotConfigMutable()->name, "BeeBrain V2"); +#endif osdConfigMutable()->cap_alarm = 250; osdConfigMutable()->item_pos[OSD_CRAFT_NAME] = OSD_POS(9, 11) | VISIBLE_FLAG; osdConfigMutable()->item_pos[OSD_MAIN_BATT_VOLTAGE] = OSD_POS(23, 10) | VISIBLE_FLAG; diff --git a/src/main/target/BEEBRAIN_V2F/target.h b/src/main/target/BEEBRAIN_V2F/target.h index e6da312a6..00656c8f7 100644 --- a/src/main/target/BEEBRAIN_V2F/target.h +++ b/src/main/target/BEEBRAIN_V2F/target.h @@ -17,7 +17,11 @@ #pragma once +#if defined(BEESTORM) +#define TARGET_BOARD_IDENTIFIER "BEST" // Oversky BeeStorm +#else #define TARGET_BOARD_IDENTIFIER "BBV2" // BeeBrain V2. +#endif #define USE_TARGET_CONFIG #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT @@ -31,11 +35,19 @@ #define USE_GYRO #define USE_GYRO_SPI_MPU6500 +#if defined(BEESTORM) +#define GYRO_MPU6500_ALIGN CW180_DEG +#else #define GYRO_MPU6500_ALIGN CW270_DEG +#endif #define USE_ACC #define USE_ACC_SPI_MPU6500 +#if defined(BEESTORM) +#define ACC_MPU6500_ALIGN CW180_DEG +#else #define ACC_MPU6500_ALIGN CW270_DEG +#endif #define SERIAL_PORT_COUNT 4 @@ -78,12 +90,14 @@ #define MAX7456_SPI_INSTANCE SPI1 #define MAX7456_SPI_CS_PIN PA4 +#if !defined(BEESTORM) #define USE_VTX_RTC6705 #define USE_VTX_RTC6705_SOFTSPI #define USE_VTX_CONTROL #define RTC6705_SPI_MOSI_PIN PC15 #define RTC6705_SPICLK_PIN PC13 #define RTC6705_CS_PIN PB12 +#endif #define USE_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC @@ -94,7 +108,9 @@ #define USE_TRANSPONDER #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL #define SERIALRX_UART SERIAL_PORT_USART2 +#if !defined(BEESTORM) #define RX_CHANNELS_TAER +#endif #if defined(BEEBRAIN_V2D) // Receiver - DSM diff --git a/src/main/target/BEEBRAIN_V2F/target.mk b/src/main/target/BEEBRAIN_V2F/target.mk index 1f0a08a94..b686bce0a 100644 --- a/src/main/target/BEEBRAIN_V2F/target.mk +++ b/src/main/target/BEEBRAIN_V2F/target.mk @@ -5,5 +5,9 @@ TARGET_SRC = \ drivers/accgyro/accgyro_mpu.c \ drivers/accgyro/accgyro_mpu6500.c \ drivers/accgyro/accgyro_spi_mpu6500.c \ - drivers/vtx_rtc6705_soft_spi.c \ drivers/max7456.c + +ifeq ($(TARGET), BEESTORM) +else +TARGET_SRC += drivers/vtx_rtc6705_soft_spi.c +endif \ No newline at end of file