Merge pull request #464 from martinbudden/bf_targets
Moved common #defines to common.h. Fixed up some targets.
This commit is contained in:
commit
592fa144b6
4
Makefile
4
Makefile
|
@ -910,6 +910,7 @@ ALIENFLIGHTF4_SRC = \
|
||||||
drivers/barometer_ms5611.c \
|
drivers/barometer_ms5611.c \
|
||||||
drivers/compass_ak8963.c \
|
drivers/compass_ak8963.c \
|
||||||
drivers/compass_hmc5883l.c \
|
drivers/compass_hmc5883l.c \
|
||||||
|
drivers/display_ug2864hsweg01.c \
|
||||||
drivers/light_ws2811strip.c \
|
drivers/light_ws2811strip.c \
|
||||||
drivers/light_ws2811strip_stm32f4xx.c \
|
drivers/light_ws2811strip_stm32f4xx.c \
|
||||||
drivers/sdcard.c \
|
drivers/sdcard.c \
|
||||||
|
@ -925,6 +926,7 @@ BLUEJAYF4_SRC = \
|
||||||
drivers/accgyro_spi_mpu6500.c \
|
drivers/accgyro_spi_mpu6500.c \
|
||||||
drivers/accgyro_mpu6500.c \
|
drivers/accgyro_mpu6500.c \
|
||||||
drivers/barometer_ms5611.c \
|
drivers/barometer_ms5611.c \
|
||||||
|
drivers/display_ug2864hsweg01.c \
|
||||||
drivers/sdcard.c \
|
drivers/sdcard.c \
|
||||||
drivers/sdcard_standard.c \
|
drivers/sdcard_standard.c \
|
||||||
io/asyncfatfs/asyncfatfs.c \
|
io/asyncfatfs/asyncfatfs.c \
|
||||||
|
@ -938,6 +940,7 @@ REVO_SRC = \
|
||||||
drivers/accgyro_spi_mpu6000.c \
|
drivers/accgyro_spi_mpu6000.c \
|
||||||
drivers/barometer_ms5611.c \
|
drivers/barometer_ms5611.c \
|
||||||
drivers/compass_hmc5883l.c \
|
drivers/compass_hmc5883l.c \
|
||||||
|
drivers/display_ug2864hsweg01.c \
|
||||||
$(HIGHEND_SRC) \
|
$(HIGHEND_SRC) \
|
||||||
$(COMMON_SRC) \
|
$(COMMON_SRC) \
|
||||||
$(VCPF4_SRC)
|
$(VCPF4_SRC)
|
||||||
|
@ -946,6 +949,7 @@ KKNGF4_SRC = \
|
||||||
$(STM32F4xx_COMMON_SRC) \
|
$(STM32F4xx_COMMON_SRC) \
|
||||||
drivers/accgyro_spi_mpu6000.c \
|
drivers/accgyro_spi_mpu6000.c \
|
||||||
drivers/barometer_ms5611.c \
|
drivers/barometer_ms5611.c \
|
||||||
|
drivers/display_ug2864hsweg01.c \
|
||||||
$(HIGHEND_SRC) \
|
$(HIGHEND_SRC) \
|
||||||
$(COMMON_SRC) \
|
$(COMMON_SRC) \
|
||||||
$(VCPF4_SRC)
|
$(VCPF4_SRC)
|
||||||
|
|
|
@ -74,6 +74,10 @@
|
||||||
#include "config/config_profile.h"
|
#include "config/config_profile.h"
|
||||||
#include "config/config_master.h"
|
#include "config/config_master.h"
|
||||||
|
|
||||||
|
#ifndef DEFAULT_RX_FEATURE
|
||||||
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PARALLEL_PWM
|
||||||
|
#endif
|
||||||
|
|
||||||
#define BRUSHED_MOTORS_PWM_RATE 16000
|
#define BRUSHED_MOTORS_PWM_RATE 16000
|
||||||
#ifdef STM32F4
|
#ifdef STM32F4
|
||||||
#define BRUSHLESS_MOTORS_PWM_RATE 2000
|
#define BRUSHLESS_MOTORS_PWM_RATE 2000
|
||||||
|
@ -408,25 +412,20 @@ static void resetConf(void)
|
||||||
memset(&masterConfig, 0, sizeof(master_t));
|
memset(&masterConfig, 0, sizeof(master_t));
|
||||||
setProfile(0);
|
setProfile(0);
|
||||||
|
|
||||||
masterConfig.version = EEPROM_CONF_VERSION;
|
|
||||||
masterConfig.mixerMode = MIXER_QUADX;
|
|
||||||
featureClearAll();
|
featureClearAll();
|
||||||
#ifdef CONFIG_RX_PPM
|
featureSet(DEFAULT_RX_FEATURE | FEATURE_FAILSAFE | FEATURE_SUPEREXPO_RATES);
|
||||||
featureSet(FEATURE_RX_PPM);
|
#ifdef DEFAULT_FEATURES
|
||||||
|
featureSet(DEFAULT_FEATURES);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//#if defined(SPRACINGF3MINI)
|
|
||||||
// featureSet(FEATURE_DISPLAY);
|
|
||||||
//#endif
|
|
||||||
|
|
||||||
#ifdef BOARD_HAS_VOLTAGE_DIVIDER
|
#ifdef BOARD_HAS_VOLTAGE_DIVIDER
|
||||||
// only enable the VBAT feature by default if the board has a voltage divider otherwise
|
// only enable the VBAT feature by default if the board has a voltage divider otherwise
|
||||||
// the user may see incorrect readings and unexpected issues with pin mappings may occur.
|
// the user may see incorrect readings and unexpected issues with pin mappings may occur.
|
||||||
featureSet(FEATURE_VBAT);
|
featureSet(FEATURE_VBAT);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
featureSet(FEATURE_FAILSAFE);
|
masterConfig.version = EEPROM_CONF_VERSION;
|
||||||
featureSet(FEATURE_SUPEREXPO_RATES);
|
masterConfig.mixerMode = MIXER_QUADX;
|
||||||
|
|
||||||
// global settings
|
// global settings
|
||||||
masterConfig.current_profile_index = 0; // default profile
|
masterConfig.current_profile_index = 0; // default profile
|
||||||
|
@ -605,7 +604,6 @@ static void resetConf(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SPRACINGF3
|
#ifdef SPRACINGF3
|
||||||
featureSet(FEATURE_BLACKBOX);
|
|
||||||
masterConfig.blackbox_device = 1;
|
masterConfig.blackbox_device = 1;
|
||||||
#ifdef TRANSPONDER
|
#ifdef TRANSPONDER
|
||||||
static const uint8_t defaultTransponderData[6] = { 0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC }; // Note, this is NOT a valid transponder code, it's just for testing production hardware
|
static const uint8_t defaultTransponderData[6] = { 0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC }; // Note, this is NOT a valid transponder code, it's just for testing production hardware
|
||||||
|
@ -633,16 +631,6 @@ static void resetConf(void)
|
||||||
masterConfig.escAndServoConfig.maxthrottle = 1980;
|
masterConfig.escAndServoConfig.maxthrottle = 1980;
|
||||||
masterConfig.batteryConfig.vbatmaxcellvoltage = 45;
|
masterConfig.batteryConfig.vbatmaxcellvoltage = 45;
|
||||||
masterConfig.batteryConfig.vbatmincellvoltage = 30;
|
masterConfig.batteryConfig.vbatmincellvoltage = 30;
|
||||||
|
|
||||||
featureSet(FEATURE_VBAT);
|
|
||||||
featureSet(FEATURE_FAILSAFE);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef SPRACINGF3EVO
|
|
||||||
featureSet(FEATURE_TRANSPONDER);
|
|
||||||
featureSet(FEATURE_RSSI_ADC);
|
|
||||||
featureSet(FEATURE_CURRENT_METER);
|
|
||||||
featureSet(FEATURE_TELEMETRY);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(TARGET_CONFIG)
|
#if defined(TARGET_CONFIG)
|
||||||
|
@ -650,8 +638,6 @@ static void resetConf(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ALIENFLIGHT)
|
#if defined(ALIENFLIGHT)
|
||||||
featureSet(FEATURE_RX_SERIAL);
|
|
||||||
featureSet(FEATURE_MOTOR_STOP);
|
|
||||||
featureClear(FEATURE_ONESHOT125);
|
featureClear(FEATURE_ONESHOT125);
|
||||||
#ifdef ALIENFLIGHTF3
|
#ifdef ALIENFLIGHTF3
|
||||||
masterConfig.serialConfig.portConfigs[2].functionMask = FUNCTION_RX_SERIAL;
|
masterConfig.serialConfig.portConfigs[2].functionMask = FUNCTION_RX_SERIAL;
|
||||||
|
@ -675,65 +661,24 @@ static void resetConf(void)
|
||||||
currentControlRateProfile->rates[FD_YAW] = 20;
|
currentControlRateProfile->rates[FD_YAW] = 20;
|
||||||
parseRcChannels("TAER1234", &masterConfig.rxConfig);
|
parseRcChannels("TAER1234", &masterConfig.rxConfig);
|
||||||
|
|
||||||
// { 1.0f, -0.414178f, 1.0f, -1.0f }, // REAR_R
|
masterConfig.customMotorMixer[0] = (motorMixer_t){ 1.0f, -0.414178f, 1.0f, -1.0f }; // REAR_R
|
||||||
masterConfig.customMotorMixer[0].throttle = 1.0f;
|
masterConfig.customMotorMixer[1] = (motorMixer_t){ 1.0f, -0.414178f, -1.0f, 1.0f }; // FRONT_R
|
||||||
masterConfig.customMotorMixer[0].roll = -0.414178f;
|
masterConfig.customMotorMixer[2] = (motorMixer_t){ 1.0f, 0.414178f, 1.0f, 1.0f }; // REAR_L
|
||||||
masterConfig.customMotorMixer[0].pitch = 1.0f;
|
masterConfig.customMotorMixer[3] = (motorMixer_t){ 1.0f, 0.414178f, -1.0f, -1.0f }; // FRONT_L
|
||||||
masterConfig.customMotorMixer[0].yaw = -1.0f;
|
masterConfig.customMotorMixer[4] = (motorMixer_t){ 1.0f, -1.0f, -0.414178f, -1.0f }; // MIDFRONT_R
|
||||||
|
masterConfig.customMotorMixer[5] = (motorMixer_t){ 1.0f, 1.0f, -0.414178f, 1.0f }; // MIDFRONT_L
|
||||||
// { 1.0f, -0.414178f, -1.0f, 1.0f }, // FRONT_R
|
masterConfig.customMotorMixer[6] = (motorMixer_t){ 1.0f, -1.0f, 0.414178f, 1.0f }; // MIDREAR_R
|
||||||
masterConfig.customMotorMixer[1].throttle = 1.0f;
|
masterConfig.customMotorMixer[7] = (motorMixer_t){ 1.0f, 1.0f, 0.414178f, -1.0f }; // MIDREAR_L#endif
|
||||||
masterConfig.customMotorMixer[1].roll = -0.414178f;
|
|
||||||
masterConfig.customMotorMixer[1].pitch = -1.0f;
|
|
||||||
masterConfig.customMotorMixer[1].yaw = 1.0f;
|
|
||||||
|
|
||||||
// { 1.0f, 0.414178f, 1.0f, 1.0f }, // REAR_L
|
|
||||||
masterConfig.customMotorMixer[2].throttle = 1.0f;
|
|
||||||
masterConfig.customMotorMixer[2].roll = 0.414178f;
|
|
||||||
masterConfig.customMotorMixer[2].pitch = 1.0f;
|
|
||||||
masterConfig.customMotorMixer[2].yaw = 1.0f;
|
|
||||||
|
|
||||||
// { 1.0f, 0.414178f, -1.0f, -1.0f }, // FRONT_L
|
|
||||||
masterConfig.customMotorMixer[3].throttle = 1.0f;
|
|
||||||
masterConfig.customMotorMixer[3].roll = 0.414178f;
|
|
||||||
masterConfig.customMotorMixer[3].pitch = -1.0f;
|
|
||||||
masterConfig.customMotorMixer[3].yaw = -1.0f;
|
|
||||||
|
|
||||||
// { 1.0f, -1.0f, -0.414178f, -1.0f }, // MIDFRONT_R
|
|
||||||
masterConfig.customMotorMixer[4].throttle = 1.0f;
|
|
||||||
masterConfig.customMotorMixer[4].roll = -1.0f;
|
|
||||||
masterConfig.customMotorMixer[4].pitch = -0.414178f;
|
|
||||||
masterConfig.customMotorMixer[4].yaw = -1.0f;
|
|
||||||
|
|
||||||
// { 1.0f, 1.0f, -0.414178f, 1.0f }, // MIDFRONT_L
|
|
||||||
masterConfig.customMotorMixer[5].throttle = 1.0f;
|
|
||||||
masterConfig.customMotorMixer[5].roll = 1.0f;
|
|
||||||
masterConfig.customMotorMixer[5].pitch = -0.414178f;
|
|
||||||
masterConfig.customMotorMixer[5].yaw = 1.0f;
|
|
||||||
|
|
||||||
// { 1.0f, -1.0f, 0.414178f, 1.0f }, // MIDREAR_R
|
|
||||||
masterConfig.customMotorMixer[6].throttle = 1.0f;
|
|
||||||
masterConfig.customMotorMixer[6].roll = -1.0f;
|
|
||||||
masterConfig.customMotorMixer[6].pitch = 0.414178f;
|
|
||||||
masterConfig.customMotorMixer[6].yaw = 1.0f;
|
|
||||||
|
|
||||||
// { 1.0f, 1.0f, 0.414178f, -1.0f }, // MIDREAR_L
|
|
||||||
masterConfig.customMotorMixer[7].throttle = 1.0f;
|
|
||||||
masterConfig.customMotorMixer[7].roll = 1.0f;
|
|
||||||
masterConfig.customMotorMixer[7].pitch = 0.414178f;
|
|
||||||
masterConfig.customMotorMixer[7].yaw = -1.0f;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// alternative defaults settings for SINGULARITY target
|
|
||||||
#if defined(SINGULARITY)
|
#if defined(SINGULARITY)
|
||||||
featureSet(FEATURE_BLACKBOX);
|
// alternative defaults settings for SINGULARITY target
|
||||||
masterConfig.blackbox_device = 1;
|
masterConfig.blackbox_device = 1;
|
||||||
masterConfig.blackbox_rate_num = 1;
|
masterConfig.blackbox_rate_num = 1;
|
||||||
masterConfig.blackbox_rate_denom = 1;
|
masterConfig.blackbox_rate_denom = 1;
|
||||||
|
|
||||||
masterConfig.batteryConfig.vbatscale = 77;
|
masterConfig.batteryConfig.vbatscale = 77;
|
||||||
|
|
||||||
featureSet(FEATURE_RX_SERIAL);
|
|
||||||
masterConfig.serialConfig.portConfigs[2].functionMask = FUNCTION_RX_SERIAL;
|
masterConfig.serialConfig.portConfigs[2].functionMask = FUNCTION_RX_SERIAL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -127,13 +127,11 @@
|
||||||
#define VBAT_ADC_GPIO_PIN GPIO_Pin_4
|
#define VBAT_ADC_GPIO_PIN GPIO_Pin_4
|
||||||
#define VBAT_ADC_CHANNEL ADC_Channel_1
|
#define VBAT_ADC_CHANNEL ADC_Channel_1
|
||||||
|
|
||||||
//#define BLACKBOX
|
#undef BLACKBOX
|
||||||
#define SERIAL_RX
|
#undef GPS
|
||||||
//#define GPS
|
#undef DISPLAY
|
||||||
//#define GTUNE
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
//#define DISPLAY
|
#define DEFAULT_FEATURES (FEATURE_RX_SERIAL | FEATURE_MOTOR_STOP)
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART2, PA3
|
// USART2, PA3
|
||||||
|
|
|
@ -181,15 +181,6 @@
|
||||||
//#define WS2811_DMA_CHANNEL DMA1_Channel3
|
//#define WS2811_DMA_CHANNEL DMA1_Channel3
|
||||||
//#define WS2811_IRQ DMA1_Channel3_IRQn
|
//#define WS2811_IRQ DMA1_Channel3_IRQn
|
||||||
|
|
||||||
#define BLACKBOX
|
|
||||||
//#define DISPLAY
|
|
||||||
#define GPS
|
|
||||||
//#define GTUNE
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define TELEMETRY
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART2, PA3
|
// USART2, PA3
|
||||||
#define BIND_PORT GPIOA
|
#define BIND_PORT GPIOA
|
||||||
|
@ -203,9 +194,10 @@
|
||||||
#define BINDPLUG_PORT GPIOB
|
#define BINDPLUG_PORT GPIOB
|
||||||
#define BINDPLUG_PIN PB2
|
#define BINDPLUG_PIN PB2
|
||||||
|
|
||||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
|
#define DEFAULT_FEATURES (FEATURE_RX_SERIAL | FEATURE_MOTOR_STOP)
|
||||||
|
|
||||||
#define USE_QUATERNION
|
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||||
|
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
#define TARGET_IO_PORTB 0xffff
|
#define TARGET_IO_PORTB 0xffff
|
||||||
|
|
|
@ -140,17 +140,9 @@
|
||||||
#define VBAT_ADC_PIN PC3
|
#define VBAT_ADC_PIN PC3
|
||||||
#define VBAT_ADC_CHANNEL ADC_Channel_13
|
#define VBAT_ADC_CHANNEL ADC_Channel_13
|
||||||
|
|
||||||
#define GPS
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
#define BLACKBOX
|
|
||||||
#define TELEMETRY
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define AUTOTUNE
|
|
||||||
#define USE_QUAD_MIXER_ONLY
|
|
||||||
#define USE_CLI
|
|
||||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||||
|
|
||||||
#define USE_QUATERNION
|
|
||||||
|
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
#define TARGET_IO_PORTB 0xffff
|
#define TARGET_IO_PORTB 0xffff
|
||||||
#define TARGET_IO_PORTC 0xffff
|
#define TARGET_IO_PORTC 0xffff
|
||||||
|
|
|
@ -30,11 +30,11 @@
|
||||||
#define MPU_INT_EXTI PA3
|
#define MPU_INT_EXTI PA3
|
||||||
|
|
||||||
#define MPU6000_CS_GPIO GPIOA
|
#define MPU6000_CS_GPIO GPIOA
|
||||||
#define MPU6000_CS_PIN GPIO_Pin_4
|
#define MPU6000_CS_PIN PA4
|
||||||
#define MPU6000_SPI_INSTANCE SPI1
|
#define MPU6000_SPI_INSTANCE SPI1
|
||||||
|
|
||||||
#define M25P16_CS_GPIO GPIOB
|
#define M25P16_CS_GPIO GPIOB
|
||||||
#define M25P16_CS_PIN GPIO_Pin_12
|
#define M25P16_CS_PIN PB12
|
||||||
#define M25P16_SPI_INSTANCE SPI2
|
#define M25P16_SPI_INSTANCE SPI2
|
||||||
|
|
||||||
#define USE_FLASHFS
|
#define USE_FLASHFS
|
||||||
|
@ -117,13 +117,8 @@
|
||||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||||
|
|
||||||
#define DISPLAY
|
#define DISPLAY
|
||||||
#define BLACKBOX
|
|
||||||
#define TELEMETRY
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
#define SONAR
|
#define SONAR
|
||||||
//#define GPS
|
#undef GPS
|
||||||
|
|
||||||
#undef BARO
|
#undef BARO
|
||||||
|
|
||||||
|
@ -132,7 +127,6 @@
|
||||||
//#define SKIP_PID_LUXFLOAT
|
//#define SKIP_PID_LUXFLOAT
|
||||||
#undef DISPLAY
|
#undef DISPLAY
|
||||||
#undef SONAR
|
#undef SONAR
|
||||||
#undef GPS
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// IO - from schematics
|
// IO - from schematics
|
||||||
|
|
|
@ -117,15 +117,6 @@
|
||||||
#define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_3
|
#define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_3
|
||||||
#define EXTERNAL1_ADC_CHANNEL ADC_Channel_9
|
#define EXTERNAL1_ADC_CHANNEL ADC_Channel_9
|
||||||
|
|
||||||
#define GPS
|
|
||||||
|
|
||||||
#define BLACKBOX
|
|
||||||
//#define GTUNE
|
|
||||||
#define TELEMETRY
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
// IO - assuming 303 in 64pin package, TODO
|
// IO - assuming 303 in 64pin package, TODO
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
#define TARGET_IO_PORTB 0xffff
|
#define TARGET_IO_PORTB 0xffff
|
||||||
|
|
|
@ -47,29 +47,22 @@
|
||||||
// #define SOFT_I2C_PB1011 // If SOFT_I2C is enabled above, need to define pinout as well (I2C1 = PB67, I2C2 = PB1011)
|
// #define SOFT_I2C_PB1011 // If SOFT_I2C is enabled above, need to define pinout as well (I2C1 = PB67, I2C2 = PB1011)
|
||||||
// #define SOFT_I2C_PB67
|
// #define SOFT_I2C_PB67
|
||||||
|
|
||||||
#define SERIAL_RX
|
|
||||||
//#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART2, PA3
|
// USART2, PA3
|
||||||
#define BIND_PIN PA3
|
#define BIND_PIN PA3
|
||||||
|
|
||||||
// Since the CJMCU PCB has holes for 4 motors in each corner we can save same flash space by disabling support for other mixers.
|
|
||||||
#define USE_QUAD_MIXER_ONLY
|
|
||||||
|
|
||||||
|
|
||||||
#if (FLASH_SIZE > 64)
|
#if (FLASH_SIZE > 64)
|
||||||
#define BLACKBOX
|
#define BLACKBOX
|
||||||
|
#define USE_SERVOS
|
||||||
#else
|
#else
|
||||||
|
// Since the CJMCU PCB has holes for 4 motors in each corner we can save same flash space by disabling support for other mixers.
|
||||||
|
#define USE_QUAD_MIXER_ONLY
|
||||||
#define SKIP_TASK_STATISTICS
|
#define SKIP_TASK_STATISTICS
|
||||||
#define SKIP_CLI_COMMAND_HELP
|
#define SKIP_CLI_COMMAND_HELP
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//#undef USE_CLI
|
|
||||||
#define GTUNE
|
|
||||||
//#define BLACKBOX
|
|
||||||
|
|
||||||
// IO - assuming all IOs on 48pin package TODO
|
// IO - assuming all IOs on 48pin package TODO
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
#define TARGET_IO_PORTB 0xffff
|
#define TARGET_IO_PORTB 0xffff
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
#define BST_DEVICE_NAME "COLIBRI RACE"
|
#define BST_DEVICE_NAME "COLIBRI RACE"
|
||||||
#define BST_DEVICE_NAME_LENGTH 12
|
#define BST_DEVICE_NAME_LENGTH 12
|
||||||
|
|
||||||
|
#ifdef CONFIG_FASTLOOP_PREFERRED_ACC
|
||||||
|
#undef CONFIG_FASTLOOP_PREFERRED_ACC
|
||||||
|
#endif
|
||||||
#define CONFIG_FASTLOOP_PREFERRED_ACC 0
|
#define CONFIG_FASTLOOP_PREFERRED_ACC 0
|
||||||
|
|
||||||
#define LED0 PC15
|
#define LED0 PC15
|
||||||
|
@ -125,6 +128,7 @@
|
||||||
#define ADC_AHB_PERIPHERAL RCC_AHBPeriph_DMA1
|
#define ADC_AHB_PERIPHERAL RCC_AHBPeriph_DMA1
|
||||||
#define ADC_DMA_CHANNEL DMA1_Channel1
|
#define ADC_DMA_CHANNEL DMA1_Channel1
|
||||||
|
|
||||||
|
#define BOARD_HAS_VOLTAGE_DIVIDER
|
||||||
#define VBAT_ADC_GPIO GPIOC
|
#define VBAT_ADC_GPIO GPIOC
|
||||||
#define VBAT_ADC_GPIO_PIN GPIO_Pin_0
|
#define VBAT_ADC_GPIO_PIN GPIO_Pin_0
|
||||||
#define VBAT_ADC_CHANNEL ADC_Channel_6
|
#define VBAT_ADC_CHANNEL ADC_Channel_6
|
||||||
|
@ -141,9 +145,6 @@
|
||||||
#define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_3
|
#define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_3
|
||||||
#define EXTERNAL1_ADC_CHANNEL ADC_Channel_9
|
#define EXTERNAL1_ADC_CHANNEL ADC_Channel_9
|
||||||
|
|
||||||
#define BLACKBOX
|
|
||||||
#define GPS
|
|
||||||
//#define GTUNE
|
|
||||||
#define LED_STRIP
|
#define LED_STRIP
|
||||||
#define USE_COLIBTI_RACE_LED_DEFAULT_CONFIG
|
#define USE_COLIBTI_RACE_LED_DEFAULT_CONFIG
|
||||||
|
|
||||||
|
@ -169,10 +170,7 @@
|
||||||
#define USE_MPU_DATA_READY_SIGNAL
|
#define USE_MPU_DATA_READY_SIGNAL
|
||||||
#define ENSURE_MPU_DATA_READY_IS_LOW
|
#define ENSURE_MPU_DATA_READY_IS_LOW
|
||||||
|
|
||||||
#define TELEMETRY
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
#define SERIAL_RX
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||||
|
|
||||||
|
|
|
@ -157,9 +157,6 @@
|
||||||
|
|
||||||
#define EXTI_CALLBACK_HANDLER_COUNT 1 // MPU data ready
|
#define EXTI_CALLBACK_HANDLER_COUNT 1 // MPU data ready
|
||||||
|
|
||||||
#define BLACKBOX
|
|
||||||
#define GPS
|
|
||||||
//#define GTUNE
|
|
||||||
#define LED_STRIP
|
#define LED_STRIP
|
||||||
|
|
||||||
// tqfp48 pin 16
|
// tqfp48 pin 16
|
||||||
|
@ -177,10 +174,7 @@
|
||||||
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC3
|
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC3
|
||||||
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH3_HANDLER
|
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH3_HANDLER
|
||||||
|
|
||||||
#define TELEMETRY
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
#define SERIAL_RX
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// Use UART3 for speksat
|
// Use UART3 for speksat
|
||||||
|
|
|
@ -109,17 +109,9 @@
|
||||||
#define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_5
|
#define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_5
|
||||||
#define EXTERNAL1_ADC_CHANNEL ADC_Channel_5
|
#define EXTERNAL1_ADC_CHANNEL ADC_Channel_5
|
||||||
|
|
||||||
#define GPS
|
|
||||||
#define LED_STRIP
|
#define LED_STRIP
|
||||||
#define LED_STRIP_TIMER TIM3
|
#define LED_STRIP_TIMER TIM3
|
||||||
|
|
||||||
#define BLACKBOX
|
|
||||||
#define GTUNE
|
|
||||||
#define TELEMETRY
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART2, PA3
|
// USART2, PA3
|
||||||
#define BIND_PIN PA3
|
#define BIND_PIN PA3
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
#define TARGET_BOARD_IDENTIFIER "FURY"
|
#define TARGET_BOARD_IDENTIFIER "FURY"
|
||||||
|
|
||||||
|
#define CONFIG_FASTLOOP_PREFERRED_ACC 1
|
||||||
|
|
||||||
#define MPU_INT_EXTI PC4
|
#define MPU_INT_EXTI PC4
|
||||||
#define USE_EXTI
|
#define USE_EXTI
|
||||||
#define CONFIG_PREFER_ACC_ON
|
#define CONFIG_PREFER_ACC_ON
|
||||||
|
@ -181,14 +183,9 @@
|
||||||
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC2
|
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC2
|
||||||
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH2_HANDLER
|
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH2_HANDLER
|
||||||
|
|
||||||
#define BLACKBOX
|
|
||||||
#define DISPLAY
|
|
||||||
#define GPS
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define TELEMETRY
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
#define SONAR
|
#define SONAR
|
||||||
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
|
#define DEFAULT_FEATURES FEATURE_BLACKBOX
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART3,
|
// USART3,
|
||||||
|
|
|
@ -102,14 +102,6 @@
|
||||||
#define RSSI_ADC_GPIO_PIN GPIO_Pin_2
|
#define RSSI_ADC_GPIO_PIN GPIO_Pin_2
|
||||||
#define RSSI_ADC_CHANNEL ADC_Channel_12
|
#define RSSI_ADC_CHANNEL ADC_Channel_12
|
||||||
|
|
||||||
#define BLACKBOX
|
|
||||||
#define GPS
|
|
||||||
//#define GTUNE
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define TELEMETRY
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART3,
|
// USART3,
|
||||||
#define BIND_PIN PB11
|
#define BIND_PIN PB11
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define TARGET_BOARD_IDENTIFIER "REVO" //Call it a revo for now so it connects to RFC for testing.
|
#define TARGET_BOARD_IDENTIFIER "REVO" //Call it a revo for now so it connects to RFC for testing.
|
||||||
#define CONFIG_START_FLASH_ADDRESS (0x08080000) //0x08080000 to 0x080A0000 (FLASH_Sector_8)
|
#define CONFIG_START_FLASH_ADDRESS (0x08080000) //0x08080000 to 0x080A0000 (FLASH_Sector_8)
|
||||||
#define CONFIG_SERIALRX_PROVIDER SERIALRX_SBUS
|
#define CONFIG_SERIALRX_PROVIDER SERIALRX_SBUS
|
||||||
|
@ -139,15 +140,7 @@
|
||||||
#define CURRENT_METER_ADC_PIN PC3
|
#define CURRENT_METER_ADC_PIN PC3
|
||||||
#define CURRENT_METER_ADC_CHANNEL ADC_Channel_13
|
#define CURRENT_METER_ADC_CHANNEL ADC_Channel_13
|
||||||
|
|
||||||
#define GPS
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
#define BLACKBOX
|
|
||||||
#define TELEMETRY
|
|
||||||
#define SERIAL_RX
|
|
||||||
//#define GTUNE
|
|
||||||
#define USE_QUAD_MIXER_ONLY
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define USE_QUATERNION
|
|
||||||
|
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
#define TARGET_IO_PORTB 0xffff
|
#define TARGET_IO_PORTB 0xffff
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
#define MPU6500_CS_GPIO_CLK_PERIPHERAL RCC_AHBPeriph_GPIOA
|
#define MPU6500_CS_GPIO_CLK_PERIPHERAL RCC_AHBPeriph_GPIOA
|
||||||
#define MPU6500_CS_GPIO GPIOA
|
#define MPU6500_CS_GPIO GPIOA
|
||||||
#define MPU6500_CS_PIN GPIO_Pin_4
|
#define MPU6500_CS_PIN PA4
|
||||||
#define MPU6500_SPI_INSTANCE SPI1
|
#define MPU6500_SPI_INSTANCE SPI1
|
||||||
|
|
||||||
#define USE_SPI
|
#define USE_SPI
|
||||||
|
@ -109,9 +109,6 @@
|
||||||
#define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_3
|
#define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_3
|
||||||
#define EXTERNAL1_ADC_CHANNEL ADC_Channel_9
|
#define EXTERNAL1_ADC_CHANNEL ADC_Channel_9
|
||||||
|
|
||||||
#define BLACKBOX
|
|
||||||
#define GPS
|
|
||||||
//#define GTUNE
|
|
||||||
#define LED_STRIP
|
#define LED_STRIP
|
||||||
|
|
||||||
#define LED_STRIP_TIMER TIM16
|
#define LED_STRIP_TIMER TIM16
|
||||||
|
@ -136,10 +133,7 @@
|
||||||
#define USE_MPU_DATA_READY_SIGNAL
|
#define USE_MPU_DATA_READY_SIGNAL
|
||||||
#define ENSURE_MPU_DATA_READY_IS_LOW
|
#define ENSURE_MPU_DATA_READY_IS_LOW
|
||||||
|
|
||||||
#define TELEMETRY
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
#define SERIAL_RX
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART1, PC5
|
// USART1, PC5
|
||||||
|
|
|
@ -113,13 +113,8 @@
|
||||||
//#define SENSORS_SET (SENSOR_ACC | SENSOR_BARO | SENSOR_GPS | SENSOR_MAG)
|
//#define SENSORS_SET (SENSOR_ACC | SENSOR_BARO | SENSOR_GPS | SENSOR_MAG)
|
||||||
#define SENSORS_SET (SENSOR_ACC)
|
#define SENSORS_SET (SENSOR_ACC)
|
||||||
|
|
||||||
#define TELEMETRY
|
#undef GPS
|
||||||
#define BLACKBOX
|
|
||||||
#define SERIAL_RX
|
|
||||||
//#define GPS
|
|
||||||
//#define GTUNE
|
|
||||||
#define DISPLAY
|
#define DISPLAY
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_FLASHFS
|
#define USE_FLASHFS
|
||||||
#define USE_FLASH_M25P16
|
#define USE_FLASH_M25P16
|
||||||
|
|
||||||
|
|
|
@ -162,13 +162,7 @@
|
||||||
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC6
|
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC6
|
||||||
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH6_HANDLER
|
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH6_HANDLER
|
||||||
|
|
||||||
//#define GPS
|
#undef GPS
|
||||||
//#define GTUNE
|
|
||||||
#define BLACKBOX
|
|
||||||
#define TELEMETRY
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART2, PA3
|
// USART2, PA3
|
||||||
|
@ -182,6 +176,7 @@
|
||||||
#define TARGET_BOARD_IDENTIFIER "AWF1" // AlienFlight F1.
|
#define TARGET_BOARD_IDENTIFIER "AWF1" // AlienFlight F1.
|
||||||
#undef BOARD_HAS_VOLTAGE_DIVIDER
|
#undef BOARD_HAS_VOLTAGE_DIVIDER
|
||||||
#define ALIENFLIGHT
|
#define ALIENFLIGHT
|
||||||
|
#define DEFAULT_FEATURES (FEATURE_RX_SERIAL | FEATURE_MOTOR_STOP)
|
||||||
|
|
||||||
#define HARDWARE_BIND_PLUG
|
#define HARDWARE_BIND_PLUG
|
||||||
|
|
||||||
|
|
|
@ -33,14 +33,6 @@
|
||||||
#define USE_I2C
|
#define USE_I2C
|
||||||
#define I2C_DEVICE (I2CDEV_1)
|
#define I2C_DEVICE (I2CDEV_1)
|
||||||
|
|
||||||
#define BLACKBOX
|
|
||||||
#define GPS
|
|
||||||
#define GTUNE
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define TELEMETRY
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART2, PA3
|
// USART2, PA3
|
||||||
#define BIND_PIN PA3
|
#define BIND_PIN PA3
|
||||||
|
|
|
@ -98,16 +98,9 @@
|
||||||
#define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_5
|
#define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_5
|
||||||
#define EXTERNAL1_ADC_CHANNEL ADC_Channel_5
|
#define EXTERNAL1_ADC_CHANNEL ADC_Channel_5
|
||||||
|
|
||||||
#define GPS
|
|
||||||
#define LED_STRIP
|
#define LED_STRIP
|
||||||
#define LED_STRIP_TIMER TIM3
|
#define LED_STRIP_TIMER TIM3
|
||||||
|
|
||||||
#define TELEMETRY
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define BLACKBOX
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
// IO - assuming all IOs on smt32f103rb LQFP64 package
|
// IO - assuming all IOs on smt32f103rb LQFP64 package
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
#define TARGET_IO_PORTB 0xffff
|
#define TARGET_IO_PORTB 0xffff
|
||||||
|
|
|
@ -132,14 +132,6 @@
|
||||||
#define LED_STRIP
|
#define LED_STRIP
|
||||||
#define LED_STRIP_TIMER TIM3
|
#define LED_STRIP_TIMER TIM3
|
||||||
|
|
||||||
#define BLACKBOX
|
|
||||||
#define GPS
|
|
||||||
#define GTUNE
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define TELEMETRY
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||||
|
|
||||||
// IO - stm32f103RCT6 in 64pin package
|
// IO - stm32f103RCT6 in 64pin package
|
||||||
|
|
|
@ -16,7 +16,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define TARGET_BOARD_IDENTIFIER "REVO"
|
#define TARGET_BOARD_IDENTIFIER "REVO"
|
||||||
|
|
||||||
|
#define CONFIG_FASTLOOP_PREFERRED_ACC 1
|
||||||
|
|
||||||
#define CONFIG_START_FLASH_ADDRESS (0x08080000) //0x08080000 to 0x080A0000 (FLASH_Sector_8)
|
#define CONFIG_START_FLASH_ADDRESS (0x08080000) //0x08080000 to 0x080A0000 (FLASH_Sector_8)
|
||||||
#define CONFIG_SERIALRX_PROVIDER SERIALRX_SBUS
|
#define CONFIG_SERIALRX_PROVIDER SERIALRX_SBUS
|
||||||
#define CONFIG_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
#define CONFIG_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||||
|
@ -121,23 +125,17 @@
|
||||||
//#define LED_STRIP
|
//#define LED_STRIP
|
||||||
//#define LED_STRIP_TIMER TIM5
|
//#define LED_STRIP_TIMER TIM5
|
||||||
|
|
||||||
#define GPS
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
#define BLACKBOX
|
#define DEFAULT_FEATURES (FEATURE_BLACKBOX | FEATURE_ONESHOT125 | FEATURE_RX_SERIAL)
|
||||||
#define TELEMETRY
|
|
||||||
#define SERIAL_RX
|
|
||||||
//#define GTUNE
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
|
||||||
|
|
||||||
#define USE_QUATERNION
|
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||||
|
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
#define TARGET_IO_PORTB 0xffff
|
#define TARGET_IO_PORTB 0xffff
|
||||||
#define TARGET_IO_PORTC 0xffff
|
#define TARGET_IO_PORTC 0xffff
|
||||||
#define TARGET_IO_PORTD 0xffff
|
#define TARGET_IO_PORTD 0xffff
|
||||||
|
|
||||||
#define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(5) | TIM_N(12) | TIM_N(8) | TIM_N(9))
|
#define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(5) | TIM_N(12) | TIM_N(8) | TIM_N(9))
|
||||||
|
|
||||||
#define TIMER_APB1_PERIPHERALS (RCC_APB1Periph_TIM2 | RCC_APB1Periph_TIM3 | RCC_APB1Periph_TIM5 | RCC_APB1Periph_TIM12 | RCC_AHB1Periph_GPIOA | RCC_AHB1Periph_GPIOB | RCC_AHB1Periph_GPIOC)
|
#define TIMER_APB1_PERIPHERALS (RCC_APB1Periph_TIM2 | RCC_APB1Periph_TIM3 | RCC_APB1Periph_TIM5 | RCC_APB1Periph_TIM12 | RCC_AHB1Periph_GPIOA | RCC_AHB1Periph_GPIOB | RCC_AHB1Periph_GPIOC)
|
||||||
#define TIMER_APB2_PERIPHERALS (RCC_APB2Periph_TIM8 | RCC_APB2Periph_TIM9)
|
#define TIMER_APB2_PERIPHERALS (RCC_APB2Periph_TIM8 | RCC_APB2Periph_TIM9)
|
||||||
|
|
|
@ -136,12 +136,7 @@
|
||||||
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC2
|
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC2
|
||||||
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH2_HANDLER
|
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH2_HANDLER
|
||||||
|
|
||||||
#define BLACKBOX
|
#undef GPS
|
||||||
//#define GTUNE
|
|
||||||
#define TELEMETRY
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART3,
|
// USART3,
|
||||||
|
|
|
@ -115,13 +115,8 @@
|
||||||
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC2
|
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC2
|
||||||
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH2_HANDLER
|
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH2_HANDLER
|
||||||
|
|
||||||
#define AUTOTUNE
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
#define BLACKBOX
|
#define DEFAULT_FEATURES (FEATURE_BLACKBOX | FEATURE_RX_SERIAL)
|
||||||
#define TELEMETRY
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define GPS
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART2, PA15
|
// USART2, PA15
|
||||||
|
|
|
@ -110,14 +110,7 @@
|
||||||
#define CURRENT_METER_ADC_GPIO_PIN GPIO_Pin_7
|
#define CURRENT_METER_ADC_GPIO_PIN GPIO_Pin_7
|
||||||
#define CURRENT_METER_ADC_CHANNEL ADC_Channel_4
|
#define CURRENT_METER_ADC_CHANNEL ADC_Channel_4
|
||||||
|
|
||||||
#define BLACKBOX
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
#define GPS
|
|
||||||
//#define GTUNE
|
|
||||||
#define DISPLAY
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define TELEMETRY
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define LED_STRIP
|
#define LED_STRIP
|
||||||
#if 1
|
#if 1
|
||||||
|
|
|
@ -144,14 +144,8 @@
|
||||||
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC2
|
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC2
|
||||||
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH2_HANDLER
|
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH2_HANDLER
|
||||||
|
|
||||||
#define BLACKBOX
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
#define DISPLAY
|
#define DEFAULT_FEATURES FEATURE_BLACKBOX
|
||||||
#define GPS
|
|
||||||
//#define GTUNE
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define TELEMETRY
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART3,
|
// USART3,
|
||||||
|
|
|
@ -182,16 +182,10 @@
|
||||||
#define TRANSPONDER_DMA_TC_FLAG DMA1_FLAG_TC2
|
#define TRANSPONDER_DMA_TC_FLAG DMA1_FLAG_TC2
|
||||||
#define TRANSPONDER_DMA_HANDLER_IDENTIFER DMA1_CH2_HANDLER
|
#define TRANSPONDER_DMA_HANDLER_IDENTIFER DMA1_CH2_HANDLER
|
||||||
|
|
||||||
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
|
||||||
|
|
||||||
#define GPS
|
|
||||||
#define BLACKBOX
|
|
||||||
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
||||||
#define TELEMETRY
|
|
||||||
#define SERIAL_RX
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
#define DISPLAY
|
#define DEFAULT_FEATURES (FEATURE_TRANSPONDER | FEATURE_RSSI_ADC | FEATURE_CURRENT_METER | FEATURE_TELEMETRY)
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART3,
|
// USART3,
|
||||||
|
|
|
@ -187,15 +187,8 @@
|
||||||
|
|
||||||
#define REDUCE_TRANSPONDER_CURRENT_DRAW_WHEN_USB_CABLE_PRESENT
|
#define REDUCE_TRANSPONDER_CURRENT_DRAW_WHEN_USB_CABLE_PRESENT
|
||||||
|
|
||||||
#define GPS
|
|
||||||
#define BLACKBOX
|
|
||||||
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
||||||
#define TELEMETRY
|
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||||
#define SERIAL_RX
|
|
||||||
#define AUTOTUNE
|
|
||||||
#define DISPLAY
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define BUTTONS
|
#define BUTTONS
|
||||||
#define BUTTON_A_PORT GPIOB
|
#define BUTTON_A_PORT GPIOB
|
||||||
|
|
|
@ -135,15 +135,8 @@
|
||||||
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC3
|
#define WS2811_DMA_TC_FLAG DMA1_FLAG_TC3
|
||||||
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH3_HANDLER
|
#define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH3_HANDLER
|
||||||
|
|
||||||
#define BLACKBOX
|
|
||||||
#define GPS
|
|
||||||
//#define GTUNE
|
|
||||||
#define LED_STRIP
|
#define LED_STRIP
|
||||||
#define LED_STRIP_TIMER TIM16
|
#define LED_STRIP_TIMER TIM16
|
||||||
#define TELEMETRY
|
|
||||||
#define SERIAL_RX
|
|
||||||
#define USE_SERVOS
|
|
||||||
#define USE_CLI
|
|
||||||
|
|
||||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define CONFIG_FASTLOOP_PREFERRED_ACC 1
|
|
||||||
|
|
||||||
#ifdef STM32F4
|
#ifdef STM32F4
|
||||||
#define TASK_GYROPID_DESIRED_PERIOD 125
|
#define TASK_GYROPID_DESIRED_PERIOD 125
|
||||||
#define SCHEDULER_DELAY_LIMIT 10
|
#define SCHEDULER_DELAY_LIMIT 10
|
||||||
|
@ -26,3 +24,20 @@
|
||||||
#define TASK_GYROPID_DESIRED_PERIOD 1000
|
#define TASK_GYROPID_DESIRED_PERIOD 1000
|
||||||
#define SCHEDULER_DELAY_LIMIT 100
|
#define SCHEDULER_DELAY_LIMIT 100
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define SERIAL_RX
|
||||||
|
#define USE_CLI
|
||||||
|
|
||||||
|
#if (FLASH_SIZE > 64)
|
||||||
|
#define BLACKBOX
|
||||||
|
#define GPS
|
||||||
|
#define TELEMETRY
|
||||||
|
#define USE_SERVOS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (FLASH_SIZE > 128)
|
||||||
|
#define DISPLAY
|
||||||
|
#else
|
||||||
|
#define SKIP_CLI_COMMAND_HELP
|
||||||
|
#define SKIP_RX_MSP
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue