-
Notifications
You must be signed in to change notification settings - Fork 0
/
TimeTables.h
44 lines (40 loc) · 1.48 KB
/
TimeTables.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* Copyright 2017 Stefan Daniel Homfeld, www.stedaho.de */
const long MINUTE = 60;
const long HOUR = 60 * MINUTE;
const float maintenancePercentageValue = 90;
/* Time-value pairs for white channel */
unsigned int valueTableWhite[MAX_VALUES][2] {
{( 7 * HOUR + 50 * MINUTE) / 10, 0},
{( 8 * HOUR + 10 * MINUTE) / 10, 900},
{(13 * HOUR + 30 * MINUTE) / 10, 900},
{(13 * HOUR + 45 * MINUTE) / 10, 50},
{(16 * HOUR + 30 * MINUTE) / 10, 50},
{(16 * HOUR + 45 * MINUTE) / 10, 900},
{(21 * HOUR + 20 * MINUTE) / 10, 900},
{(21 * HOUR + 40 * MINUTE) / 10, 0}
};
/* Time-value pairs for red channel */
unsigned int valueTableRed[MAX_VALUES][2] {
{( 7 * HOUR + 30 * MINUTE) / 10, 0},
{( 7 * HOUR + 50 * MINUTE) / 10, 900},
{(13 * HOUR + 30 * MINUTE) / 10, 900},
{(13 * HOUR + 45 * MINUTE) / 10, 50},
{(16 * HOUR + 30 * MINUTE) / 10, 50},
{(16 * HOUR + 45 * MINUTE) / 10, 900},
{(21 * HOUR + 40 * MINUTE) / 10, 900},
{(22 * HOUR + 0 * MINUTE) / 10, 0}
};
/* Time-value pairs for blue channel */
unsigned int valueTableBlue[MAX_VALUES][2] {
{( 0 * HOUR + 0 * MINUTE) / 10, 0},
{( 8 * HOUR + 10 * MINUTE) / 10, 0},
{( 8 * HOUR + 30 * MINUTE) / 10, 900},
{(13 * HOUR + 30 * MINUTE) / 10, 900},
{(13 * HOUR + 45 * MINUTE) / 10, 50},
{(16 * HOUR + 30 * MINUTE) / 10, 50},
{(16 * HOUR + 45 * MINUTE) / 10, 900},
{(21 * HOUR + 0 * MINUTE) / 10, 900},
{(21 * HOUR + 20 * MINUTE) / 10, 0},
{(21 * HOUR + 59 * MINUTE + 50) / 10, 0},
{(22 * HOUR + 0 * MINUTE) / 10, 30}
};