From 65e332e75d76b271d11d4b1c07875520281e8977 Mon Sep 17 00:00:00 2001 From: Michael Jakob Date: Mon, 19 Dec 2016 21:31:55 +0100 Subject: [PATCH 1/2] AlienFlight F3 custom configuration update Fix gyro and pid denominator for V1, V2 and brushed, brushless configuration --- src/main/target/ALIENFLIGHTF3/config.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/target/ALIENFLIGHTF3/config.c b/src/main/target/ALIENFLIGHTF3/config.c index e1d7b9e33..135104b09 100644 --- a/src/main/target/ALIENFLIGHTF3/config.c +++ b/src/main/target/ALIENFLIGHTF3/config.c @@ -74,6 +74,9 @@ void targetConfiguration(master_t *config) #ifdef LED2_A config->statusLedConfig.ledTags[2] = IO_TAG(LED2_A); #endif + } else { + config->gyroConfig.gyro_sync_denom = 2; + config->pidConfig.pid_process_denom = 2; } config->rxConfig.spektrum_sat_bind = 5; @@ -82,7 +85,7 @@ void targetConfiguration(master_t *config) if (hardwareMotorType == MOTOR_BRUSHED) { config->motorConfig.motorPwmRate = BRUSHED_MOTORS_PWM_RATE; - config->pidConfig.pid_process_denom = 2; + config->pidConfig.pid_process_denom = 1; } config->profile[0].pidProfile.P8[ROLL] = 90; From bf697b951310fc501830556d4a8fda2287eb6ff3 Mon Sep 17 00:00:00 2001 From: Michael Jakob Date: Mon, 19 Dec 2016 21:33:40 +0100 Subject: [PATCH 2/2] KakuteF4 SERIALRX_UART revert, UART2 does not exist for this target fix for #1577 --- src/main/target/KAKUTEF4/target.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/target/KAKUTEF4/target.h b/src/main/target/KAKUTEF4/target.h index 0a7891461..a82ba41e1 100644 --- a/src/main/target/KAKUTEF4/target.h +++ b/src/main/target/KAKUTEF4/target.h @@ -128,7 +128,7 @@ #define DEFAULT_FEATURES FEATURE_BLACKBOX #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL #define SERIALRX_PROVIDER SERIALRX_SBUS -#define SERIALRX_UART SERIAL_PORT_USART2 +#define SERIALRX_UART SERIAL_PORT_USART3 #define USE_SERIAL_4WAY_BLHELI_INTERFACE