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
MockSensorController.cpp@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 |
|---|---|---|---|
| sbouber1 | 12:c51f3aba84fe | 1 | #include "MockSensorController.h" |
| sbouber1 | 12:c51f3aba84fe | 2 | |
| sbouber1 | 12:c51f3aba84fe | 3 | void MockSensorController::update() { |
| sbouber1 | 38:930469a33001 | 4 | this->i++; |
| sbouber1 | 12:c51f3aba84fe | 5 | } |
| sbouber1 | 12:c51f3aba84fe | 6 | |
| sbouber1 | 57:8dc3192ff150 | 7 | std::string MockSensorController::getName() { |
| sbouber1 | 12:c51f3aba84fe | 8 | return "MockSensorController"; |
| sbouber1 | 12:c51f3aba84fe | 9 | } |
| sbouber1 | 12:c51f3aba84fe | 10 | |
| sbouber1 | 12:c51f3aba84fe | 11 | float MockSensorController::getValue() { |
| sbouber1 | 13:1323e2c0b697 | 12 | this->sum_t += t.read_ms(); |
| sbouber1 | 13:1323e2c0b697 | 13 | t.reset(); |
| sbouber1 | 38:930469a33001 | 14 | return (*this->func)(i, this->sum_t); |
| joran | 66:133398875949 | 15 | } |
| joran | 66:133398875949 | 16 | |
| joran | 66:133398875949 | 17 | void MockSensorController::setLed(bool value){ |
| joran | 66:133398875949 | 18 | } |
| joran | 66:133398875949 | 19 |