Program for the water play project for the course Software Testing Practical 2016 given at the VU University

Dependencies:   mbed DRV88255 TextLCD Ping mbed-rtos

Committer:
sbouber1
Date:
Fri Jun 10 22:21:04 2016 +0000
Revision:
10:fd4670ec0806
Parent:
5:44ce56378b65
Child:
24:eeef4009640d
Child:
25:169672dbab91
Optional threading

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joran 5:44ce56378b65 1 #ifndef __PROXIMITYCONTROLLER_H__
joran 5:44ce56378b65 2 #define __PROXIMITYCONTROLLER_H__
joran 5:44ce56378b65 3
joran 5:44ce56378b65 4 #include "stdio.h"
joran 5:44ce56378b65 5 #include "Ping.h"
joran 5:44ce56378b65 6 #include "mbed.h"
sbouber1 10:fd4670ec0806 7 #include "SensorController.h"
joran 5:44ce56378b65 8
sbouber1 10:fd4670ec0806 9 class ProximityController : public SensorController {
joran 5:44ce56378b65 10 public:
sbouber1 10:fd4670ec0806 11 ProximityController(bool threaded, int interval_ms) : SensorController(threaded, interval_ms) {printf("Initiate Proximity Controller\r\n");}
sbouber1 10:fd4670ec0806 12
sbouber1 10:fd4670ec0806 13 virtual void update();
joran 5:44ce56378b65 14
sbouber1 10:fd4670ec0806 15 virtual float getValue();
sbouber1 10:fd4670ec0806 16
sbouber1 10:fd4670ec0806 17 virtual std::string get_name();
sbouber1 10:fd4670ec0806 18
sbouber1 10:fd4670ec0806 19 private:
sbouber1 10:fd4670ec0806 20 float distance;
joran 5:44ce56378b65 21
joran 5:44ce56378b65 22 };
joran 5:44ce56378b65 23
joran 5:44ce56378b65 24
joran 5:44ce56378b65 25 #endif