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
ProximityController.h@80:38e274c4dafa, 2016-06-24 (annotated)
- Committer:
- sbouber1
- Date:
- Fri Jun 24 13:51:42 2016 +0000
- Revision:
- 80:38e274c4dafa
- Parent:
- 66:133398875949
final
Who changed what in which revision?
User | Revision | Line number | New 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" |
sbouber1 | 58:b5f0c0f305ff | 8 | #include "settings.h" |
joran | 5:44ce56378b65 | 9 | |
sbouber1 | 10:fd4670ec0806 | 10 | class ProximityController : public SensorController { |
joran | 5:44ce56378b65 | 11 | public: |
sbouber1 | 10:fd4670ec0806 | 12 | ProximityController(bool threaded, int interval_ms) : SensorController(threaded, interval_ms) {printf("Initiate Proximity Controller\r\n");} |
sbouber1 | 10:fd4670ec0806 | 13 | |
sbouber1 | 10:fd4670ec0806 | 14 | virtual void update(); |
joran | 5:44ce56378b65 | 15 | |
sbouber1 | 10:fd4670ec0806 | 16 | virtual float getValue(); |
sbouber1 | 10:fd4670ec0806 | 17 | |
joran | 25:169672dbab91 | 18 | float getDistance(); |
joran | 25:169672dbab91 | 19 | |
sbouber1 | 58:b5f0c0f305ff | 20 | virtual std::string getName(); |
sbouber1 | 10:fd4670ec0806 | 21 | |
joran | 66:133398875949 | 22 | virtual void setLed(bool); |
joran | 66:133398875949 | 23 | |
sbouber1 | 10:fd4670ec0806 | 24 | private: |
sbouber1 | 10:fd4670ec0806 | 25 | float distance; |
joran | 27:4f73f754fdc9 | 26 | float volume; |
joran | 5:44ce56378b65 | 27 | }; |
joran | 5:44ce56378b65 | 28 | |
joran | 5:44ce56378b65 | 29 | |
joran | 5:44ce56378b65 | 30 | #endif |