mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
fuck git
This commit is contained in:
parent
29a9507c15
commit
33de2191df
1 changed files with 0 additions and 16 deletions
16
src/mixer.c
16
src/mixer.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue