1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Airmode Saturation fix // Needed for some setups

This commit is contained in:
borisbstyle 2016-02-02 22:48:52 +01:00
parent 17f214d2ab
commit 06b3f625d1

View file

@ -789,10 +789,10 @@ void mixTable(void)
// Scale roll/pitch/yaw uniformly to fit within throttle range
int16_t rollPitchYawMixRange = rollPitchYawMixMax - rollPitchYawMixMin;
int16_t throttleRange, throttle;
int16_t throttleMin, throttleMax;
int16_t throttleMin, throttleMax = 0;
static bool flightDirection3dReversed;
throttle = rcData[THROTTLE];
throttle = rcCommand[THROTTLE];
// Find min and max throttle based on condition
if (feature(FEATURE_3D)) {
@ -831,7 +831,6 @@ void mixTable(void)
for (i = 0; i < motorCount; i++) {
rollPitchYawMix[i] = (rollPitchYawMix[i] * throttleRange) / rollPitchYawMixRange;
}
throttleMin = throttleMax = throttleMin + (throttleRange / 2);
} else {
motorLimitReached = false;
throttleMin = throttleMin + (rollPitchYawMixRange / 2);