1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

Add yaw smoothing back // adjust defaults // KISS fc remove some shared timers

This commit is contained in:
borisbstyle 2016-08-05 00:02:38 +02:00
parent 7d119ae669
commit 06be182e50
4 changed files with 5 additions and 12 deletions

View file

@ -194,7 +194,7 @@ static void pidBetaflight(const pidProfile_t *pidProfile, uint16_t max_angle_inc
configD[axis] = pidProfile->D8[axis];
}
// Limit abrupt yaw inputs
// Limit abrupt yaw inputs / stops
if (axis == YAW && pidProfile->pidMaxVelocityYaw) {
float yawCurrentVelocity = setpointRate[axis] - yawPreviousRate;
if (ABS(yawCurrentVelocity) > yawMaxVelocity) {