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
8cc9a3d7
Commit
8cc9a3d7
authored
Jul 26, 2023
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 边界查找,AD曲线,的默认参数
parent
038603a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
20 deletions
+8
-20
BorderSearch.cs
Project.FLY.Thick.Base/FLY.Thick.Base/Server/BorderSearch.cs
+1
-1
CurveCollection.cs
...t.FLY.Thick.Base/FLY.Thick.Base/Server/CurveCollection.cs
+7
-19
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base/Server/BorderSearch.cs
View file @
8cc9a3d7
...
...
@@ -257,7 +257,7 @@ namespace FLY.Thick.Base.Server
}
void
Default
()
{
Enable
=
fals
e
;
Enable
=
tru
e
;
Valid
=
new
RangeStruct
(
1200
,
7400
);
TempAD
=
-
1
;
N
=
20
;
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/Server/CurveCollection.cs
View file @
8cc9a3d7
...
...
@@ -70,18 +70,6 @@ namespace FLY.Thick.Base.Server
{
CorrectWay
=
CurveCorrectWay
.
OnePointIsScale
;
Flag
=
CurveType
.
E
;
//Curves = new CurveCell[] {
// new CurveCell() { AD = 57564, Value = 0 },
// new CurveCell() { AD = 30850, Value = 88 },
// new CurveCell() { AD = 19000, Value = 176 },
// new CurveCell() { AD = 12528, Value = 264 },
// new CurveCell() { AD = 8409, Value = 352 },
// new CurveCell() { AD = 5650, Value = 440 },
// new CurveCell() { AD = 3779, Value = 528 },
// new CurveCell() { AD = 2513, Value = 616 },
// new CurveCell() { AD = 1660, Value = 704 }
//};
Curves
=
new
CurveCell
[]
{
new
CurveCell
()
{
Value
=
0
,
AD
=
50300
},
new
CurveCell
()
{
Value
=
19
,
AD
=
46505
},
...
...
@@ -99,8 +87,7 @@ namespace FLY.Thick.Base.Server
new
CurveCell
()
{
Value
=
251
,
AD
=
18606
},
new
CurveCell
()
{
Value
=
271
,
AD
=
17283
},
new
CurveCell
()
{
Value
=
290
,
AD
=
16035
}
};
};
}
public
void
Apply
(
CurveCorrectWay
correctWay
,
CurveType
flag
,
CurveCell2
[]
curves
)
{
...
...
@@ -275,8 +262,8 @@ namespace FLY.Thick.Base.Server
return
value
;
}
double
AD2Value_Line
(
int
ad
,
AD2ValueFlag
flag
)
{
int
i
;
...
...
@@ -357,7 +344,7 @@ namespace FLY.Thick.Base.Server
value
=
(
ad2
-
ad0
)
*
u
+
c0
.
Value
;
return
value
;
}
public
double
AD2Value
(
int
ad
,
AD2ValueFlag
flag
)
{
...
...
@@ -382,7 +369,8 @@ namespace FLY.Thick.Base.Server
/// <param name="value"></param>
/// <param name="flag"></param>
/// <returns></returns>
public
int
Value2Ad
(
double
value
,
AD2ValueFlag
flag
)
{
public
int
Value2Ad
(
double
value
,
AD2ValueFlag
flag
)
{
int
ad
;
switch
(
Flag
)
{
...
...
@@ -473,7 +461,7 @@ namespace FLY.Thick.Base.Server
ad
=
(
int
)
Math
.
Round
(
ad2
);
return
ad
;
}
#
endregion
...
...
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