Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed DRV88255 TextLCD Ping mbed-rtos
TemperatureController.h
- Committer:
- sbouber1
- Date:
- 2016-06-10
- Revision:
- 10:fd4670ec0806
- Parent:
- 9:b3674516729d
- Child:
- 13:1323e2c0b697
File content as of revision 10:fd4670ec0806:
#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();
private:
float temperature;
static float readSensor();
static float analoginToCelsius(float);
static void controlHeater();
static float getOffset(float);
static void displayTemperature();
};
#endif