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
a54dd60c
Commit
a54dd60c
authored
Oct 20, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 当线速度=0, FeedbackHeat 判断稳定性会出错
parent
a3140dc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
6 deletions
+25
-6
FeedbackHeat.cs
...dbackRenZiJia/FLY.FeedbackRenZiJia/Server/FeedbackHeat.cs
+20
-6
GM_BlowingFix.cs
...Y.Thick.Blowing/FLY.Thick.Blowing/Server/GM_BlowingFix.cs
+5
-0
No files found.
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia/Server/FeedbackHeat.cs
View file @
a54dd60c
...
...
@@ -674,16 +674,23 @@ namespace FLY.FeedbackRenZiJia.Server
DateTime
htime
=
lcThickHeat
.
HTime
;
double
filmLength
=
lcThickHeat
.
FilmLength
;
double
filmVelocity
=
lcThickHeat
.
FilmVelocity
;
if
(
filmVelocity
<
2
)
{
//速度太慢,没生产
lcThickHeat
.
IsStable
=
false
;
return
;
}
//TODO
if
(
lcThickHeat
.
RCnt
<
1
)
{
//刚开机,肯定不稳定
lcThickHeat
.
IsStable
=
false
;
return
;
}
else
{
lcThickHeat
.
IsStable
=
time
>
(
htime
+
TimeSpan
.
FromSeconds
(
Delay
)
+
TimeSpan
.
FromMinutes
(
filmLength
/
filmVelocity
));
}
lcThickHeat
.
IsStable
=
time
>
(
htime
+
TimeSpan
.
FromSeconds
(
Delay
)
+
TimeSpan
.
FromMinutes
(
filmLength
/
filmVelocity
));
}
/// <summary>
...
...
@@ -710,8 +717,15 @@ namespace FLY.FeedbackRenZiJia.Server
if
(
invalid_cnt
>
NBolts
/
2
)
//有一半数据都是无效的
return
;
if
(
filmVelocity
<
2
)
{
//速度太慢,异常
return
;
}
if
(
filmLength
<
1
)
{
//膜距离太短,异常
return
;
}
HeatChanged
.
ITEM
heat
=
mHeatChanged
.
mItem
.
Last
();
var
lcThickHeat
=
new
Lc_ThickHeat
()
{
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing/Server/GM_BlowingFix.cs
View file @
a54dd60c
...
...
@@ -1479,8 +1479,13 @@ namespace FLY.Thick.Blowing.Server
if
(
frameinfo
.
scandata_id
==
null
)
{
if
(
frameinfo
.
renZiJiaDataEventArgs
.
FilmVelocity
<
2
)
{
//异常
continue
;
}
//添加数据
var
lc_scandata
=
Lc_AutoMapperProfile
.
Mapper
.
Map
<
Lc_ScanData
>(
frameinfo
.
renZiJiaDataEventArgs
);
historyDb
.
AddScanData
(
lc_scandata
);
frameinfo
.
scandata_id
=
lc_scandata
.
ID
;
renZiJiaDataEventArgs
=
frameinfo
.
renZiJiaDataEventArgs
;
...
...
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