コード例 #1
0
ファイル: RouterPanel.xaml.cs プロジェクト: xiaodelea/FullCNC
        private void refreshTransitionSpeed()
        {
            if (CoordController == null)
            {
                return;
            }

            var speed  = getTransitionSpeed().ToMetric();
            var speeds = PlanBuilder3D.GetPositionRev(_tr_dirX * speed, _tr_dirY * speed, _tr_dirZ * speed);

            CoordController.SetDesiredSpeeds(speeds.U, speeds.V, speeds.X, speeds.Y);
            var builder = _planStreamer;

            if (builder != null)
            {
                builder.SetStreamingCuttingSpeed(getCuttingSpeed());
            }
        }