From 65faad811883efc4264e3a5ca2c4e64340c198f5 Mon Sep 17 00:00:00 2001 From: wells.liu <wells.liu@broconcentric.com> Date: 星期六, 04 七月 2020 13:02:28 +0800 Subject: [PATCH] 板卡运动 --- src/Bro.Common.Model/Model/MotionCardRelated.cs | 103 +++++++++++++++++++++++++++------------------------ 1 files changed, 54 insertions(+), 49 deletions(-) diff --git a/src/Bro.Common.Model/Model/MotionCardRelated.cs b/src/Bro.Common.Model/Model/MotionCardRelated.cs index 5b4f5ac..a285cdc 100644 --- a/src/Bro.Common.Model/Model/MotionCardRelated.cs +++ b/src/Bro.Common.Model/Model/MotionCardRelated.cs @@ -35,66 +35,66 @@ [Category("鎹㈢畻閰嶇疆")] [DisplayName("鑴夊啿鏁版崲绠楁瘮渚�")] [Description("鑴夊啿鏁板拰鍏朵粬璁¢噺鍗曚綅鐨勬崲绠楁瘮渚嬶紝渚嬪璁剧疆涓�1000锛岃〃绀�1000涓剦鍐茬瓑浜�1uint")] - public int PulseRatio { get; set; } = 1; + public int AxisRatio { get; set; } = 1; - [Category("閫熷害閰嶇疆")] - [DisplayName("榛樿閫熷害鍙傛暟")] - [Description("VelocityPara锛氶粯璁ら�熷害鍙傛暟")] - [TypeConverter(typeof(ComplexObjectConvert))] - [Editor(typeof(PropertyObjectEditor), typeof(UITypeEditor))] - public VelocityPara VelocityPara { get; set; } = new VelocityPara(); + //[Category("閫熷害閰嶇疆")] + //[DisplayName("榛樿閫熷害鍙傛暟")] + //[Description("VelocityPara锛氶粯璁ら�熷害鍙傛暟")] + //[TypeConverter(typeof(ComplexObjectConvert))] + //[Editor(typeof(PropertyObjectEditor), typeof(UITypeEditor))] + //public VelocityPara VelocityPara { get; set; } = new VelocityPara(); - [Category("鍥炲師鐐硅缃�")] - [DisplayName("鍥炲師鐐规ā寮�")] - [Description("HomeMode锛氬洖鍘熺偣妯″紡銆�0锛氫竴鑸ā寮� 1锛氭瀬闄愰檺浣嶆ā寮� 2锛氬閮ㄨЕ鍙戞ā寮�")] - public int HomeMode { get; set; } = 0; + //[Category("鍥炲師鐐硅缃�")] + //[DisplayName("鍥炲師鐐规ā寮�")] + //[Description("HomeMode锛氬洖鍘熺偣妯″紡銆�0锛氫竴鑸ā寮� 1锛氭瀬闄愰檺浣嶆ā寮� 2锛氬閮ㄨЕ鍙戞ā寮�")] + //public int HomeMode { get; set; } = 0; - [Category("鍥炲師鐐硅缃�")] - [DisplayName("鍥炲師鐐规柟鍚�")] - [Description("IsHomePositive锛氬洖鍘熺偣鏂瑰悜銆� true锛氭鏂瑰悜寮�濮� false锛氳礋鏂瑰悜寮�濮�")] - public bool IsHomePositive { get; set; } = true; + //[Category("鍥炲師鐐硅缃�")] + //[DisplayName("鍥炲師鐐规柟鍚�")] + //[Description("IsHomePositive锛氬洖鍘熺偣鏂瑰悜銆� true锛氭鏂瑰悜寮�濮� false锛氳礋鏂瑰悜寮�濮�")] + //public bool IsHomePositive { get; set; } = true; - [Category("鍥炲師鐐硅缃�")] - [DisplayName("鏄惁鑷姩鍥炲師鐐�")] - [Description("IsAutoGoHome锛氭槸鍚﹁嚜鍔ㄥ洖鍘熺偣銆� true锛氭槸 false锛氬惁")] - public bool IsAutoGoHome { get; set; } = false; + //[Category("鍥炲師鐐硅缃�")] + //[DisplayName("鏄惁鑷姩鍥炲師鐐�")] + //[Description("IsAutoGoHome锛氭槸鍚﹁嚜鍔ㄥ洖鍘熺偣銆� true锛氭槸 false锛氬惁")] + //public bool IsAutoGoHome { get; set; } = false; - [Category("瓒呮椂璁剧疆")] - [DisplayName("鍥炲師鐐硅秴鏃�")] - [Description("TimeOutHome锛氬洖鍘熺偣瓒呮椂锛屽崟浣嶆绉�")] - public int TimeOutHome { get; set; } = 30000; + //[Category("瓒呮椂璁剧疆")] + //[DisplayName("鍥炲師鐐硅秴鏃�")] + //[Description("TimeOutHome锛氬洖鍘熺偣瓒呮椂锛屽崟浣嶆绉�")] + //public int TimeOutHome { get; set; } = 30000; - [Category("瓒呮椂璁剧疆")] - [DisplayName("杩愬姩瓒呮椂")] - [Description("TimeOutMove锛氳繍鍔ㄨ秴鏃讹紝鍗曚綅姣")] - public int TimeOutMove { get; set; } = 10000; + //[Category("瓒呮椂璁剧疆")] + //[DisplayName("杩愬姩瓒呮椂")] + //[Description("TimeOutMove锛氳繍鍔ㄨ秴鏃讹紝鍗曚綅姣")] + //public int TimeOutMove { get; set; } = 10000; - [Category("寮�闂幆璁剧疆")] - [DisplayName("鏄惁浣跨敤Cmmd鍥為")] - [Description("IsUseCmmdPosition锛氭槸鍚︿娇鐢–mmd鍥為")] - public bool IsUseCmmdPosition { get; set; } = false; + //[Category("寮�闂幆璁剧疆")] + //[DisplayName("鏄惁浣跨敤Cmmd鍥為")] + //[Description("IsUseCmmdPosition锛氭槸鍚︿娇鐢–mmd鍥為")] + //public bool IsUseCmmdPosition { get; set; } = false; - [Category("寮�闂幆璁剧疆")] - [DisplayName("鏄惁浣跨敤鏉垮崱鍙嶉鍋滄淇″彿")] - [Description("IsUseMDNStopSignal锛氭槸鍚︿娇鐢ㄦ澘鍗″弽棣堝仠姝俊鍙�")] - public bool IsUseMDNStopSignal { get; set; } = false; + //[Category("寮�闂幆璁剧疆")] + //[DisplayName("鏄惁浣跨敤鏉垮崱鍙嶉鍋滄淇″彿")] + //[Description("IsUseMDNStopSignal锛氭槸鍚︿娇鐢ㄦ澘鍗″弽棣堝仠姝俊鍙�")] + //public bool IsUseMDNStopSignal { get; set; } = false; - [Category("寮�闂幆璁剧疆")] - [DisplayName("鏄惁鍚敤鎶ヨ")] - [Description("IsUseWarning锛氭槸鍚﹀惎鐢ㄦ姤璀�")] - public bool IsUseWarning { get; set; } = false; + //[Category("寮�闂幆璁剧疆")] + //[DisplayName("鏄惁鍚敤鎶ヨ")] + //[Description("IsUseWarning锛氭槸鍚﹀惎鐢ㄦ姤璀�")] + //public bool IsUseWarning { get; set; } = false; - [Category("鏆傚仠閰嶇疆")] - [DisplayName("鏄惁鍚敤绔嬪嵆鏆傚仠")] - [Description("IsImmediatePause锛氭槸鍚﹀惎鐢ㄧ珛鍗虫殏鍋�")] - public bool IsImmediatePause { get; set; } = false; + //[Category("鏆傚仠閰嶇疆")] + //[DisplayName("鏄惁鍚敤绔嬪嵆鏆傚仠")] + //[Description("IsImmediatePause锛氭槸鍚﹀惎鐢ㄧ珛鍗虫殏鍋�")] + //public bool IsImmediatePause { get; set; } = false; - [Category("鏆傚仠閰嶇疆")] - [DisplayName("杞翠綅缃浜庡尯闂村唴鏃堕�傜敤鐨勬殏鍋滄搷浣�")] - [Description("ImmediatePauseSections锛氬綋杞翠綅缃浜庡尯闂村唴鏃堕�傜敤鐨勬殏鍋滄搷浣�")] - [TypeConverter(typeof(CollectionCountConvert))] - [Editor(typeof(ComplexCollectionEditor<Section>), typeof(UITypeEditor))] - public List<Section> ImmediatePauseSections { get; set; } = new List<Section>(); + //[Category("鏆傚仠閰嶇疆")] + //[DisplayName("杞翠綅缃浜庡尯闂村唴鏃堕�傜敤鐨勬殏鍋滄搷浣�")] + //[Description("ImmediatePauseSections锛氬綋杞翠綅缃浜庡尯闂村唴鏃堕�傜敤鐨勬殏鍋滄搷浣�")] + //[TypeConverter(typeof(CollectionCountConvert))] + //[Editor(typeof(ComplexCollectionEditor<Section>), typeof(UITypeEditor))] + //public List<Section> ImmediatePauseSections { get; set; } = new List<Section>(); public string GetDisplayText() { @@ -305,6 +305,11 @@ } } + [Category("鏉垮崱杩愬姩閰嶇疆")] + [Description("瓒呮椂璁剧疆锛屽崟浣嶏細ms")] + [DisplayName("杩愬姩瓒呮椂")] + public int MovingTimeout { get; set; } = 0; + internal List<AxisSetting> _axisSettingList = new List<AxisSetting>(); public void SetAxisSetting(List<AxisSetting> settings) { -- Gitblit v1.8.0