From 12d3a39d84062708814b082940e6e9a4a0b8c3a0 Mon Sep 17 00:00:00 2001 From: Michael Jakob Date: Fri, 25 Nov 2016 23:55:32 +0100 Subject: [PATCH] Fix PWM rate for Oneshot125 on AlienFlight F3 and F4 --- src/main/target/ALIENFLIGHTF3/config.c | 3 +-- src/main/target/ALIENFLIGHTF4/config.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/target/ALIENFLIGHTF3/config.c b/src/main/target/ALIENFLIGHTF3/config.c index cbb59814e9..a7cfc3a91e 100644 --- a/src/main/target/ALIENFLIGHTF3/config.c +++ b/src/main/target/ALIENFLIGHTF3/config.c @@ -47,14 +47,13 @@ void targetConfiguration(master_t *config) { config->rxConfig.spektrum_sat_bind = 5; config->rxConfig.spektrum_sat_bind_autoreset = 1; - config->gyro_sync_denom = 2; config->sensorSelectionConfig.mag_hardware = MAG_NONE; // disabled by default - config->pid_process_denom = 1; if (hardwareMotorType == MOTOR_BRUSHED) { config->motorConfig.minthrottle = 1000; config->motorConfig.motorPwmRate = 32000; config->motorConfig.motorPwmProtocol = PWM_TYPE_BRUSHED; + config->pid_process_denom = 2; config->motorConfig.useUnsyncedPwm = true; } diff --git a/src/main/target/ALIENFLIGHTF4/config.c b/src/main/target/ALIENFLIGHTF4/config.c index 36975b2a2d..216d9e486f 100644 --- a/src/main/target/ALIENFLIGHTF4/config.c +++ b/src/main/target/ALIENFLIGHTF4/config.c @@ -58,14 +58,13 @@ void targetConfiguration(master_t *config) { config->batteryConfig.currentMeterOffset = CURRENTOFFSET; config->batteryConfig.currentMeterScale = CURRENTSCALE; - config->gyro_sync_denom = 1; config->sensorSelectionConfig.mag_hardware = MAG_NONE; // disabled by default - config->pid_process_denom = 1; if (hardwareMotorType == MOTOR_BRUSHED) { config->motorConfig.minthrottle = 1000; config->motorConfig.motorPwmRate = BRUSHED_MOTORS_PWM_RATE; config->motorConfig.motorPwmProtocol = PWM_TYPE_BRUSHED; + config->pid_process_denom = 1; config->motorConfig.useUnsyncedPwm = true; }