/branches/V0.76g-acid/fc.c |
---|
1583,11 → 1583,12 |
int16_t servo[6]; |
// throttle |
throttle = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] + Mixer.Motor[2][0]; |
if (throttle < 0) throttle = 0; |
if (MotorenEin == 0 || MikroKopterFlags & FLAG_NOTLANDUNG) { |
tmp = 0; |
} else { |
throttle = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] + Mixer.Motor[2][0]; |
if (throttle < 0) throttle = 0; |
tmp = throttle / Mixer.Motor[3][0]; |
if (tmp > Mixer.Motor[3][1] * 2) tmp = Mixer.Motor[3][1] * 2; |
} |