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: TemperatureController.cpp
- Revision:
- 43:0abb54448b75
- Parent:
- 35:c9261391a995
- Child:
- 58:b5f0c0f305ff
--- a/TemperatureController.cpp Wed Jun 15 07:57:16 2016 +0000 +++ b/TemperatureController.cpp Wed Jun 15 09:14:57 2016 +0000 @@ -55,11 +55,9 @@ // Convert average sensor value to value with range 0-5.0v voltage = analogin_value * 3.3f * (5.0f/3.0f); - //voltage /= 5.0; - //voltage *= 1023; + offset = getOffset(voltage); - voltage += offset; // Calcuate R_T