Saltware / Mbed 2 deprecated Water Play

Dependencies:   mbed DRV88255 TextLCD Ping mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ProximityController.h Source File

ProximityController.h

00001 #ifndef __PROXIMITYCONTROLLER_H__
00002 #define __PROXIMITYCONTROLLER_H__
00003 
00004 #include "stdio.h"
00005 #include "Ping.h"
00006 #include "mbed.h"
00007 #include "SensorController.h"
00008 #include "settings.h"
00009 
00010 class ProximityController : public SensorController {
00011     public:
00012         ProximityController(bool threaded, int interval_ms) : SensorController(threaded, interval_ms) {printf("Initiate Proximity Controller\r\n");}
00013         
00014         virtual void update();
00015         
00016         virtual float getValue();
00017         
00018         float getDistance();
00019         
00020         virtual std::string getName();
00021         
00022         virtual void setLed(bool);
00023         
00024     private:
00025         float distance;
00026         float volume;
00027 };
00028         
00029 
00030 #endif