Throttle expo feature removed. If really needed, there are plenty of other ways to achieve it.

This commit is contained in:
bsongis
2011-12-03 21:51:20 +00:00
parent 352b04302a
commit 87dddbb773
4 changed files with 4 additions and 19 deletions
+1 -5
View File
@@ -280,13 +280,9 @@ void applyExpos(int16_t *anas, uint8_t phase)
if((v<0 && ed.mode&1) || (v>=0 && ed.mode&2)) {
cur_chn = ed.chn;
int16_t k = ed.expo;
if (IS_THROTTLE(cur_chn) && g_model.thrExpo)
v = 2*expo((v+RESX)/2, k);
else
v = expo(v, k);
v = expo(v, k);
if (ed.curve) v = applyCurve(v, ed.curve > 10 ? ed.curve + 4 : ed.curve, 0);
v = ((int32_t)v * ed.weight) / 100;
if (IS_THROTTLE(cur_chn) && g_model.thrExpo) v -= RESX;
anas[cur_chn] = v;
}
}