예제 #1
0
파일: rtc6.cs 프로젝트: li1794/rtclib
        public bool CtlSpeed(double jump, double mark)
        {
            if (this.CtlGetStatus(RtcStatus.Busy))
            {
                return(false);
            }
            double jump_bitperms = jump / (double)1.0e3 * this.kFactor;
            double mark_bitperms = mark / (double)1.0e3 * this.kFactor;

            RTC6Wrap.n_set_jump_speed_ctrl(this.Index + 1, jump_bitperms);
            RTC6Wrap.n_set_mark_speed_ctrl(this.Index + 1, mark_bitperms);
            return(true);
        }