Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hemei
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
hemei
Commits
304c5dc6
Commit
304c5dc6
authored
Oct 16, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 Kundig.AirRing 自动对位结果显示 相关性,极差
parent
cba47431
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
HeatCell.cs
Project.Kundig.Thick.K300/Kundig.AirRing/Server/HeatCell.cs
+8
-4
No files found.
Project.Kundig.Thick.K300/Kundig.AirRing/Server/HeatCell.cs
View file @
304c5dc6
...
...
@@ -268,9 +268,12 @@ namespace Kundig.AirRing.Server
if
(
mHeatBuf
.
MaxR_Id1
==
mHeatBuf
.
mData
.
Last
().
ID
)
//算了结果
{
string
msg
=
"对位完成"
;
msg
+=
$",[相关性]
{
mHeatBuf
.
MaxR
:
F2
}
"
;
msg
+=
$",[极差]
{
mHeatBuf
.
MaxMin
}
%"
;
msg
+=
$",[复位号]"
;
if
(
k300
.
OrgBoltNo
!=
mHeatBuf
.
BestOrgBoltNo
)
{
msg
+=
$"
,[复位号]
{
k300
.
OrgBoltNo
}
->
{
mHeatBuf
.
BestOrgBoltNo
}
"
;
msg
+=
$"
{
k300
.
OrgBoltNo
}
->
{
mHeatBuf
.
BestOrgBoltNo
}
"
;
k300
.
OrgBoltNo
=
mHeatBuf
.
BestOrgBoltNo
;
k300
.
Apply
();
//调节 mHeatBuf.ThickPercents 移动到 mHeatBuf.BestOrgBoltNo
...
...
@@ -280,12 +283,13 @@ namespace Kundig.AirRing.Server
}
else
{
msg
+=
$"
,[复位号]
正确"
;
msg
+=
$"正确"
;
}
msg
+=
$",[Kp]"
;
if
(
Math
.
Abs
(
Kp
-
mHeatBuf
.
BestKp
)>
0.2
)
{
msg
+=
$"
,Kp
{
Kp
:
F1
}
->
{
mHeatBuf
.
BestKp
:
F1
}
"
;
msg
+=
$"
{
Kp
:
F1
}
->
{
mHeatBuf
.
BestKp
:
F1
}
"
;
Kp
=
mHeatBuf
.
BestKp
;
Apply
();
...
...
@@ -294,7 +298,7 @@ namespace Kundig.AirRing.Server
}
else
{
msg
+=
$"
,[Kp]
正确"
;
msg
+=
$"正确"
;
}
//对位完成
AutoONoStatus
=
AutoONoStatusEnum
.
Success
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment