Merge pull request #5949 from dbasch/gps_rescue_rc1

fix the requirement for easing on yaw changes by only changing relati…
This commit is contained in:
Michael Keller 2018-05-23 22:19:36 +12:00 committed by GitHub
commit 346201d8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -363,8 +363,8 @@ void setBearing(int16_t deg)
dif -= 360;
dif *= -GET_DIRECTION(rcControlsConfig()->yaw_control_reversed);
dif = constrain(dif, -5, 5); // TODO: very basic smoothing, we need something less twitchy
rcCommand[YAW] -= dif * gpsRescue()->yawP / 20;
rcCommand[YAW] = - (dif * gpsRescue()->yawP / 20);
}
#endif