示例#1
0
文件: Commands.cs 项目: zimhe/Robots
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            int    DO     = 0;
            double length = 0;

            if (!DA.GetData(0, ref DO))
            {
                return;
            }
            if (!DA.GetData(1, ref length))
            {
                return;
            }

            var command = new Robots.Commands.PulseDO(DO, length);

            DA.SetData(0, new GH_Command(command));
        }
示例#2
0
文件: Commands.cs 项目: visose/Robots
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            int DO = 0;
            double length = 0;

            if (!DA.GetData(0, ref DO)) return;
            if (!DA.GetData(1, ref length)) return;

            var command = new Robots.Commands.PulseDO(DO, length);
            DA.SetData(0, new GH_Command(command));
        }