|
Open Garden
0.10.1-21
|
temperature handling functions. More...


Go to the source code of this file.
Macros | |
| #define | T_MEAN_INIT 15 |
| #define | T_RT_INIT -99 |
| #define | DFACTOR_INIT 0 |
| #define | T_MEAN_WS 0.001 |
| #define | T_MEAN_WA 0.999 |
| #define | T_MEAN_RATIO_FULLSUN 5.0 |
| ratio full sun More... | |
| #define | T_MEAN_RATIO_HALFSUN 6.0 |
| ratio half sun | |
| #define | T_MEAN_RATIO_SHADOW 5.0 |
| ratio shadow | |
| #define | T_MEAN_BASE_FULLSUN 24.0 |
| temperature at which time is considered ok | |
| #define | T_MEAN_BASE_HALFSUN 20.0 |
| #define | T_MEAN_BASE_SHADOW 15.0 |
Functions | |
| void | temperature_update (struct programs_t *progs) |
| update the temperature and the arithmetic mean. | |
| void | temperature_print (struct programs_t *progs, struct debug_t *debug) |
| void | temperature_init (void) |
temperature handling functions.
| #define DFACTOR_INIT 0 |
Delay factor initial value.
| #define T_MEAN_BASE_HALFSUN 20.0 |
Mean base hs
| #define T_MEAN_BASE_SHADOW 15.0 |
Mean base sw
| #define T_MEAN_INIT 15 |
Temperature arithmetic mean initial value.
| #define T_MEAN_RATIO_FULLSUN 5.0 |
ratio full sun
The formula is: dfactor = (temperature mean - T_MEAN_BASE)/T_MEAN_RATIO + 1
| #define T_MEAN_WA 0.999 |
Temperature mean weight all.
weigth mean = 1.0 - weight single;
| #define T_MEAN_WS 0.001 |
Weight of a single temperature value for the arithmetic mean.
Used in the rolling arithmetic mean to add a new value with its proper weight.
weight single = 1.0 / total_minutes;
| #define T_RT_INIT -99 |
Safe realtime temperature initial value.
| void temperature_init | ( | void | ) |
initialize the temperature sensor.
| void temperature_print | ( | struct programs_t * | progs, |
| struct debug_t * | debug | ||
| ) |
print the temperature.
1.8.13