Added ESC Telemetry to all targets that support DSHOT
This commit is contained in:
parent
7c154c98db
commit
a146a6bc4b
|
@ -24,6 +24,7 @@
|
|||
#define USBD_PRODUCT_STRING "AnyFCF7"
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
#define LED0 PB7
|
||||
#define LED1 PB6
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
#define USE_EXTI
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
#define REMAP_TIM16_DMA
|
||||
#define REMAP_TIM17_DMA
|
||||
|
||||
|
@ -137,4 +138,4 @@
|
|||
#define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
|
||||
#define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(3)|BIT(4))
|
||||
|
||||
#define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(8) | TIM_N(15) | TIM_N(16) | TIM_N(17) )
|
||||
#define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(8) | TIM_N(15) | TIM_N(16) | TIM_N(17) )
|
||||
|
|
|
@ -145,6 +145,7 @@
|
|||
#define VBAT_ADC_PIN PC3
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
#define LED_STRIP
|
||||
|
||||
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
||||
|
@ -166,4 +167,3 @@
|
|||
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 7
|
||||
#define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(5) | TIM_N(8) | TIM_N(9))
|
||||
|
||||
|
|
|
@ -126,6 +126,7 @@
|
|||
|
||||
#define LED_STRIP
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||
|
||||
|
@ -146,4 +147,3 @@
|
|||
// only 6 outputs available on hardware
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 10
|
||||
#define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(15))
|
||||
|
||||
|
|
|
@ -162,6 +162,7 @@
|
|||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
#define REMAP_TIM17_DMA
|
||||
|
||||
#define TARGET_IO_PORTA 0xffff
|
||||
|
@ -171,4 +172,3 @@
|
|||
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 8
|
||||
#define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(8) | TIM_N(16) | TIM_N(17))
|
||||
|
||||
|
|
|
@ -176,6 +176,7 @@
|
|||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
#define TARGET_IO_PORTA 0xffff
|
||||
#define TARGET_IO_PORTB 0xffff
|
||||
|
@ -184,4 +185,3 @@
|
|||
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 6
|
||||
#define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(5) | TIM_N(8) )
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#define USBD_PRODUCT_STRING "FuryF7"
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
#define LED0 PB5
|
||||
#define LED1 PB4
|
||||
|
@ -152,4 +153,4 @@
|
|||
#define TARGET_IO_PORTE 0xffff
|
||||
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 5
|
||||
#define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(8))
|
||||
#define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(8))
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
#define USE_FLASH_M25P16
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
#define REMAP_TIM17_DMA
|
||||
|
||||
#define USE_VCP
|
||||
|
@ -105,4 +106,3 @@
|
|||
#define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(3)|BIT(4))
|
||||
|
||||
#define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(16) |TIM_N(17))
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
#define ENSURE_MPU_DATA_READY_IS_LOW
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
@ -173,4 +174,3 @@
|
|||
#define USABLE_TIMER_CHANNEL_COUNT 12
|
||||
#endif
|
||||
#define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(8) | TIM_N(15))
|
||||
|
||||
|
|
|
@ -103,6 +103,7 @@
|
|||
|
||||
#define LED_STRIP
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
#define SPEKTRUM_BIND
|
||||
// USART2, PB4
|
||||
|
@ -120,4 +121,3 @@
|
|||
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 10
|
||||
#define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(15) | TIM_N(17))
|
||||
|
||||
|
|
|
@ -106,6 +106,7 @@
|
|||
#define RSSI_ADC_PIN PB2
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
#define REMAP_TIM17_DMA
|
||||
|
||||
// UART1 TX uses DMA1_Channel4, which is also used by dshot on motor 4
|
||||
|
|
|
@ -138,6 +138,7 @@
|
|||
#define SDCARD_SPI_FULL_SPEED_CLOCK_DIVIDER 2
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
// DSHOT output 4 uses DMA1_Channel5, so don't use it for the SDCARD until we find an alternative
|
||||
#ifndef USE_DSHOT
|
||||
|
|
|
@ -123,6 +123,7 @@
|
|||
//#define RSSI_ADC_PIN PA0
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
#define LED_STRIP
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#endif
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
#define LED0 PB5
|
||||
// Disable LED1, conflicts with AirbotF4/Flip32F4/Revolt beeper
|
||||
|
|
|
@ -105,6 +105,7 @@
|
|||
|
||||
#define LED_STRIP
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
#define SPEKTRUM_BIND
|
||||
// USART3,
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#define INVERTER_USART USART6
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
// MPU9250 interrupt
|
||||
#define USE_EXTI
|
||||
|
@ -132,4 +133,3 @@
|
|||
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 11
|
||||
#define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(5) | TIM_N(12) | TIM_N(8) | TIM_N(9))
|
||||
|
||||
|
|
|
@ -116,6 +116,7 @@
|
|||
#define RSSI_ADC_PIN PB2
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
#define REMAP_TIM17_DMA
|
||||
|
||||
// UART1 TX uses DMA1_Channel4, which is also used by dshot on motor 4
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#define ENSURE_MAG_DATA_READY_IS_HIGH
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
#define GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
|
@ -156,4 +157,3 @@
|
|||
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 12 // PPM, 8 PWM, UART3 RX/TX, LED Strip
|
||||
#define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(8) | TIM_N(15))
|
||||
|
||||
|
|
|
@ -170,6 +170,7 @@
|
|||
#define EXTERNAL1_ADC_PIN PC3
|
||||
|
||||
#define USE_DSHOT
|
||||
#define USE_ESC_TELEMETRY
|
||||
|
||||
#define LED_STRIP
|
||||
|
||||
|
@ -192,4 +193,3 @@
|
|||
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 14
|
||||
#define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(8) | TIM_N(16) | TIM_N(17))
|
||||
|
||||
|
|
Loading…
Reference in New Issue