Library for setting up the Parallax X-Band Motion Detector.

Dependents:   Parallax_XBAND_Demo Motion_Detection_Parallax

Revision:
4:efdfdab29a20
Parent:
3:b9e54783e0c5
--- a/Parallax_X-Band.cpp	Sun Mar 08 20:16:31 2015 +0000
+++ b/Parallax_X-Band.cpp	Mon Mar 09 20:16:05 2015 +0000
@@ -33,6 +33,8 @@
 */
 xband::~xband() {}
 
+
+
 /** 
 * Subroutine to enable and disable the detector.
 *
@@ -106,4 +108,13 @@
 bool xband::velocityack()
 {
     return _velocityflag;
+}
+
+/** 
+* Default overload to read velocity.
+*
+* @return Float value of currently measured velocity.
+*/ 
+xband::operator float() {
+    return read_velocity();
 }
\ No newline at end of file