Example of LidarLite library usage. The data from sensor registers is refreshed using refreshRange() / refreshVelocity() / refreshRangeVelocity() functions and measurement data can be read into program using getRange_cm() / getVelocity_cms(). I separated the functions to refresh and report data for ease of upgrade to thread functions.

Dependencies:   LidarLite

Example of LidarLite library usage, picture below shows the setup I used to test the program.

/media/uploads/akashvibhute/lidarlitembed1768.jpg

Files at this revision

API Documentation at this revision

Comitter:
akashvibhute
Date:
Tue Feb 17 12:03:45 2015 +0000
Parent:
0:17002a5fa7bc
Commit message:
v0.1, 17/Feb/2015 - First version of library, tested using LPC1768 [powered via mbed 3.3v, no additional pullups on I2C necessary]

Changed in this revision

LidarLite.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 17002a5fa7bc -r 9c2f6fa9062f LidarLite.lib
--- a/LidarLite.lib	Tue Feb 17 12:01:10 2015 +0000
+++ b/LidarLite.lib	Tue Feb 17 12:03:45 2015 +0000
@@ -1,1 +1,1 @@
-LidarLite#8e6304ab38d2
+http://developer.mbed.org/users/akashvibhute/code/LidarLite/#8e6304ab38d2
diff -r 17002a5fa7bc -r 9c2f6fa9062f main.cpp
--- a/main.cpp	Tue Feb 17 12:01:10 2015 +0000
+++ b/main.cpp	Tue Feb 17 12:03:45 2015 +0000
@@ -1,6 +1,6 @@
 /*
  *  Example of LidarLite library usage. The data from sensor registers is refreshed using refreshRange() / refreshVelocity() / refreshRangeVelocity() functions and 
- *  measurement data can be read into program using getRange_cm() / getVelocity_cms(). I seperated the functions to refresh and report data for ease of upgrade to thread functions.
+ *  measurement data can be read into program using getRange_cm() / getVelocity_cms(). I separated the functions to refresh and report data for ease of upgrade to thread functions.
  *  
  *  Akash Vibhute   < akash . roboticist [at] gmail . com >
  *