From 767d0876af17721c3d708a6723112352dff1284f Mon Sep 17 00:00:00 2001
From: wells.liu <wells.liu@broconcentric.com>
Date: 星期一, 29 六月 2020 18:45:10 +0800
Subject: [PATCH] 板卡驱动

---
 src/Bro.Device.GTSCard/GTSCardConfig.cs |   66 ++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 1 deletions(-)

diff --git a/src/Bro.Device.GTSCard/GTSCardConfig.cs b/src/Bro.Device.GTSCard/GTSCardConfig.cs
index de7aad9..e56fd79 100644
--- a/src/Bro.Device.GTSCard/GTSCardConfig.cs
+++ b/src/Bro.Device.GTSCard/GTSCardConfig.cs
@@ -201,7 +201,7 @@
     /// <summary>
     /// 閫熷害鍙傛暟瀵硅薄
     /// </summary>
-    public class VelocityPara 
+    public class VelocityPara
     {
         [Category("閫熷害閰嶇疆")]
         [DisplayName("閫熷害")]
@@ -217,6 +217,54 @@
         [DisplayName("鍑忛�熷害")]
         [Description("鍑忛�熷害,涓�0鏃惰〃绀轰笉淇敼褰撳墠璁剧疆銆傚洖鍘熺偣妯″紡鏃惰缃负鏇茬嚎鍙傛暟")]
         public double Dec { get; set; } = 0;
+    }
+
+    /// <summary>
+    /// 鍥炲師鐐瑰弬鏁板璞�
+    /// </summary>
+    public class GoHomePara
+    {
+        [Category("鍥炲師鐐瑰弬鏁�")]
+        [DisplayName("鍥炲師鐐规柟寮�")]
+        [Description("HomeMode锛氬洖鍘熺偣鏂瑰紡 锛圚OME_MODE_LIMIT = 10; HOME_MODE_LIMIT_HOME = 11; HOME_MODE_LIMIT_INDEX = 12; HOME_MODE_LIMIT_HOME_INDEX = 13;HOME_MODE_HOME = 20;HOME_MODE_HOME_INDEX = 22;HOME_MODE_INDEX = 30;")]
+        public short HomeMode { get; set; } = 11;
+
+        [Category("鍥炲師鐐瑰弬鏁�")]
+        [DisplayName("鍥炲師鐐规柟鍚�")]
+        [Description("HomeDir锛�1 姝e悜锛�-1 璐熷悜")]
+        public short HomeDir { get; set; } = 1;
+
+        [Category("鍥炲師鐐瑰弬鏁�")]
+        [DisplayName("鍥炲師鐐规柟鍚�")]
+        [Description("HomeDir锛�1 姝e悜锛�-1 璐熷悜")]
+        public short Edge { get; set; } = 0;
+
+        [Category("鍥炲師鐐瑰弬鏁�")]
+        [DisplayName("鍥炲師鐐规渶浣庨�熷害")]
+        [Description("LowVelocity锛氶�熷害,涓�0鏃惰〃绀轰笉淇敼褰撳墠璁剧疆")]
+        public double LowVelocity { get; set; } = 50;
+
+
+        [Category("鍥炲師鐐瑰弬鏁�")]
+        [DisplayName("鍥炲師鐐规渶楂橀�熷害")]
+        [Description("HighVelocity锛氶�熷害,涓�0鏃惰〃绀轰笉淇敼褰撳墠璁剧疆")]
+        public double HighVelocity { get; set; } = 50;
+
+        [Category("鍥炲師鐐瑰弬鏁�")]
+        [DisplayName("鎼滄悳璺濈")]
+        [Description("SearchHomeDistance锛氭悳鎼滆窛绂�")]
+        public int SearchHomeDistance { get; set; } = 9999999;
+
+        [Category("鍥炲師鐐瑰弬鏁�")]
+        [DisplayName("鍋忕Щ璺濈")]
+        [Description("HomeOffset锛氬亸绉昏窛绂�")]
+        public int HomeOffset { get; set; } = 0;
+
+        [Category("鍥炲師鐐瑰弬鏁�")]
+        [DisplayName("璺宠繃姝ラ暱")]
+        [Description("EscapeStep锛氳烦杩囨闀�")]
+        public int EscapeStep { get; set; } = 1000;
+
     }
 
     /// <summary>
@@ -316,6 +364,22 @@
             }
         }
 
+        private GoHomePara goHomePara = new GoHomePara();
+        [Category("杩愬姩閰嶇疆")]
+        [DisplayName("鍥炲師鐐瑰弬鏁�")]
+        [Description("GoHomePara锛氶�熷害鍙傛暟")]
+        [TypeConverter(typeof(ComplexObjectConvert))]
+        [Editor(typeof(PropertyObjectEditor), typeof(UITypeEditor))]
+        public GoHomePara GoHomePara
+        {
+            get => goHomePara;
+            set
+            {
+                goHomePara = value;
+                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("GoHomePara"));
+            }
+        }
+
         internal List<AxisSetting> _axisSettingList = new List<AxisSetting>();
         public void SetAxisSetting(List<AxisSetting> settings)
         {

--
Gitblit v1.8.0