Esempio n. 1
0
        private void SweepEvent(object sender, EventArgs e)
        {
            linTimer.Stop();
            if (toTheLeftToTheLeft)
            {
                linArduino.SweepLeft(scanDistance);
            }
            else
            {
                linArduino.SweepRight(scanDistance);
            }

            sensor.GetLine(numSamplesPerLine);
            //serialPort1.WriteLine("1,11,10");

            toTheLeftToTheLeft = !toTheLeftToTheLeft;

            Console.WriteLine("sweep");
            rotTimer.Start();
        }
Esempio n. 2
0
 private void btnGetLine_Click(object sender, EventArgs e)
 {
     //serialPort1.WriteLine("1,11,10");
     sensor.GetLine(10);
 }