Ruprecht Altenburger
/
simple_program
Simple program for introduction of mirror actuator.
Diff: main.cpp
- Revision:
- 11:d43f8b421d6d
- Parent:
- 10:bfacffec199a
- Child:
- 13:1bf960928a93
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)