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
52fa4a1a
Commit
52fa4a1a
authored
Nov 23, 2019
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
边界查找 提供 Border
parent
248af6bc
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
54 deletions
+41
-54
TimeGridAdvEventArgs.cs
...FLY.FlyADBase/FlyADBase/EventArgs/TimeGridAdvEventArgs.cs
+1
-5
BorderSearchServiceClient.cs
...k.Base/FLY.Thick.Base/Client/BorderSearchServiceClient.cs
+12
-13
IBorderSearchService.cs
...hick.Base/FLY.Thick.Base/IService/IBorderSearchService.cs
+7
-3
BORDERSEARCH_OBJ_INTERFACE.cs
...LY.Thick.Base/OBJ_INTERFACE/BORDERSEARCH_OBJ_INTERFACE.cs
+1
-0
BorderSearch_OBJProxy.cs
...e/FLY.Thick.Base/Server.OBJProxy/BorderSearch_OBJProxy.cs
+1
-2
BorderSearch.cs
Project.FLY.Thick.Base/FLY.Thick.Base/Server/BorderSearch.cs
+19
-31
No files found.
Project.FLY.FlyADBase/FlyADBase/EventArgs/TimeGridAdvEventArgs.cs
View file @
52fa4a1a
...
@@ -18,14 +18,10 @@ namespace FlyADBase
...
@@ -18,14 +18,10 @@ namespace FlyADBase
{
{
}
}
/// <summary>
/// <summary>
///
///
/// </summary>
/// </summary>
/// <param name="data"></param>
public
TimeGridAdvEventArgs
(
GridAdvUnit
[]
data
)
{
Data
=
data
;
}
public
int
Marker
{
get
;
set
;
}
public
int
Marker
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 数据
/// 数据
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/Client/BorderSearchServiceClient.cs
View file @
52fa4a1a
...
@@ -32,11 +32,14 @@ namespace FLY.Thick.Base.Client
...
@@ -32,11 +32,14 @@ namespace FLY.Thick.Base.Client
/// </summary>
/// </summary>
public
bool
IsBreakDetect
{
get
;
set
;
}
=
true
;
public
bool
IsBreakDetect
{
get
;
set
;
}
=
true
;
public
Range
Valid
{
get
;
}
=
new
Range
();
[
PropertyChanged
.
DoNotCheckEquality
]
public
Range
Valid
{
get
;
set
;
}
=
new
Range
();
public
Range
Border_Backw
{
get
;
}
=
new
Range
();
[
PropertyChanged
.
DoNotCheckEquality
]
public
Range
Border_Backw
{
get
;
private
set
;
}
=
new
Range
();
public
Range
Border_Forw
{
get
;
}
=
new
Range
();
[
PropertyChanged
.
DoNotCheckEquality
]
public
Range
Border_Forw
{
get
;
private
set
;
}
=
new
Range
();
[
PropertyChanged
.
DoNotCheckEquality
]
public
Range
Border
{
get
;
private
set
;
}
=
new
Range
();
/// <summary>
/// <summary>
...
@@ -162,8 +165,7 @@ namespace FLY.Thick.Base.Client
...
@@ -162,8 +165,7 @@ namespace FLY.Thick.Base.Client
var
p
=
Newtonsoft
.
Json
.
JsonConvert
.
DeserializeObject
<
BORDERSEARCH_OBJ_INTERFACE
.
Pack_Params
>(
json
);
var
p
=
Newtonsoft
.
Json
.
JsonConvert
.
DeserializeObject
<
BORDERSEARCH_OBJ_INTERFACE
.
Pack_Params
>(
json
);
Enable
=
p
.
enable
;
Enable
=
p
.
enable
;
Valid
.
Begin
=
p
.
valid
.
Begin
;
Valid
=
p
.
valid
;
Valid
.
End
=
p
.
valid
.
End
;
TempADBySet
=
p
.
tempADBySet
;
TempADBySet
=
p
.
tempADBySet
;
TempAD
=
p
.
tempad
;
TempAD
=
p
.
tempad
;
TempRange
=
p
.
temprange
;
TempRange
=
p
.
temprange
;
...
@@ -181,12 +183,9 @@ namespace FLY.Thick.Base.Client
...
@@ -181,12 +183,9 @@ namespace FLY.Thick.Base.Client
string
json
=
Misc
.
Converter
.
BytesToString
(
infodata
);
string
json
=
Misc
.
Converter
.
BytesToString
(
infodata
);
var
p
=
Newtonsoft
.
Json
.
JsonConvert
.
DeserializeObject
<
BORDERSEARCH_OBJ_INTERFACE
.
Pack_Result
>(
json
);
var
p
=
Newtonsoft
.
Json
.
JsonConvert
.
DeserializeObject
<
BORDERSEARCH_OBJ_INTERFACE
.
Pack_Result
>(
json
);
Border_Forw
=
p
.
borderForw
;
Border_Backw
=
p
.
borderBackw
;
Border_Forw
.
Begin
=
p
.
borderForw
.
Begin
;
Border
=
p
.
border
;
Border_Forw
.
End
=
p
.
borderForw
.
End
;
Border_Backw
.
Begin
=
p
.
borderBackw
.
Begin
;
Border_Backw
.
End
=
p
.
borderBackw
.
End
;
Width
=
p
.
width
;
Width
=
p
.
width
;
Mid
=
p
.
mid
;
Mid
=
p
.
mid
;
}
break
;
}
break
;
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/IService/IBorderSearchService.cs
View file @
52fa4a1a
...
@@ -24,15 +24,19 @@ namespace FLY.Thick.Base.IService
...
@@ -24,15 +24,19 @@ namespace FLY.Thick.Base.IService
/// <summary>
/// <summary>
/// 有限范围
/// 有限范围
/// </summary>
/// </summary>
Range
Valid
{
get
;
}
Range
Valid
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 反向边界
/// 反向边界
/// </summary>
/// </summary>
Range
Border_Backw
{
get
;
}
Range
Border_Backw
{
get
;
}
/// <summary>
/// <summary>
/// 正向边界
/// 正向边界
/// </summary>
/// </summary>
Range
Border_Forw
{
get
;}
Range
Border_Forw
{
get
;
}
/// <summary>
/// 边界
/// </summary>
Range
Border
{
get
;
}
/// <summary>
/// <summary>
/// 当前膜宽,测量出来的,单位是 脉冲
/// 当前膜宽,测量出来的,单位是 脉冲
/// </summary>
/// </summary>
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/OBJ_INTERFACE/BORDERSEARCH_OBJ_INTERFACE.cs
View file @
52fa4a1a
...
@@ -30,6 +30,7 @@ namespace FLY.Thick.Base.OBJ_INTERFACE
...
@@ -30,6 +30,7 @@ namespace FLY.Thick.Base.OBJ_INTERFACE
{
{
public
Range
borderForw
;
public
Range
borderForw
;
public
Range
borderBackw
;
public
Range
borderBackw
;
public
Range
border
;
public
int
width
;
public
int
width
;
public
int
mid
;
public
int
mid
;
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/Server.OBJProxy/BorderSearch_OBJProxy.cs
View file @
52fa4a1a
...
@@ -144,8 +144,7 @@ namespace FLY.Thick.Base.Server.OBJProxy
...
@@ -144,8 +144,7 @@ namespace FLY.Thick.Base.Server.OBJProxy
var
p
=
Newtonsoft
.
Json
.
JsonConvert
.
DeserializeObject
<
BORDERSEARCH_OBJ_INTERFACE
.
Pack_Params
>(
json
);
var
p
=
Newtonsoft
.
Json
.
JsonConvert
.
DeserializeObject
<
BORDERSEARCH_OBJ_INTERFACE
.
Pack_Params
>(
json
);
mBorderSearch
.
Enable
=
p
.
enable
;
mBorderSearch
.
Enable
=
p
.
enable
;
mBorderSearch
.
Valid
.
Begin
=
p
.
valid
.
Begin
;
mBorderSearch
.
Valid
=
p
.
valid
;
mBorderSearch
.
Valid
.
End
=
p
.
valid
.
End
;
mBorderSearch
.
TempRange
=
p
.
temprange
;
mBorderSearch
.
TempRange
=
p
.
temprange
;
mBorderSearch
.
TempADBySet
=
p
.
tempADBySet
;
mBorderSearch
.
TempADBySet
=
p
.
tempADBySet
;
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/Server/BorderSearch.cs
View file @
52fa4a1a
...
@@ -35,7 +35,8 @@ namespace FLY.Thick.Base.Server
...
@@ -35,7 +35,8 @@ namespace FLY.Thick.Base.Server
/// <summary>
/// <summary>
/// 有限范围
/// 有限范围
/// </summary>
/// </summary>
public
Range
Valid
{
get
;
}
=
new
Range
();
[
PropertyChanged
.
DoNotCheckEquality
]
public
Range
Valid
{
get
;
set
;
}
=
new
Range
();
/// <summary>
/// <summary>
/// 边界
/// 边界
/// </summary>
/// </summary>
...
@@ -45,12 +46,10 @@ namespace FLY.Thick.Base.Server
...
@@ -45,12 +46,10 @@ namespace FLY.Thick.Base.Server
/// </summary>
/// </summary>
public
Range
Border_Backw
{
get
{
return
border
[
1
];
}
}
public
Range
Border_Backw
{
get
{
return
border
[
1
];
}
}
/// <summary>
/// <summary>
/// 膜范围
/// 膜范围
/// </summary>
/// </summary>
public
Range
Border
=
new
Range
();
public
Range
Border
{
get
;
set
;
}
=
new
Range
();
/// <summary>
/// <summary>
/// 当前膜宽,测量出来的,单位是 脉冲
/// 当前膜宽,测量出来的,单位是 脉冲
...
@@ -62,26 +61,21 @@ namespace FLY.Thick.Base.Server
...
@@ -62,26 +61,21 @@ namespace FLY.Thick.Base.Server
/// </summary>
/// </summary>
public
int
Mid
{
get
;
protected
set
;
}
public
int
Mid
{
get
;
protected
set
;
}
/// <summary>
/// <summary>
/// 手动设置温修AD值
/// 手动设置温修AD值
/// </summary>
/// </summary>
public
bool
TempADBySet
{
get
;
set
;
}
public
bool
TempADBySet
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 温修AD值
/// 温修AD值
/// </summary>
/// </summary>
public
int
CurrTempAD
{
get
;
set
;
}
=
50000
;
public
int
CurrTempAD
{
get
;
set
;
}
=
50000
;
/// <summary>
/// <summary>
/// 温修AD值
/// 温修AD值
/// </summary>
/// </summary>
public
int
TempAD
{
get
;
set
;
}
=
50000
;
public
int
TempAD
{
get
;
set
;
}
=
50000
;
/// <summary>
/// <summary>
/// AD超过了范围, 就认为开始找到边界
/// AD超过了范围, 就认为开始找到边界
/// </summary>
/// </summary>
...
@@ -135,9 +129,8 @@ namespace FLY.Thick.Base.Server
...
@@ -135,9 +129,8 @@ namespace FLY.Thick.Base.Server
{
{
Default
();
Default
();
this
.
PropertyChanged
+=
new
PropertyChangedEventHandler
(
BorderSearch_PropertyChanged
);
this
.
PropertyChanged
+=
new
PropertyChangedEventHandler
(
BorderSearch_PropertyChanged
);
this
.
Valid
.
PropertyChanged
+=
new
PropertyChangedEventHandler
(
Valid_PropertyChanged
);
this
.
Border_Forw
.
PropertyChanged
+=
new
PropertyChangedEventHandler
(
Border_Forw_PropertyChanged
);
this
.
Border_Backw
.
PropertyChanged
+=
new
PropertyChangedEventHandler
(
Border_Backw_PropertyChanged
);
}
}
public
BorderSearch
(
string
param_path
)
public
BorderSearch
(
string
param_path
)
...
@@ -146,16 +139,22 @@ namespace FLY.Thick.Base.Server
...
@@ -146,16 +139,22 @@ namespace FLY.Thick.Base.Server
this
.
param_path
=
param_path
;
this
.
param_path
=
param_path
;
Default
();
Default
();
this
.
PropertyChanged
+=
new
PropertyChangedEventHandler
(
BorderSearch_PropertyChanged
);
this
.
PropertyChanged
+=
new
PropertyChangedEventHandler
(
BorderSearch_PropertyChanged
);
this
.
Valid
.
PropertyChanged
+=
new
PropertyChangedEventHandler
(
Valid_PropertyChanged
);
this
.
Border_Forw
.
PropertyChanged
+=
new
PropertyChangedEventHandler
(
Border_Forw_PropertyChanged
);
this
.
Border_Forw
.
PropertyChanged
+=
(
s
,
e
)
=>
{
this
.
Border_Backw
.
PropertyChanged
+=
new
PropertyChangedEventHandler
(
Border_Backw_PropertyChanged
);
NotifyPropertyChanged
(
"Border_Forw"
);
};
this
.
Border_Backw
.
PropertyChanged
+=
(
s
,
e
)
=>
{
NotifyPropertyChanged
(
"Border_Backw"
);
};
this
.
Border
.
PropertyChanged
+=
(
s
,
e
)
=>
{
NotifyPropertyChanged
(
"Border"
);
};
Load
();
Load
();
}
}
void
Default
()
void
Default
()
{
{
Enable
=
false
;
Enable
=
false
;
Valid
.
Begin
=
1200
;
Valid
=
new
Range
()
{
Begin
=
1200
,
End
=
7400
};
Valid
.
End
=
7400
;
Init
();
Init
();
...
@@ -173,20 +172,9 @@ namespace FLY.Thick.Base.Server
...
@@ -173,20 +172,9 @@ namespace FLY.Thick.Base.Server
TempRangePercent
=
500.0
/
50000
;
TempRangePercent
=
500.0
/
50000
;
IsTempRangeByPercent
=
true
;
IsTempRangeByPercent
=
true
;
}
}
void
Border_Backw_PropertyChanged
(
object
sender
,
PropertyChangedEventArgs
e
)
{
NotifyPropertyChanged
(
"Border_Backw"
);
}
void
Border_Forw_PropertyChanged
(
object
sender
,
PropertyChangedEventArgs
e
)
{
NotifyPropertyChanged
(
"Border_Forw"
);
}
void
Valid_PropertyChanged
(
object
sender
,
PropertyChangedEventArgs
e
)
{
NotifyPropertyChanged
(
"Valid"
);
}
void
BorderSearch_PropertyChanged
(
object
sender
,
PropertyChangedEventArgs
e
)
void
BorderSearch_PropertyChanged
(
object
sender
,
PropertyChangedEventArgs
e
)
{
{
...
...
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