Beispiel #1
0
        /// <summary>
        ///     获取Trap运动参数
        /// </summary>
        /// <param name="nCardNum"></param>
        /// <param name="nAxis">轴号</param>
        /// <param name="acc">加速度</param>
        /// <param name="dec">减速度</param>
        /// <param name="smoothTime"></param>
        /// <returns></returns>
        public override short GetTrapPrm(short nCardNum, short nAxis, out double acc, out double dec,
                                         out short smoothTime)
        {
            short nRtn = 0;

            CMc.TRAP_PRM trapPrm;
            nRtn      |= CMc.GT_GetTrapPrm(nCardNum, nAxis, out trapPrm);
            acc        = trapPrm.m_acc;
            dec        = trapPrm.m_dec;
            smoothTime = trapPrm.m_smoothTime;

            return(nRtn);
        }