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:
commit
346201d8ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue