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
c97de660
Commit
c97de660
authored
Nov 30, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基本完成 FlyAd2021 还有线程问题还没考虑
parent
c5ae9e85
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
2531 additions
and
1249 deletions
+2531
-1249
FLYAD7.cs
Project.FLY.FlyADBase/FLY.Simulation.Flyad7/FLYAD7.cs
+6
-0
FlyAD7.cs
Project.FLY.FlyADBase/FlyADBase/FlyAD7.cs
+652
-700
FlyADClientAdv.cs
Project.FLY.FlyADBase/FlyADBase/FlyADClientAdv.cs
+159
-177
IFlyADClient.cs
Project.FLY.FlyADBase/FlyADBase/IFlyADClient.cs
+5
-6
IFlyADClientAdv.cs
Project.FLY.FlyADBase/FlyADBase/IFlyADClientAdv.cs
+18
-15
TimeGridAdvHelper.cs
Project.FLY.FlyADBase/FlyADBase/TimeGridAdvHelper.cs
+182
-37
FlyAd2021.cs
Project.FLY.FlyADBase/FlyAd2021/FlyAd2021.cs
+769
-314
FlyAd2021.csproj
Project.FLY.FlyADBase/FlyAd2021/FlyAd2021.csproj
+8
-0
FlyAd2021Adv.cs
Project.FLY.FlyADBase/FlyAd2021/FlyAd2021Adv.cs
+731
-0
FlyAd2021Core.cs
Project.FLY.FlyADBase/FlyAd2021/FlyAd2021Core.cs
+1
-0
No files found.
Project.FLY.FlyADBase/FLY.Simulation.Flyad7/FLYAD7.cs
View file @
c97de660
...
@@ -872,6 +872,12 @@ namespace FLY.Simulation.Flyad7
...
@@ -872,6 +872,12 @@ namespace FLY.Simulation.Flyad7
}
}
}
}
}
}
/// <summary>
/// 逻辑横向脉冲偏移 Pos1 + Pos1LCShift = Pos1LC
/// </summary>
public
int
Pos2LCShift
{
get
;
set
;
}
private
int
position2
;
private
int
position2
;
/// <summary>
/// <summary>
/// 纵向脉冲,也叫主轴脉冲
/// 纵向脉冲,也叫主轴脉冲
...
...
Project.FLY.FlyADBase/FlyADBase/FlyAD7.cs
View file @
c97de660
This diff is collapsed.
Click to expand it.
Project.FLY.FlyADBase/FlyADBase/FlyADClientAdv.cs
View file @
c97de660
This diff is collapsed.
Click to expand it.
Project.FLY.FlyADBase/FlyADBase/IFlyADClient.cs
View file @
c97de660
...
@@ -55,16 +55,15 @@ namespace FlyADBase
...
@@ -55,16 +55,15 @@ namespace FlyADBase
DateTime
BeResetTime
{
get
;
}
DateTime
BeResetTime
{
get
;
}
/// <summary>
/// <summary>
///
用于同步, 最后一次 纵向信号 0->1 时,主轴脉冲
///
当前在同步状态
/// </summary>
/// </summary>
[
Obsolete
(
"偏移都由电脑计算,不需要AD盒处理"
)]
bool
IsSync
{
get
;
}
int
LastPos2At01
{
get
;
}
/// <summary>
/// <summary>
/// 当前在同步状态
/// 只要connect成功,获取systick被复位,都会从AD盒设备读取参数;
/// 否则, 设置参数 到 AD盒
/// </summary>
/// </summary>
bool
Is
Sync
{
g
et
;
}
bool
Is
ReadParamFromDev
{
get
;
s
et
;
}
/// <summary>
/// <summary>
/// 同步列表,完成后,会删除
/// 同步列表,完成后,会删除
...
...
Project.FLY.FlyADBase/FlyADBase/IFlyADClientAdv.cs
View file @
c97de660
...
@@ -16,12 +16,6 @@ namespace FlyADBase
...
@@ -16,12 +16,6 @@ namespace FlyADBase
/// </summary>
/// </summary>
public
interface
IFlyADClientAdv
:
IFlyADClient
public
interface
IFlyADClientAdv
:
IFlyADClient
{
{
/// <summary>
/// 通过脉冲计算速度,不使用AD盒的输出
/// </summary>
bool
IsCalSpeed
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 机架修正
/// 机架修正
/// </summary>
/// </summary>
...
@@ -37,12 +31,6 @@ namespace FlyADBase
...
@@ -37,12 +31,6 @@ namespace FlyADBase
/// </summary>
/// </summary>
double
Speed1Scale
{
get
;
}
double
Speed1Scale
{
get
;
}
/// <summary>
/// 只要connect成功,获取systick被复位,都会从AD盒设备读取参数;
/// 否则, 设置参数 到 AD盒
/// </summary>
bool
IsReadParamFromDev
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 机架总长
/// 机架总长
/// </summary>
/// </summary>
...
@@ -101,17 +89,32 @@ namespace FlyADBase
...
@@ -101,17 +89,32 @@ namespace FlyADBase
/// </summary>
/// </summary>
bool
IsFinish
{
get
;
}
bool
IsFinish
{
get
;
}
#
region
滞后处理
/// <summary>
/// <summary>
/// ad滞后修正 单位ms
/// ad滞后修正 单位ms
/// </summary>
/// </summary>
int
ADLag
{
get
;
set
;
}
int
ADLag
{
get
;
set
;
}
//一共有1.AD数据池(由timegrid提供) 1min
//2.pos数据池(pos推送提供) 1min
//4.当接收的grid事件数据。它有 (direction, grid_start,grid_len, systick )
//systick 就是结束的时间点。 当AD数据池出现了这个时间点
//pos数据池向前找。 pos 在 grid_start*posOfGrid 范围的数据。
//找到开始的systick 后,整合3个数据池的数据。
//5.最后代替 grid 推送出去。
TimeGridAdvHelper
mTimeGridAdvHelper
{
get
;
}
/// <summary>
/// 动作指令完成,准备推送 timegridadv 事件
/// </summary>
bool
IsTimeToPushTimeGridAdv
{
get
;
}
/// <summary>
/// <summary>
/// 以timegrid 为单位,推送数据
/// 以timegrid 为单位,推送数据
/// </summary>
/// </summary>
event
TimeGridAdv2EventHandler
TimeGridAdv2Event
;
event
TimeGridAdv2EventHandler
TimeGridAdv2Event
;
#
endregion
}
}
/// <summary>
/// <summary>
...
...
Project.FLY.FlyADBase/FlyADBase/TimeGridAdvHelper.cs
View file @
c97de660
This diff is collapsed.
Click to expand it.
Project.FLY.FlyADBase/FlyAd2021/FlyAd2021.cs
View file @
c97de660
This diff is collapsed.
Click to expand it.
Project.FLY.FlyADBase/FlyAd2021/FlyAd2021.csproj
View file @
c97de660
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
<Reference
Include=
"WindowsBase"
/>
<Reference
Include=
"WindowsBase"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Compile
Include=
"FlyAd2021Adv.cs"
/>
<Compile
Include=
"FlyAd2021Comm_SerialPort.cs"
/>
<Compile
Include=
"FlyAd2021Comm_SerialPort.cs"
/>
<Compile
Include=
"FlyAd2021Core.cs"
/>
<Compile
Include=
"FlyAd2021Core.cs"
/>
<Compile
Include=
"FlyAd2021.cs"
/>
<Compile
Include=
"FlyAd2021.cs"
/>
...
@@ -52,6 +53,10 @@
...
@@ -52,6 +53,10 @@
<Compile
Include=
"ProtocolCommon.cs"
/>
<Compile
Include=
"ProtocolCommon.cs"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"..\..\Project.FLY.FObjSys\FObjSys\FObjBase.csproj"
>
<Project>
{ABFE87D4-B692-4AE9-A8C0-1F470B8ACBB8}
</Project>
<Name>
FObjBase
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\..\Project.FLY.Misc\MISC\Misc.csproj"
>
<ProjectReference
Include=
"..\..\Project.FLY.Misc\MISC\Misc.csproj"
>
<Project>
{5ee61ac6-5269-4f0f-b8fa-4334fe4a678f}
</Project>
<Project>
{5ee61ac6-5269-4f0f-b8fa-4334fe4a678f}
</Project>
<Name>
Misc
</Name>
<Name>
Misc
</Name>
...
@@ -62,6 +67,9 @@
...
@@ -62,6 +67,9 @@
</ProjectReference>
</ProjectReference>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<PackageReference
Include=
"AutoMapper"
>
<Version>
10.1.1
</Version>
</PackageReference>
<PackageReference
Include=
"Newtonsoft.Json"
>
<PackageReference
Include=
"Newtonsoft.Json"
>
<Version>
12.0.3
</Version>
<Version>
12.0.3
</Version>
</PackageReference>
</PackageReference>
...
...
Project.FLY.FlyADBase/FlyAd2021/FlyAd2021Adv.cs
0 → 100644
View file @
c97de660
This diff is collapsed.
Click to expand it.
Project.FLY.FlyADBase/FlyAd2021/FlyAd2021Core.cs
View file @
c97de660
...
@@ -91,6 +91,7 @@ namespace FlyAd2021
...
@@ -91,6 +91,7 @@ namespace FlyAd2021
COMMREQ
COMMREQ_RN
;
COMMREQ
COMMREQ_RN
;
public
FlyAd2021Core
()
public
FlyAd2021Core
()
{
{
//COMMREQ_RN 作为事件,会触发一次,作为指令,也会回复一次
COMMREQ_RN
=
new
COMMREQ
(
COMMREQ_Type
.
RN
,
5
,
(
pack
,
dataIdx
)
=>
COMMREQ_RN
=
new
COMMREQ
(
COMMREQ_Type
.
RN
,
5
,
(
pack
,
dataIdx
)
=>
{
{
DRIVE_MAN_STATUS
result
=
(
DRIVE_MAN_STATUS
)
pack
[
dataIdx
];
DRIVE_MAN_STATUS
result
=
(
DRIVE_MAN_STATUS
)
pack
[
dataIdx
];
...
...
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