Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
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
潘栩锋
Thick-Common
Commits
1b325e17
Commit
1b325e17
authored
Jun 22, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev6.0' of
http://private.flyautomation.net:82/panruising/thick_public
into dev6.0
parents
f88e593c
1ca3aa5a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
PgBorderSearch.xaml.cs
...t.FLY.Thick.Base/FLY.Thick.Base.UI/PgBorderSearch.xaml.cs
+2
-2
BorderSearchPlastic.cs
...Y.Thick.Base/FLY.Thick.Base/Server/BorderSearchPlastic.cs
+5
-5
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgBorderSearch.xaml.cs
View file @
1b325e17
...
...
@@ -517,14 +517,14 @@ namespace FLY.Thick.Base.UI
StripLine
stripline
=
new
StripLine
();
stripline
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(
64
,
System
.
Drawing
.
Color
.
Green
);
stripline
.
Interval
=
0
;
stripline
.
IntervalOffset
=
border
.
Begin
;
stripline
.
IntervalOffset
=
border
.
Begin
-
BorderSearchService
.
SensorWidth
/
2
;
stripline
.
StripWidth
=
BorderSearchService
.
SensorWidth
;
stripLines
.
Add
(
stripline
);
stripline
=
new
StripLine
();
stripline
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(
64
,
System
.
Drawing
.
Color
.
Green
);
stripline
.
Interval
=
0
;
stripline
.
IntervalOffset
=
border
.
End
-
BorderSearchService
.
SensorWidth
;
stripline
.
IntervalOffset
=
border
.
End
-
BorderSearchService
.
SensorWidth
/
2
;
stripline
.
StripWidth
=
BorderSearchService
.
SensorWidth
;
stripLines
.
Add
(
stripline
);
}
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/Server/BorderSearchPlastic.cs
View file @
1b325e17
...
...
@@ -33,15 +33,15 @@ namespace FLY.Thick.Base.Server
//算空气的平均值
Range
r2_grid
=
new
Range
();
r2_grid
.
Begin
=
borderbegin_grid
-
sensor_grid
;
r2_grid
.
End
=
borderend_grid
+
sensor_grid
;
r2_grid
.
Begin
=
borderbegin_grid
-
sensor_grid
/
3
;
r2_grid
.
End
=
borderend_grid
+
sensor_grid
/
3
;
if
(
r2_grid
.
Begin
<
0
)
r2_grid
.
Begin
=
0
;
if
(
r2_grid
.
End
>
dat
.
Length
-
1
)
r2_grid
.
End
=
dat
.
Length
-
1
;
int
avg1
=
MyMath
.
Avg
(
dat
,
0
,
r
1
_grid
.
Begin
);
int
avg2
=
MyMath
.
Avg
(
dat
,
r
1
_grid
.
End
,
dat
.
Length
-
1
);
int
avg1
=
MyMath
.
Avg
(
dat
,
0
,
r
2
_grid
.
Begin
);
int
avg2
=
MyMath
.
Avg
(
dat
,
r
2
_grid
.
End
,
dat
.
Length
-
1
);
int
threshold
;
if
((
Misc
.
MyBase
.
ISVALIDATA
(
avg1
))
&&
(
Misc
.
MyBase
.
ISVALIDATA
(
avg2
)))
{
...
...
@@ -57,7 +57,7 @@ namespace FLY.Thick.Base.Server
}
else
{
threshold
=
avg
/
2
;
threshold
=
(
TempAD
+
avg
)
/
2
;
}
//左边界
...
...
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