/// <summary> /// 记录左右横拍的数据 /// </summary> /// <param name="trigerSource_e"></param> /// <param name="pos"></param> /// <param name="htResult"></param> /// <returns></returns> public StateComprehensive_enum CalcKeel(int pos, Hashtable htResult) { try { BaseResult result = htResult[CSTMatch3] as BaseResult; if (pos == 1) { //CSTLocation.SetLeftDevEnable(result.DeltaX * AMP); CSTLocation.SetLeftDevEnable((result.X_L[0] - Protocols.CstStdValue.DblValue1) * AMP); } else if (pos == 2) { //CSTLocation.SetRightDevEnable(result.DeltaX * AMP); CSTLocation.SetRightDevEnable((result.X_L[0] - Protocols.CstStdValue.DblValue1) * AMP); } return(DealResult(1, @"龙骨识别成功")); } catch (Exception ex) { Log.L_I.WriteError("DealComprehensiveResult", ex); return(DealResult(2, @"龙骨计算异常")); } }
void ChangeCol() { CSTLocation.SetLeftDevEnable(); CSTLocation.SetRightDevEnable(); ClearTempCom?.Invoke(); }