Subversion Repositories FlightCtrl

Rev

Rev 1960 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1960 Rev 1978
Line 33... Line 33...
33
    }
33
    }
34
    y = ((int32_t) throttle << (MATH_UNIT_FACTOR_LOG * 2 - 8)) / projection
34
    y = ((int32_t) throttle << (MATH_UNIT_FACTOR_LOG * 2 - 8)) / projection
35
        - throttle;
35
        - throttle;
36
  }
36
  }
37
  deltaThrottle = ((int32_t)y * effect) >> 6;
37
  deltaThrottle = ((int32_t)y * effect) >> 6;
38
  debugOut.analog[8] = deltaThrottle;
38
  // debugOut.analog[8] = deltaThrottle;
39
  return throttle + deltaThrottle;
39
  return throttle + deltaThrottle;
40
}
40
}