This commit is contained in:
dongie 2013-11-02 16:59:32 +09:00
parent 29a9507c15
commit 33de2191df
1 changed files with 0 additions and 16 deletions

View File

@ -335,22 +335,6 @@ static void airplaneMixer(void)
}
if (cfg.flaps) {
int16_t flap = 1500 - constrain(rcData[cfg.flaps], cfg.servoendpoint_low[2], cfg.servoendpoint_high[2]);
static int16_t slowFlaps = flap;
if (cfg.flapspeed) {
if (slowFlaps < flap) {
slowFlaps += cfg.flapspeed;
} else if (slowFlaps > flap) {
slowFlaps -= cfg.flapspeed;
}
} else {
slowFlaps = flap;
}
servo[2] = servomid[2] + (slowFlaps * cfg.servoreverse[2]);
}
#endif
if (mcfg.flaps_speed) {