Library for setting up the Parallax X-Band Motion Detector.
Dependents: Parallax_XBAND_Demo Motion_Detection_Parallax
Diff: Parallax_X-Band.h
- Revision:
- 4:efdfdab29a20
- Parent:
- 3:b9e54783e0c5
- Child:
- 5:9cfc7b541791
diff -r b9e54783e0c5 -r efdfdab29a20 Parallax_X-Band.h --- a/Parallax_X-Band.h Sun Mar 08 20:16:31 2015 +0000 +++ b/Parallax_X-Band.h Mon Mar 09 20:16:05 2015 +0000 @@ -55,6 +55,13 @@ */ float read_velocity(); + /** + * Default overload to read velocity. + * + * @return Float value of currently measured velocity. + */ + operator float(); + private: /** * Interrupt service routine to collect data on the input pin.