Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            DisplayBuffer = new Bitmap(1260, 350);
            DisplayBufferG = Graphics.FromImage(DisplayBuffer);
            DisplayBufferG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            LabelDisplayG = labelDisplay.CreateGraphics();
            LabelDisplayG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;

            StatusBuffer = new Bitmap(950, 170);
            StatusBufferG = Graphics.FromImage(StatusBuffer);
            //StatusBufferG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            LabelStatusG = labelStatus.CreateGraphics();
            LabelStatus2G = labelStatus2.CreateGraphics();
            //LabelStatusG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;

            CPGBuffer = new Bitmap(300, 240);
            CPGBufferG = Graphics.FromImage(CPGBuffer);
            CPGBufferG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            LabelCPGG = labelCPG.CreateGraphics();
            LabelCPGG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;

            NewBipedal5Link();
            NewCentralPatternGenerator();
            C1 = Color.FromArgb(35, 22, 0);
            F1 = new Font("Arial", 8);

            PiOverTwo = Math.PI / 2;

            Hardware = new Bipedal5Link.ServoController("COM1");
        }
Exemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            DisplayBuffer  = new Bitmap(1260, 350);
            DisplayBufferG = Graphics.FromImage(DisplayBuffer);
            DisplayBufferG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            LabelDisplayG = labelDisplay.CreateGraphics();
            LabelDisplayG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;

            StatusBuffer  = new Bitmap(950, 170);
            StatusBufferG = Graphics.FromImage(StatusBuffer);
            //StatusBufferG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            LabelStatusG  = labelStatus.CreateGraphics();
            LabelStatus2G = labelStatus2.CreateGraphics();
            //LabelStatusG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;

            CPGBuffer  = new Bitmap(300, 240);
            CPGBufferG = Graphics.FromImage(CPGBuffer);
            CPGBufferG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            LabelCPGG = labelCPG.CreateGraphics();
            LabelCPGG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;

            NewBipedal5Link();
            NewCentralPatternGenerator();
            C1 = Color.FromArgb(35, 22, 0);
            F1 = new Font("Arial", 8);

            PiOverTwo = Math.PI / 2;

            Hardware = new Bipedal5Link.ServoController("COM1");
        }
Exemplo n.º 3
0
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     S = new Bipedal5Link.ServoController("COM1");
     S.Start();
 }
Exemplo n.º 4
0
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     S = new Bipedal5Link.ServoController("COM1");
     S.Start();
 }