Library for the LidarLite, gets distance in cm using the pwm output

Dependents:   LidarLite_test

Fork of MaxbotixDriver by Daniel Casner

Revision:
3:0b1f4404cb21
Parent:
2:be66a4cd86c0
--- a/LidarLitePwm.h	Wed Mar 18 09:17:13 2015 +0000
+++ b/LidarLitePwm.h	Wed Apr 01 11:18:45 2015 +0000
@@ -1,4 +1,5 @@
 #include "mbed.h"
+#include "filter.h"
 
 #ifndef LidarLitePwm_H
 #define LidarLitePwm_H
@@ -12,6 +13,7 @@
     /// Returns range in cm as int
     int read();
     
+    
     /// Returns the range in CM as an int
     operator int();
     
@@ -30,6 +32,8 @@
     int _pulseStartTime;
     /// The most recent sample
     int _range;
+    
+    filter* _lidarFilter;
 };
  
 #endif
\ No newline at end of file