![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
dd
Dependencies: BufferedSerial FastAnalogIn FastPWM mbed SHT75
Diff: controlt.cpp
- Revision:
- 0:9bfc4aea91e2
- Child:
- 1:5c42ec7f1aeb
diff -r 000000000000 -r 9bfc4aea91e2 controlt.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/controlt.cpp Fri Feb 19 07:07:26 2016 +0000 @@ -0,0 +1,44 @@ +/* + * controlt.cpp + * + * Created on: 2016. 2. 19. + * Author: sbh9428 + */ + +#include "controlt.h" + +control_t::control_t() { + // TODO Auto-generated constructor stub + +} + +control_t::control_t(temp_sensor_t* _temp_sensor, peltier_t* _peltier) +{ + temp_sensor=_temp_sensor; + peltier=_peltier; +} + +control_t::~control_t() { + // TODO Auto-generated destructor stub +} + +float control_t::get_temp() +{ + return temp_sensor->get_temp(); +} + +void control_t::control_PWM(float PWM) +{ + peltier->set_PWM(PWM); +} + +void control_t::control_temp() +{ + + +} + +void control_t::set_mode(int _mode) +{ + mode=_mode; +} \ No newline at end of file