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
Diff: ProximityController.cpp
- Revision:
- 28:f4a4ee58d57e
- Parent:
- 27:4f73f754fdc9
- Child:
- 44:7c932cc5991b
--- a/ProximityController.cpp Tue Jun 14 09:23:29 2016 +0000 +++ b/ProximityController.cpp Tue Jun 14 09:46:31 2016 +0000 @@ -20,7 +20,7 @@ } float ProximityController::getValue() { - this->volume = (this->distance - distance_to_base) * ((100/12) *10); + this->volume = (distance_to_base - this->distance) * ((100/12) *10); return this->volume; }