Mirror actuator for RT2 lab

Dependencies:   FastPWM

Revision:
11:d43f8b421d6d
Parent:
10:bfacffec199a
Child:
13:1bf960928a93
Child:
15:9f32f64eee5b
--- a/main.cpp	Wed Apr 28 08:26:37 2021 +0000
+++ b/main.cpp	Wed Apr 28 12:51:02 2021 +0000
@@ -107,14 +107,13 @@
         current_path = &p1;
         current_path->start(glob_ti.read());
         while(!current_path->finished)
-            wait(.1);
+            ThisThread::sleep_for(100);
         current_path = &p2;
         current_path->start(glob_ti.read());
         while(!current_path->finished)
-            wait(.1);
+            ThisThread::sleep_for(100);
         ThisThread::sleep_for(100);
-          wait(.25);
-         laser_on = !laser_on;
+        laser_on = !laser_on;
         }   // end of while(..)
         i_enable = 0;
     while(1)