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
84177858
Commit
84177858
authored
Jun 09, 2022
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 AD盒模拟器 出错
parent
cabcd8ec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
26 deletions
+15
-26
Blowing.cs
Project.FLY.FlyADBase/FLY.Simulation.Blowing/Blowing.cs
+1
-1
GageAD.cs
Project.FLY.FlyADBase/FLY.Simulation.Blowing/GageAD.cs
+14
-25
No files found.
Project.FLY.FlyADBase/FLY.Simulation.Blowing/Blowing.cs
View file @
84177858
...
...
@@ -229,7 +229,7 @@ namespace FLY.Simulation.Blowing
AngleDecTime
=
5
;
//减速时间5s
AngleCoolTime
=
5
;
//正反转延迟时间5s
FilmWidth
=
2300
;
//膜宽23
00mm
FilmWidth
=
1500
;
//膜宽15
00mm
FilmVelocity
=
20
;
//线速度m/min
FilmDistance
=
26
;
//膜距离m
...
...
Project.FLY.FlyADBase/FLY.Simulation.Blowing/GageAD.cs
View file @
84177858
...
...
@@ -17,7 +17,7 @@ namespace FLY.Simulation.Blowing
/// <summary>
/// 机架总长 mm
/// </summary>
public
int
TotalLength
{
get
;
set
;
}
=
300
0
;
public
int
TotalLength
{
get
;
set
;
}
=
244
0
;
public
Blowing
mBlowing
;
...
...
@@ -35,11 +35,10 @@ namespace FLY.Simulation.Blowing
/// </summary>
public
int
SenserWidth
;
public
int
[]
AirDatas
;
CurveCollection
curve
;
double
ppmm
;
public
GageAD
()
{
curve
=
new
CurveCollection
();
...
...
@@ -49,18 +48,8 @@ namespace FLY.Simulation.Blowing
FilmWidth
=
(
int
)
mBlowing
.
FilmWidth
;
FilmBegin
=
300
;
SenserWidth
=
30
;
AirDatas
=
new
int
[
TotalLength
];
NewAirDatas
();
}
void
NewAirDatas
()
{
int
a
=
20
;
Random
r
=
new
Random
();
for
(
int
i
=
0
;
i
<
AirDatas
.
Count
();
i
++)
{
AirDatas
[
i
]
=
r
.
Next
(
a
)
-
a
/
2
;
}
}
public
void
OnPoll
(
DateTime
now
)
{
//NewAirDatas();
...
...
@@ -70,12 +59,12 @@ namespace FLY.Simulation.Blowing
public
int
GetAD
(
int
mm
)
{
return
GetAD_1
(
mm
);
//return GetAD_2(
pos
);
//return GetAD_2(
mm
);
}
int
GetAD_1
(
int
mm
)
{
Random
r
=
new
Random
();
int
data
=
r
.
Next
(
50
)
-
25
;
int
data
=
r
.
Next
(
30
*
2
)
-
30
;
// 单位 0.01um, ±0.3um波动
if
((
mm
>=
FilmBegin
)
&&
(
mm
<(
FilmBegin
+
FilmWidth
)))
{
...
...
@@ -95,7 +84,7 @@ namespace FLY.Simulation.Blowing
{
int
[]
datas
=
new
int
[
SenserWidth
];
for
(
int
i
=
0
;
i
<
SenserWidth
;
i
+
+
)
for
(
int
i
=
0
;
i
<
SenserWidth
;
i
+
=
5
)
{
datas
[
i
]
=
GetAD_1
(
mm
-
SenserWidth
/
2
+
i
);
}
...
...
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