mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
CC3D - don't share timer between PPM capture and motor output
A periodic glitch happens on AUX channels when using OneShot on CC3D, especially with faster update loops. This is caused by a race condition while forcing timer overflows and sharing the timer for PPM capture. It causes the craft the fall out of the sky when using a switch to arm. * Remap PPM in from S1_IN to S6_IN * Remap RSSI_ADC from S6_IN to S3_IN * Block PWM12/S6_OUT from being used with Oneshot/brushed motors so TIM2 (PPM_IN timer) doesn't change prescaler or is manually overflowed * Allow only one feature out of SOFTSERIAL/RSSI_ADC/SONAR, since they will now share the same pin * Update docs to reflect port changes and restrictions This fixes cleanflight/cleanflight#1748, fixes borisbstyle/betaflight#64, fixes borisbstyle/betaflight#127 fix BP6
This commit is contained in:
parent
3fc14404dc
commit
56e9278354
5 changed files with 47 additions and 36 deletions
|
@ -108,9 +108,9 @@
|
|||
#define VBAT_ADC_GPIO_PIN GPIO_Pin_0
|
||||
#define VBAT_ADC_CHANNEL ADC_Channel_0
|
||||
|
||||
#define RSSI_ADC_GPIO GPIOA
|
||||
#define RSSI_ADC_GPIO_PIN GPIO_Pin_1
|
||||
#define RSSI_ADC_CHANNEL ADC_Channel_1
|
||||
#define RSSI_ADC_GPIO GPIOB
|
||||
#define RSSI_ADC_GPIO_PIN GPIO_Pin_0
|
||||
#define RSSI_ADC_CHANNEL ADC_Channel_8
|
||||
|
||||
#define GPS
|
||||
#define LED_STRIP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue