Projet s5 - sensors lib

Dependencies:   XBeeLib mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ProcessControl.h Source File

ProcessControl.h

00001 #ifndef PROCESSCONTROL_H
00002 #define PROCESSCONTROL_H
00003 #include "Sensors.h"
00004 #include "mbed.h"
00005 
00006 
00007 struct Config{
00008     double temperatureMin;
00009     double temperatureMax;
00010     double phMin;
00011     double phMax;
00012     double ec;
00013 };
00014 
00015 int getConfig(Config *conf);
00016 void setConfig(Config conf);
00017 
00018 void initSystem();
00019 void drainSystem();
00020 void watering();
00021 void setTargets();
00022 
00023 double getTargetTemperature();
00024 double getTargetPh();
00025 void adjustePh();
00026 double getTargetEc();
00027 void adjustEC();
00028 
00029 #endif