PRO2_Team 1_collected code with ticker and headers_not working yet
Fork of PRO2_samlet_kode by
compare.h@11:3ff48fb0aa0b, 2017-06-20 (annotated)
- Committer:
- OlgaHoeyer
- Date:
- Tue Jun 20 12:18:09 2017 +0000
- Revision:
- 11:3ff48fb0aa0b
- Parent:
- 6:12f1849aad21
with pointers
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
OlgaHoeyer | 6:12f1849aad21 | 1 | /* |
OlgaHoeyer | 6:12f1849aad21 | 2 | ------------------------------------------------------------------------------- |
OlgaHoeyer | 6:12f1849aad21 | 3 | -- Project: PRO2 "Awareness and Optimisation of energy consumption" |
OlgaHoeyer | 6:12f1849aad21 | 4 | -- Team: Team 1 |
OlgaHoeyer | 6:12f1849aad21 | 5 | |
OlgaHoeyer | 6:12f1849aad21 | 6 | -- File Name: compare.h |
OlgaHoeyer | 6:12f1849aad21 | 7 | -- Author: Olga Hoeyer |
OlgaHoeyer | 6:12f1849aad21 | 8 | -- Date: 18/05-2017 |
OlgaHoeyer | 6:12f1849aad21 | 9 | -- Copyright: Open to all |
OlgaHoeyer | 6:12f1849aad21 | 10 | -- Version: 2.0 - .cpp and .h files are created. |
OlgaHoeyer | 6:12f1849aad21 | 11 | -- |
OlgaHoeyer | 6:12f1849aad21 | 12 | -- Description: Analysis part for EDE PRO2 Team 1. |
OlgaHoeyer | 6:12f1849aad21 | 13 | -- Program takes temperature and humidity as arguments |
OlgaHoeyer | 6:12f1849aad21 | 14 | -- (read from sensors), together with lower and higher limit |
OlgaHoeyer | 6:12f1849aad21 | 15 | -- on temperature and evaluate air quality. |
OlgaHoeyer | 6:12f1849aad21 | 16 | -- Output is status (int, from 1 to 5). |
OlgaHoeyer | 6:12f1849aad21 | 17 | -- |
OlgaHoeyer | 11:3ff48fb0aa0b | 18 | -- Usage: Compare_values (hum, temp, |
OlgaHoeyer | 11:3ff48fb0aa0b | 19 | -- temperature_low, temperature_high) |
OlgaHoeyer | 6:12f1849aad21 | 20 | ------------------------------------------------------------------------------- |
OlgaHoeyer | 6:12f1849aad21 | 21 | */ |
OlgaHoeyer | 6:12f1849aad21 | 22 | |
OlgaHoeyer | 1:135bd458e39e | 23 | |
OlgaHoeyer | 1:135bd458e39e | 24 | int Compare_values(float hum, float temp, |
OlgaHoeyer | 1:135bd458e39e | 25 | int temperature_low, int temperature_high); |