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(); }
private void btnGetLine_Click(object sender, EventArgs e) { //serialPort1.WriteLine("1,11,10"); sensor.GetLine(10); }