Trims bug fixed

This commit is contained in:
bsongis
2015-02-16 06:40:10 +01:00
parent 1e76e24dd7
commit d4b2bd2142
2 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -1565,7 +1565,7 @@ FORCEINLINE void evalTrims()
for (uint8_t i=0; i<NUM_STICKS; i++) {
// do trim -> throttle trim if applicable
int16_t trim = getTrimValue(phase, i);
#if !defined(PCBTARANIS)
#if !defined(VIRTUALINPUTS)
if (i==THR_STICK && g_model.thrTrim) {
int16_t trimMin = g_model.extendedTrims ? TRIM_EXTENDED_MIN : TRIM_MIN;
trim = (((g_model.throttleReversed)?(int32_t)(trim+trimMin):(int32_t)(trim-trimMin)) * (RESX-anas[i])) >> (RESX_SHIFT+1);