mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
resolved missing 0.01 in cross roll-yaw control formula
This commit is contained in:
parent
b95e336c0a
commit
c764c1f093
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ static float rollToYawCrossLinkControl(const pidProfile_t *pidProfile, float rol
|
|||
if (pidProfile->afcs_roll_to_yaw_link && liftCoef > roll_yaw_clift_start) {
|
||||
float k = (liftCoef - roll_yaw_clift_start) / (roll_yaw_clift_stop - roll_yaw_clift_start);
|
||||
k = constrainf(k, 0.0f, 1.0f);
|
||||
crossYawControl = k * rollPilotControl * (pidProfile->afcs_roll_to_yaw_link * 0.1f);
|
||||
crossYawControl = k * (0.01f * rollPilotControl) * (pidProfile->afcs_roll_to_yaw_link * 0.1f);
|
||||
}
|
||||
|
||||
return crossYawControl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue