Commit cbeae22e authored by 潘栩锋's avatar 潘栩锋 🚴

优化 风环 限制 BestKp 的显示

parent 5c918f29
...@@ -223,7 +223,8 @@ namespace FLY.FeedbackRenZiJia.UI.Client.UiModule ...@@ -223,7 +223,8 @@ namespace FLY.FeedbackRenZiJia.UI.Client.UiModule
} }
void UpdateIsKpDiff() void UpdateIsKpDiff()
{ {
if (Math.Abs(BestKp - Kp)/ BestKp > 0.25) double p = Kp / BestKp;
if ((p > 1.5)|| (p<0.7))
{ {
IsKpDiff = true; IsKpDiff = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment