Blame view

simulators/config/grammar.json 12.5 KB
6a1a30ed   carens_p   grammar for instr...
1
2
3
4
{
	"Telescope" : {
		"set": [
			{
ea6c3ccc   aklotz   Nouveau format de...
5
6
7
8
				"name": "COORD_RADEC",
				"label": "Upload R.A., Dec. to the mount",
				"input_label": [
					{
10942b87   aklotz   J'ai complété le ...
9
10
11
						"R.A.":[15, "Angle", "Right Ascension"], 
						"Dec.":[15, "Angle", "Declination"],
						"Equ.":[15, "Date", "Equinox"]
ea6c3ccc   aklotz   Nouveau format de...
12
13
					}
				],
10942b87   aklotz   J'ai complété le ...
14
				"help": "Upload R.A., Dec. to the mount. Use TELESCOPE DO START to slew the mount. Angle stands for various angle formats (12:05:17.3, 12 05 17.3, 12h05m17.3s, 181.322083333). Date stands for various date formats (J2000, 2025-06-21T00:00:00)"
ea6c3ccc   aklotz   Nouveau format de...
15
16
17
18
19
20
			},
			{
				"name": "COORD_HADEC",
				"label": "Upload apparent hour angle declination to the mount",
				"input_label": [
					{
10942b87   aklotz   J'ai complété le ...
21
22
						"H.A.":[15, "Angle", "Hour angle"],
						"Dec.":[15, "Angle", "Declination"]
ea6c3ccc   aklotz   Nouveau format de...
23
24
					}
				],
10942b87   aklotz   J'ai complété le ...
25
				"help": "Upload H.A., Dec. to the mount. Use TELESCOPE DO START to slew the mount. Angle stands for various angle formats (12:05:17.3, 12 05 17.3, 12h05m17.3s, 181.322083333)."
ea6c3ccc   aklotz   Nouveau format de...
26
27
28
			},
			{
				"name": "COORD_ALTAZ",
10942b87   aklotz   J'ai complété le ...
29
				"label": "Upload apparent azimuth and elevation to the mount",
ea6c3ccc   aklotz   Nouveau format de...
30
31
				"input_label": [
					{
10942b87   aklotz   J'ai complété le ...
32
33
						"Az.":[15, "Angle", "Azimuth"],
						"Elev.":[15, "Angle", "Elevation"]
ea6c3ccc   aklotz   Nouveau format de...
34
35
36
					}
				],
				"help": "Upload Az., elev. to the mount. Azimuth=0 at South. Use TELESCOPE DO START to slew the mount."
10942b87   aklotz   J'ai complété le ...
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
			},
			{
				"name": "DRIFT_HADEC",
				"label": "Upload the drift motion parameters after slewing to the mount",
				"input_label": [
					{
						"dH.A.":[15, "deg/sec", "Hour angle velocity"],
						"dDec.":[15, "deg/sec", "Declination velocity"]
					}
				],
				"help": "Upload H.A., Dec. to the mount. Put dH.A. = diurnal for a diurnal drift. Use TELESCOPE DO DRIFT_ON to drift the mount."
			},
			{
				"name": "ROTATOR_ANGLE",
				"label": "Set the value angle of the next rotation",
				"input_label": [
					{
						"Parallactic angle":[15, "degrees", "Parallactic angle"]
					}
				],
				"help": "Set the value angle of the next rotation. Use TELESCOPE DO ROTATOR_GOTO to slew the rotator."
6a1a30ed   carens_p   grammar for instr...
58
			}
6a1a30ed   carens_p   grammar for instr...
59
		],
ea6c3ccc   aklotz   Nouveau format de...
60
		"get": [
6a1a30ed   carens_p   grammar for instr...
61
			{
10942b87   aklotz   J'ai complété le ...
62
63
64
65
66
67
				"name": "INFORMATIONS",
				"label": "Return information from the mounts",
				"input_label": [],
				"help": "Return information from the mounts."
			},
			{
ea6c3ccc   aklotz   Nouveau format de...
68
				"name": "COORD_RADEC",
10942b87   aklotz   J'ai complété le ...
69
70
71
72
73
74
75
				"label": "Download R.A., Dec. from the mount",
				"input_label": [],
				"help": "Download R.A., Dec. from the mount."
			},
			{
				"name": "COORD_HADEC",
				"label": "Download R.A., Dec. from the mount",
ea6c3ccc   aklotz   Nouveau format de...
76
				"input_label": [],
10942b87   aklotz   J'ai complété le ...
77
78
79
80
81
82
83
				"help": "Download R.A., Dec. from the mount."
			},
			{
				"name": "COORD_ALTAZ",
				"label": "Download Azimuth and elevation from the mount",
				"input_label": [],
				"help": "Download Azimuth and elevation from the mount."
6a1a30ed   carens_p   grammar for instr...
84
			}
0440c973   Quentin Durand   correct typos
85
		],
ea6c3ccc   aklotz   Nouveau format de...
86
		"do": [
6a1a30ed   carens_p   grammar for instr...
87
			{
10942b87   aklotz   J'ai complété le ...
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
				"name": "EVAL",
				"label": "Evaluate a native command of the mount",
				"input_label": [],
				"help": "Evaluate a native command of the mount."
			},
			{
				"name": "HOMING",
				"label": "Homing of the mount",
				"input_label": [],
				"help": "Initialize the encoders."
			},
			{
				"name": "ZENITH",
				"label": "Slew the mount to the zenith",
				"input_label": [],
				"help": "Slew the mount to the zenith."
			},
			{
				"name": "GOTO",
				"label": "Start the slew of the mount",
ea6c3ccc   aklotz   Nouveau format de...
108
				"input_label": [],
0440c973   Quentin Durand   correct typos
109
				"help": "Start the slew of the mount."
10942b87   aklotz   J'ai complété le ...
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
			},
			{
				"name": "STOP",
				"label": "Stop the motions of the mount",
				"input_label": [],
				"help": "Stop the motions of the mount."
			},
			{
				"name": "DRIFT_ON",
				"label": "Switch on drifts of the mount",
				"input_label": [],
				"help": "Switch on drifts of the mount."
			},
			{
				"name": "DRIFT_OFF",
				"label": "Switch off drifts of the mount",
				"input_label": [],
				"help": "Switch off drifts of the mount."
			},
			{
				"name": "ROTATOR_GOTO",
				"label": "Start the rotator motion",
				"input_label": [],
				"help": "Start the rotator motion."
5ef527cf   Quentin Durand   update grammar.json
134
135
136
137
138
139
140
141
142
143
144
			},
			{
				"name": "DOME SHUTTER OPEN",
				"label": "Open the dome shutter",
				"input_label": [],
				"help": "Open the dome shutter."
			},
			{
				"name": "DOME SHUTTER CLOSE",
				"label": "Close the dome shutter",
				"input_label": [],
d3faf327   Quentin Durand   Command control D...
145
				"help": "Close the dome shutter"
5ef527cf   Quentin Durand   update grammar.json
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
			},
			{
				"name": "DOME PARK",
				"label": "Park the dome shutter",
				"input_label": [],
				"help": "Park the dome shutter"
			},
			{
				"name": "TELESCOPE PARK",
				"label": "Park the Telescope",
				"input_label": [],
				"help": "Park the Telescope"
			},
			{
				"name": "START",
				"label": "Start the Telescope",
				"input_label": [],
				"help": "Start the Telescope"
6a1a30ed   carens_p   grammar for instr...
164
			}
5ef527cf   Quentin Durand   update grammar.json
165

ea6c3ccc   aklotz   Nouveau format de...
166
		]
d3faf327   Quentin Durand   Command control D...
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
	},
	"CameraVIS" : {
		"set": [
			{
				"name": "WINDOW",
				"label": "Set the window coordinates",
				"input_label": [
					{
						"x1":[10, "Int", "x left bottom"],
						"x2":[10, "Int", "y left bottom"],
						"y1":[10, "Int", "x right top corner"],
						"y2":[10, "Int", "y right top corner"]
					}
				],
				"help": "Coordinates of window corners (left bot, right top)"
			},
			{
				"name": "READMODE [MODE 1]",
				"label": "Set Mode of observation (ramp, ...)",
				"input_label": [],
				"help": "Set the Mode of observation (ramp, ...)"
			},
			{
				"name": "READMODE [MODE 2]",
				"label": "Set Mode of observation (ramp, ...)",
				"input_label": [],
				"help": "Set the Mode of observation (ramp, ...)"
			},
			{
				"name": "READMODE [MODE 3]",
				"label": "Set Mode of observation (ramp, ...)",
				"input_label": [],
				"help": "Set the Mode of observation (ramp, ...)"
			},
			{
				"name": "FILENAME",
				"label": "Change the used file",
				"input_label": [
					{
						"filename" : [256, "Str", "filename"]
					}
				],
				"help": "Optional, not wanting default file name (reset between each image)"
			},
			{
				"name": "HEADER",
				"label": "Set particular values in the header",
				"input_label": [
					{
						"header values" : [1024, "Str (dict)", "header values"]
					}
				],
				"help": "Set particular values in the header"
			},
			{
				"name": "READOUT_FREQUENCY",
				"label": "Readout frequency in pix/s (~= Hz)",
				"input_label": [
					{
						"readout freq" : [15, "Float", "readout freq pix/s ~= Hz"]
					}
				],
				"help": "Readout frequency in pix/s (~= Hz)"
			},
			{
				"name": "FILTER [FILTER 1]",
				"label": "Change the wanted filter",
				"input_label": [],
				"help": "Change the wanted filter"
			},
			{
				"name": "FILTER [FILTER 2]",
				"label": "Change the wanted filter",
				"input_label": [],
				"help": "Change the wanted filter"
			},
			{
				"name": "FILTER [FILTER 3]",
				"label": "Change the wanted filter",
				"input_label": [],
				"help": "Change the wanted filter"
bd83eb17   Quentin Durand   Control command C...
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
			},
			{
				"name": "EXPOSURE",
				"label": "Exposure time for 1 image in seconds",
				"input_label": [
					{
						"exposure" : [15, "Int", "Exposure time"]
					}
				],
				"help": "Exposure time for 1 image in seconds"
			},
			{
				"name": "BINNING",
				"label": "Binning of cells",
				"input_label": [
					{
						"binning" : [15, "Int", "Binning"]
					}
				],
				"help": "Set the Binning of cells."
			}
		],
		"get": [
			{
				"name": "STATUS",
				"label": "Get camera status values (dict)",
				"input_label": [],
				"help": "Get camera status values (dict): struct(key, value, type, unit, comment)"
			},
			{
				"name": "SETUP",
				"label": "Get static values for config (dict)",
				"input_label": [],
				"help": "Get static values for config (eg. limit speed)"
			},
			{
				"name": "TIMER",
				"label": "Get the ime before end of pose",
				"input_label": [],
				"help": "Time before end of pose (-1 == idle / finished, 0 == readout (recup-ing img))"
			}

		],
		"do": [
			{
				"name": "COOLER ON",
				"label": "Turn On the cooler with the given temperature",
				"input_label": [
					{
						"temp":[15, "Float", "temperature"]
					}
				],
				"help": "Turn On the cooler with the given temperature."
			},
			{
				"name": "COOLER OFF",
				"label": "Turn off the cooler",
				"input_label": [],
				"help": "Turn off the cooler."
			},
			{
				"name": "DOME SHUTTER OPEN",
				"label": "Open the dome shutter",
				"input_label": [],
				"help": "Open the dome shutter."
			},
			{
				"name": "DOME SHUTTER CLOSE",
				"label": "Close the dome shutter",
				"input_label": [],
				"help": "Close the dome shutter"
			},
			{
				"name": "DOME SHUTTER SYNCHRO",
				"label": "Dome Shutter Synchro",
				"input_label": [],
				"help": "Dome Shutter Synchro"
			},
			{
				"name": "START",
				"label": "Start Pose",
				"input_label": [],
				"help": "Start Pose"
			},
			{
				"name": "ABORT",
				"label": "Stop Pose",
				"input_label": [],
				"help": "Stop Pose"
			},
			{
				"name": "STOP",
				"label": "End image then stop pose",
				"input_label": [],
				"help": "End image then stop pose"
			}

		]


	},
	"CameraNIR" : {
		"set": [
			{
				"name": "WINDOW",
				"label": "Set the window coordinates",
				"input_label": [
					{
						"x1":[10, "Int", "x left bottom"],
						"x2":[10, "Int", "y left bottom"],
						"y1":[10, "Int", "x right top corner"],
						"y2":[10, "Int", "y right top corner"]
					}
				],
				"help": "Coordinates of window corners (left bot, right top)"
			},
			{
				"name": "READMODE [MODE 1]",
				"label": "Set Mode of observation (ramp, ...)",
				"input_label": [],
				"help": "Set the Mode of observation (ramp, ...)"
			},
			{
				"name": "READMODE [MODE 2]",
				"label": "Set Mode of observation (ramp, ...)",
				"input_label": [],
				"help": "Set the Mode of observation (ramp, ...)"
			},
			{
				"name": "READMODE [MODE 3]",
				"label": "Set Mode of observation (ramp, ...)",
				"input_label": [],
				"help": "Set the Mode of observation (ramp, ...)"
			},
			{
				"name": "FILENAME",
				"label": "Change the used file",
				"input_label": [
					{
						"filename" : [256, "Str", "filename"]
					}
				],
				"help": "Optional, not wanting default file name (reset between each image)"
			},
			{
				"name": "HEADER",
				"label": "Set particular values in the header",
				"input_label": [
					{
						"header values" : [1024, "Str (dict)", "header values"]
					}
				],
				"help": "Set particular values in the header"
			},
			{
				"name": "READOUT_FREQUENCY",
				"label": "Readout frequency in pix/s (~= Hz)",
				"input_label": [
					{
						"readout freq" : [15, "Float", "readout freq pix/s ~= Hz"]
					}
				],
				"help": "Readout frequency in pix/s (~= Hz)"
			},
			{
				"name": "FILTER [FILTER 1]",
				"label": "Change the wanted filter",
				"input_label": [],
				"help": "Change the wanted filter"
			},
			{
				"name": "FILTER [FILTER 2]",
				"label": "Change the wanted filter",
				"input_label": [],
				"help": "Change the wanted filter"
			},
			{
				"name": "FILTER [FILTER 3]",
				"label": "Change the wanted filter",
				"input_label": [],
				"help": "Change the wanted filter"
			},
			{
				"name": "NB_IMAGES",
				"label": "Number of images in the ramp (x1.4s)",
				"input_label": [
					{
						"nb_imgs" : [15, "Int", "nb images"]
					}
				],
				"help": "Set the number of images in the ramp (x1.4s)"
d3faf327   Quentin Durand   Command control D...
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
			}
		],
		"get": [
			{
				"name": "STATUS",
				"label": "Get camera status values (dict)",
				"input_label": [],
				"help": "Get camera status values (dict): struct(key, value, type, unit, comment)"
			},
			{
				"name": "SETUP",
				"label": "Get static values for config (dict)",
				"input_label": [],
				"help": "Get static values for config (eg. limit speed)"
			},
			{
				"name": "TIMER",
				"label": "Get the ime before end of pose",
				"input_label": [],
				"help": "Time before end of pose (-1 == idle / finished, 0 == readout (recup-ing img))"
			}

		],
		"do": [
			{
				"name": "COOLER ON",
				"label": "Turn On the cooler with the given temperature",
				"input_label": [
					{
						"temp":[15, "Float", "temperature"]
					}
				],
				"help": "Turn On the cooler with the given temperature."
			},
			{
				"name": "COOLER OFF",
				"label": "Turn off the cooler",
				"input_label": [],
				"help": "Turn off the cooler."
			},
			{
				"name": "DOME SHUTTER OPEN",
				"label": "Open the dome shutter",
				"input_label": [],
				"help": "Open the dome shutter."
			},
			{
				"name": "DOME SHUTTER CLOSE",
				"label": "Close the dome shutter",
				"input_label": [],
				"help": "Close the dome shutter"
			},
			{
				"name": "DOME SHUTTER SYNCHRO",
				"label": "Dome Shutter Synchro",
				"input_label": [],
				"help": "Dome Shutter Synchro"
			},
			{
				"name": "START",
				"label": "Start Pose",
				"input_label": [],
				"help": "Start Pose"
			},
			{
				"name": "ABORT",
				"label": "Stop Pose",
				"input_label": [],
				"help": "Stop Pose"
			},
			{
				"name": "STOP",
				"label": "End image then stop pose",
				"input_label": [],
				"help": "End image then stop pose"
			}

		]


6a1a30ed   carens_p   grammar for instr...
519
	}
ea6c3ccc   aklotz   Nouveau format de...
520
	
6a1a30ed   carens_p   grammar for instr...
521
}