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
TemperatureController.h
- Committer:
- sbouber1
- Date:
- 2016-06-11
- Revision:
- 13:1323e2c0b697
- Parent:
- 10:fd4670ec0806
- Child:
- 35:c9261391a995
File content as of revision 13:1323e2c0b697:
#ifndef __TEMPERATURECONTROLLER_H__ #define __TEMPERATURECONTROLLER_H__ #include "mbed.h" #include "stdio.h" #include "SensorController.h" #define N 50 class TemperatureController : public SensorController { public: TemperatureController(bool threaded, int interval_ms) : SensorController(threaded, interval_ms) {printf("Initiate Temperature Controller\r\n");} virtual float getValue(); virtual void update(); virtual std::string get_name(); bool is_heating(); void set_heating(bool enabled); private: float temperature; bool heating; static float readSensor(); static float analoginToCelsius(float); void controlHeater(); static float getOffset(float); static void displayTemperature(); }; #endif