-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.hjson
187 lines (187 loc) · 3.55 KB
/
config.hjson
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
{
#List of labels of incoming data
"labels":[
"Data",
"Godzina",
"Temperatura RTC",
"Faza lotu",
"Na ziemii",
"W locie",
"Próbkowanie",
"Koniec",
"Wysokość GPS",
"Średnia GPS",
"flaga GPS",
"Wysokość Ciśnienie #1",
"Średnia Wysokość Ciśnienia #1",
"Flaga",
"Wysokość Ciśnienie 42",
"Średnia Wysokość Ciśnienia #1",
"Flaga",
"Cisnienie #1",
"Średnia Ciśnienia #1",
"Temperatura #1",
"flaga",
"Ciśninie #2",
"Średnia Ciśninia #2",
"Temperatura #2",
"flaga",
"Wilgotność #1",
"Temperatura #3",
"Wilgortność #2",
"Temperatura #4",
"", "", "", "",
"Powód zmiany fazy"
],
#Basic information display
"basics":
{
#Do not change name of these!
"Altitude" : 12,
"phase" : 53,
"time" : 1
},
#Data structure for sensors readings display:
"sensors":
{
#Change anything you want but keep the pattern!
"Temperature": {
"names": [
"RTC temp",
"Ext press",
"Int press",
"Ext DHT22",
"Int DHT22",
"Mech DHT22"
# TODO: Add ds18b20??
],
"current": [
2,
6,
10,
24,
21,
27
]
},
"Pressure": {
"name": [
"Internal",
"External"
],
"current": [
8,
4
],
"average": [
9,
5
]
},
"Humidity": {
"names": [
"Ext DHT22",
"Int DHT22",
"Mech DHT22"
],
"current": [
25,
22,
28
]
}
},
#Data structure for mechanisms statuses display:
"mechanisms":
{
#Change anything you want but keep the pattern!
"Valves": {
"name": [
"v1",
"v2",
"v3"
"v4",
"v5",
"v6",
"v7"
],
"status": [
54,
55,
56,
57,
58,
59,
60
]
},
"Pumps": {
"name": [
"p1",
"p2"
],
"control signal": [
50,
51
]
"measured signal": [
61,
62
]
}
},
#Please, keep the pattern and name units exactly the same (except case, because it is case insensitive) as in sensors data structure above!
"units" : {
"temperature" : {
"name" : "Celsius",
"symbol" : "°C"
},
"pressure" : {
"name" : "Pascal",
"symbol" : "Pa"
},
"humidity" : {
"name" : "percent",
"symbol" : "%"
},
"altitude" : {
"name" : "meters",
"symbol" : "m"
}
},
#Please, keep the pattern and name categories exactly the same (except case, because it is case insensitive) as in mechanisms data structure above!
"statuses": {
"valves": [
"opened",
"closed"
],
"pumps": [
"stopped",
"working"
]
},
#Phases of the experiment:
"phases":[
"debug/before flight",
"start phase",
"in flight",
"experiment phase",
"experiment ended"
],
#Which elements to load?
"table" : true,
"charts" : true,
"console" : true,
"buttons" : true,
#What is the maximum size of the table? (0 = unlimited)
"maxSize" : 1000,
#Network configuration:
"UDP_rx": {
"ip" : "192.168.1.100",
"port" : 64341
}
"UDP_tx": {
"ip" : "192.168.1.105",
"port" : 2137
}
}