Merge pull request #4892 from martinbudden/bfa_use_defines1
Rationalise USE_ #defines
This commit is contained in:
commit
f63b39c709
|
@ -21,7 +21,6 @@
|
|||
#define TARGET_BOARD_IDENTIFIER "BFF3"
|
||||
|
||||
// Removing some features to make the firmware fit the flash space
|
||||
#undef USE_TELEMETRY_HOTT
|
||||
#undef USE_TELEMETRY_JETIEXBUS
|
||||
#undef USE_TELEMETRY_LTM
|
||||
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
|
||||
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
|
||||
|
||||
#undef USE_RX_MSP // never used.
|
||||
|
||||
#define LED0_PIN PC15
|
||||
#define LED1_PIN PC14
|
||||
#define LED2_PIN PC13
|
||||
|
|
|
@ -17,11 +17,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
// no space left
|
||||
#undef USE_TELEMETRY_JETIEXBUS
|
||||
#undef USE_TELEMETRY_HOTT
|
||||
#undef USE_TELEMETRY_LTM
|
||||
|
||||
#define TARGET_BOARD_IDENTIFIER "FRF3"
|
||||
#define USE_TARGET_CONFIG
|
||||
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
|
||||
|
|
|
@ -19,13 +19,10 @@
|
|||
|
||||
// Removed to make the firmware fit into flash:
|
||||
#undef USE_TELEMETRY_IBUS
|
||||
#undef USE_TELEMETRY_HOTT
|
||||
#undef USE_TELEMETRY_JETIEXBUS
|
||||
#undef USE_SERIALRX_JETIEXBUS
|
||||
#undef USE_TELEMETRY_MAVLINK
|
||||
#undef USE_TELEMETRY_LTM
|
||||
#undef USE_RCDEVICE
|
||||
#undef USE_DASHBOARD
|
||||
|
||||
|
||||
#define TARGET_BOARD_IDENTIFIER "OMNI" // https://en.wikipedia.org/wiki/Omnibus
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
#undef USE_TELEMETRY_JETIEXBUS
|
||||
#undef USE_SERIALRX_JETIEXBUS
|
||||
#undef USE_TELEMETRY_MAVLINK
|
||||
#undef USE_DASHBOARD
|
||||
|
||||
|
||||
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
#define USE_DSHOT
|
||||
#define USE_ESC_SENSOR
|
||||
#define I2C3_OVERCLOCK true
|
||||
#define USE_TELEMETRY_IBUS
|
||||
#define USE_GYRO_DATA_ANALYSE
|
||||
#endif
|
||||
|
||||
|
@ -61,15 +60,14 @@
|
|||
#define USE_ESC_SENSOR
|
||||
#define I2C3_OVERCLOCK true
|
||||
#define I2C4_OVERCLOCK true
|
||||
#define USE_TELEMETRY_IBUS
|
||||
#define USE_GYRO_DATA_ANALYSE
|
||||
#endif
|
||||
|
||||
#if defined(STM32F4) || defined(STM32F7)
|
||||
#define TASK_GYROPID_DESIRED_PERIOD 125
|
||||
#define TASK_GYROPID_DESIRED_PERIOD 125 // 125us = 8kHz
|
||||
#define SCHEDULER_DELAY_LIMIT 10
|
||||
#else
|
||||
#define TASK_GYROPID_DESIRED_PERIOD 1000
|
||||
#define TASK_GYROPID_DESIRED_PERIOD 1000 // 1000us = 1kHz
|
||||
#define SCHEDULER_DELAY_LIMIT 100
|
||||
#endif
|
||||
|
||||
|
@ -133,7 +131,6 @@
|
|||
#define USE_TELEMETRY_JETIEXBUS
|
||||
#define USE_TELEMETRY_MAVLINK
|
||||
#define USE_TELEMETRY_SRXL
|
||||
#define USE_DASHBOARD
|
||||
#define USE_MSP_DISPLAYPORT
|
||||
#define USE_RCDEVICE
|
||||
#define USE_RX_MSP
|
||||
|
@ -164,12 +161,13 @@
|
|||
#endif
|
||||
|
||||
#if (FLASH_SIZE > 256)
|
||||
// Temporarily moved GPS here because of overflowing flash size on F3
|
||||
#define USE_ALT_HOLD
|
||||
#define USE_DASHBOARD
|
||||
#define USE_GPS
|
||||
#define USE_GPS_UBLOX
|
||||
#define USE_GPS_NMEA
|
||||
#define USE_NAV
|
||||
#define USE_ALT_HOLD
|
||||
#define USE_UNCOMMON_MIXERS
|
||||
#define USE_OSD_ADJUSTMENTS
|
||||
#define USE_NAV
|
||||
#define USE_TELEMETRY_IBUS
|
||||
#define USE_UNCOMMON_MIXERS
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue