Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: rplidar/rplidar.h
- Revision:
- 2:e27733eaa594
- Parent:
- 0:2b691d200d6f
--- 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: