sra-romi

Dependencies:   BufferedSerial Matrix

Revision:
2:e27733eaa594
Parent:
0:2b691d200d6f
diff -r dc87724abce8 -r e27733eaa594 rplidar/rplidar.h
--- a/rplidar/rplidar.h	Thu Apr 11 09:51:28 2019 +0000
+++ b/rplidar/rplidar.h	Thu Apr 11 13:24:08 2019 +0000
@@ -99,9 +99,13 @@
     
      //Thread *thread_p;
     Thread thread;
-    Mail<struct RPLidarMeasurement, 100> mail_box; //
+    //Mail<struct RPLidarMeasurement, 100> mail_box; //
+    Mutex mutex_measurements;
     bool useThread;
     
+    struct RPLidarMeasurement currentMeasurement_fromThread;
+    bool newMeasurement;
+    
     u_result pollPoint();
     //Serial *pc;
 protected: