public Form1() { InitializeComponent(); this.Vel = 250; //this.timeCounter = 0; this.penduloVO = new PenduloVO(); //this.numericUpDown1.Value = (decimal)this.Vel; }
public ControladorPrincipal() { InitializeComponent(); this.iniciado = false; this.serialPort1 = new SerialPort(); this.serialPort1.DataReceived += this.serialPort1_DataReceived; this.pid = new PID(0, 0, 180, 10, 0.5F, 1, PID.MovementDirection.Direct); this.pid.SetOutputLimits (-100, 100); this.pid.Mode = PID.OperationMode.Auto; this.penduloVO = new PenduloVO(); }