Exemple #1
0
        /**********************************************************************************************
         * discription: 添加trace method
         *
         *
         ***********************************************************************************************/
        public int AddTraceMethod(ref S_TraceMethod method)
        {
            if (method.id == lastActiveMethod.id)
            {
                method.activeMethod = true;
            }
            else
            {
                method.activeMethod = false;
            }

            traceMethodList.Add(method);
            return(0);
        }
Exemple #2
0
        /**********************************************************************************************
         * discription: 构造函数
         *
         *
         ***********************************************************************************************/
        public TraceSetup()
        {
            xmlDb            = AwDbFactory.CreateDBEngine();
            motorInfo        = new MotorInfo();
            traceMethodList  = new List <S_TraceMethod>();
            lastActiveMethod = new S_TraceMethod();
            platformPoint    = new Coordinate();
            maxPosition      = new MaxMinCoordinate();
            zZeroPoint       = new Coordinate();

            xmlDb.GetMotorInfo(ref motorInfo);
            xmlDb.GetActiveTraceMethod(ref lastActiveMethod);
            xmlDb.GetPlatformPoint(ref platformPoint);
            xmlDb.GetMaxPosition(ref maxPosition);
            xmlDb.GetZZeroPoint(ref zZeroPoint);
            isUpdated = false;
        }