![](/media/cache/profiles/altb_JGUSAOG.jpg.50x50_q85.jpg)
Mirror actuator for RT2 lab
Diff: main.cpp
- Revision:
- 11:d43f8b421d6d
- Parent:
- 10:bfacffec199a
- Child:
- 13:1bf960928a93
- Child:
- 15:9f32f64eee5b
diff -r bfacffec199a -r d43f8b421d6d main.cpp --- 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)