Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }