From 0d9c27b5c8c89b209776827017d32113adfbcace Mon Sep 17 00:00:00 2001 From: matejkarasek Date: Wed, 12 Oct 2022 15:11:03 +0200 Subject: [PATCH 1/2] Bugfix flapper power distribution --- src/modules/src/power_distribution_flapper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/src/power_distribution_flapper.c b/src/modules/src/power_distribution_flapper.c index dc77eb4524..9e0b38ee8e 100644 --- a/src/modules/src/power_distribution_flapper.c +++ b/src/modules/src/power_distribution_flapper.c @@ -66,10 +66,10 @@ static float pitch_ampl = 0.4f; // 1 = full servo stroke #if CONFIG_POWER_DISTRIBUTION_FLAPPER_REVB uint32_t idPitch = 1; - uint32_t idYaw = 4; + uint32_t idYaw = 2; #else - uint32_t idPitch = 2; - uint32_t idYaw = 4; + uint32_t idPitch = 0; + uint32_t idYaw = 2; #endif static uint8_t limitServoNeutral(uint8_t value) From c34de93023c97f1424868996ba32d02c78c6a19f Mon Sep 17 00:00:00 2001 From: matejkarasek Date: Wed, 12 Oct 2022 15:34:16 +0200 Subject: [PATCH 2/2] bugfix motor type function --- src/modules/src/power_distribution_flapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/src/power_distribution_flapper.c b/src/modules/src/power_distribution_flapper.c index 9e0b38ee8e..b5bbdc0535 100644 --- a/src/modules/src/power_distribution_flapper.c +++ b/src/modules/src/power_distribution_flapper.c @@ -103,7 +103,7 @@ static int8_t limitRollBias(uint8_t value) int powerDistributionMotorType(uint32_t id) { int type = 0; - if (id == (idPitch || idYaw)) type = 1; + if (id != (idPitch || idYaw)) type = 1; return type; }