ISimulationDrive.cs 881 Bytes
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FLY.Simulation
{
    public interface ISimulationDrive
    {
        /// <summary>
        /// 当前位置
        /// </summary>
        int Pos { get; }

        /// <summary>
        /// 脉冲复位
        /// </summary>
        void Reset();

        /// <summary>
        /// 停止
        /// </summary>
        void Stop();

        /// <summary>
        /// 归零
        /// </summary>
        void Org();
        /// <summary>
        /// 前进
        /// </summary>
        void Forw();
        /// <summary>
        /// 后退
        /// </summary>
        void Backw();
        /// <summary>
        /// 运行到
        /// </summary>
        /// <param name="dest"></param>
        void Runto(int dest);

        void OnPoll(DateTime now);
        
    }
}