add target BeeStorm (#5662)
* add target BeeStorm * Revert "add target BeeStorm" This reverts commit 834a186da78c2e22faeccb11831de59b7187a355. * derived model of BEEBRAIN_V2F
This commit is contained in:
parent
b2c247d34a
commit
4a5e79a534
|
@ -0,0 +1 @@
|
||||||
|
# BEESTORM is a variant of BEEBRAIN_V2F without built-in vtx.
|
|
@ -103,7 +103,11 @@ void targetConfiguration(void)
|
||||||
*customMotorMixerMutable(3) = (motorMixer_t){ 1.0f, 0.414178f, -1.0f, -1.0f }; // FRONT_L
|
*customMotorMixerMutable(3) = (motorMixer_t){ 1.0f, 0.414178f, -1.0f, -1.0f }; // FRONT_L
|
||||||
|
|
||||||
vcdProfileMutable()->video_system = VIDEO_SYSTEM_NTSC;
|
vcdProfileMutable()->video_system = VIDEO_SYSTEM_NTSC;
|
||||||
|
#if defined(BEESTORM)
|
||||||
|
strcpy(pilotConfigMutable()->name, "BeeStorm");
|
||||||
|
#else
|
||||||
strcpy(pilotConfigMutable()->name, "BeeBrain V2");
|
strcpy(pilotConfigMutable()->name, "BeeBrain V2");
|
||||||
|
#endif
|
||||||
osdConfigMutable()->cap_alarm = 250;
|
osdConfigMutable()->cap_alarm = 250;
|
||||||
osdConfigMutable()->item_pos[OSD_CRAFT_NAME] = OSD_POS(9, 11) | VISIBLE_FLAG;
|
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;
|
osdConfigMutable()->item_pos[OSD_MAIN_BATT_VOLTAGE] = OSD_POS(23, 10) | VISIBLE_FLAG;
|
||||||
|
|
|
@ -17,7 +17,11 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#if defined(BEESTORM)
|
||||||
|
#define TARGET_BOARD_IDENTIFIER "BEST" // Oversky BeeStorm
|
||||||
|
#else
|
||||||
#define TARGET_BOARD_IDENTIFIER "BBV2" // BeeBrain V2.
|
#define TARGET_BOARD_IDENTIFIER "BBV2" // BeeBrain V2.
|
||||||
|
#endif
|
||||||
#define USE_TARGET_CONFIG
|
#define USE_TARGET_CONFIG
|
||||||
|
|
||||||
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
|
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
|
||||||
|
@ -31,11 +35,19 @@
|
||||||
|
|
||||||
#define USE_GYRO
|
#define USE_GYRO
|
||||||
#define USE_GYRO_SPI_MPU6500
|
#define USE_GYRO_SPI_MPU6500
|
||||||
|
#if defined(BEESTORM)
|
||||||
|
#define GYRO_MPU6500_ALIGN CW180_DEG
|
||||||
|
#else
|
||||||
#define GYRO_MPU6500_ALIGN CW270_DEG
|
#define GYRO_MPU6500_ALIGN CW270_DEG
|
||||||
|
#endif
|
||||||
|
|
||||||
#define USE_ACC
|
#define USE_ACC
|
||||||
#define USE_ACC_SPI_MPU6500
|
#define USE_ACC_SPI_MPU6500
|
||||||
|
#if defined(BEESTORM)
|
||||||
|
#define ACC_MPU6500_ALIGN CW180_DEG
|
||||||
|
#else
|
||||||
#define ACC_MPU6500_ALIGN CW270_DEG
|
#define ACC_MPU6500_ALIGN CW270_DEG
|
||||||
|
#endif
|
||||||
|
|
||||||
#define SERIAL_PORT_COUNT 4
|
#define SERIAL_PORT_COUNT 4
|
||||||
|
|
||||||
|
@ -78,12 +90,14 @@
|
||||||
#define MAX7456_SPI_INSTANCE SPI1
|
#define MAX7456_SPI_INSTANCE SPI1
|
||||||
#define MAX7456_SPI_CS_PIN PA4
|
#define MAX7456_SPI_CS_PIN PA4
|
||||||
|
|
||||||
|
#if !defined(BEESTORM)
|
||||||
#define USE_VTX_RTC6705
|
#define USE_VTX_RTC6705
|
||||||
#define USE_VTX_RTC6705_SOFTSPI
|
#define USE_VTX_RTC6705_SOFTSPI
|
||||||
#define USE_VTX_CONTROL
|
#define USE_VTX_CONTROL
|
||||||
#define RTC6705_SPI_MOSI_PIN PC15
|
#define RTC6705_SPI_MOSI_PIN PC15
|
||||||
#define RTC6705_SPICLK_PIN PC13
|
#define RTC6705_SPICLK_PIN PC13
|
||||||
#define RTC6705_CS_PIN PB12
|
#define RTC6705_CS_PIN PB12
|
||||||
|
#endif
|
||||||
|
|
||||||
#define USE_ADC
|
#define USE_ADC
|
||||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||||
|
@ -94,7 +108,9 @@
|
||||||
#define USE_TRANSPONDER
|
#define USE_TRANSPONDER
|
||||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
||||||
#define SERIALRX_UART SERIAL_PORT_USART2
|
#define SERIALRX_UART SERIAL_PORT_USART2
|
||||||
|
#if !defined(BEESTORM)
|
||||||
#define RX_CHANNELS_TAER
|
#define RX_CHANNELS_TAER
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(BEEBRAIN_V2D)
|
#if defined(BEEBRAIN_V2D)
|
||||||
// Receiver - DSM
|
// Receiver - DSM
|
||||||
|
|
|
@ -5,5 +5,9 @@ TARGET_SRC = \
|
||||||
drivers/accgyro/accgyro_mpu.c \
|
drivers/accgyro/accgyro_mpu.c \
|
||||||
drivers/accgyro/accgyro_mpu6500.c \
|
drivers/accgyro/accgyro_mpu6500.c \
|
||||||
drivers/accgyro/accgyro_spi_mpu6500.c \
|
drivers/accgyro/accgyro_spi_mpu6500.c \
|
||||||
drivers/vtx_rtc6705_soft_spi.c \
|
|
||||||
drivers/max7456.c
|
drivers/max7456.c
|
||||||
|
|
||||||
|
ifeq ($(TARGET), BEESTORM)
|
||||||
|
else
|
||||||
|
TARGET_SRC += drivers/vtx_rtc6705_soft_spi.c
|
||||||
|
endif
|
Loading…
Reference in New Issue