Open Garden  0.10.1-21
temperature.h
Go to the documentation of this file.
1 /* This file is part of OpenGarden
2  * Copyright (C) 2011, 2012, 2016 Enrico Rossi
3  *
4  * OpenGarden is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * OpenGarden is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
22 #ifndef TEMPERATURE_H
23 #define TEMPERATURE_H
24 
25 #include "ogstruct.h"
26 #include "tcn75.h"
27 #include "debug.h"
28 
30 #define T_MEAN_INIT 15
31 
32 #define T_RT_INIT -99
33 
34 #define DFACTOR_INIT 0
35 
46 #define T_MEAN_WS 0.001
47 
54 #define T_MEAN_WA 0.999
55 
63 #define T_MEAN_RATIO_FULLSUN 5.0
64 
65 #define T_MEAN_RATIO_HALFSUN 6.0
66 
67 #define T_MEAN_RATIO_SHADOW 5.0
68 
69 #define T_MEAN_BASE_FULLSUN 24.0
70 
71 #define T_MEAN_BASE_HALFSUN 20.0
72 
73 #define T_MEAN_BASE_SHADOW 15.0
74 
75 void temperature_update(struct programs_t *progs);
76 void temperature_print(struct programs_t *progs, struct debug_t *debug);
77 void temperature_init(void);
78 
79 #endif
Functions to activare and display (rs232) debug.
void temperature_update(struct programs_t *progs)
update the temperature and the arithmetic mean.
Definition: temperature.c:25
Definition: debug.h:59
void temperature_print(struct programs_t *progs, struct debug_t *debug)
Definition: temperature.c:45
Definition: ogstruct.h:170
structures.
void temperature_init(void)
Definition: temperature.c:65