Example #1
0
        public void StartScan()
        {
            currentLine = 0;

            rotTimer.Interval = (sweepTime / 1000) + 150; // 150;
            linTimer.Interval = (rotTime / 1000) + 150;   // + 150;

            Console.WriteLine("Scan " + numLinesPerScan + "x" + numSamplesPerLine + " started aprox ETA: " + ((rotTimer.Interval + linTimer.Interval) * numLinesPerScan / 1000).ToString());

            sensor.SetLightDelay(lightDelay);
            //linArduino.SetStepDelay(linStepDelay);

            homeTimer.Start();

            linArduino.GoHome();
            rotArduino.GoHome();
        }
Example #2
0
 private void rotHome_Click(object sender, EventArgs e)
 {
     rotArduino.GoHome();
 }