From 90fbd9cf622acc0ff71c3817739a62373da0c6f3 Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 19 May 2014 16:28:00 +0200 Subject: [PATCH] Fixes #1069 --- radio/src/mixer.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/radio/src/mixer.cpp b/radio/src/mixer.cpp index 39856c596..f6e4e9e56 100755 --- a/radio/src/mixer.cpp +++ b/radio/src/mixer.cpp @@ -712,11 +712,6 @@ void evalFlightModeMixes(uint8_t mode, uint8_t tick10ms) } if (apply_offset_and_curve) { -#if !defined(PCBTARANIS) // OFFSET is now applied AFTER weight on Taranis - //========== OFFSET / SOURCE =============== - int16_t offset = GET_GVAR(MD_OFFSET(md), GV_RANGELARGE_NEG, GV_RANGELARGE, s_current_mixer_flight_mode); - if (offset) v += calc100toRESX_16Bits(offset); -#endif //========== TRIMS ================ if (!(mode & e_perout_mode_notrims)) { @@ -816,12 +811,10 @@ void evalFlightModeMixes(uint8_t mode, uint8_t tick10ms) int32_t dv = (int32_t) v * weight; //========== OFFSET / AFTER =============== -#if defined(PCBTARANIS) if (apply_offset_and_curve) { int16_t offset = GET_GVAR(MD_OFFSET(md), GV_RANGELARGE_NEG, GV_RANGELARGE, s_current_mixer_flight_mode); if (offset) dv += calc100toRESX_16Bits(offset) << 8; } -#endif //========== DIFFERENTIAL ========= #if defined(PCBTARANIS)