Commit ea6c3ccc0187cd3e894111d0d9b3b24b999859f1
1 parent
4f8cc5f0
Exists in
dev
Nouveau format de Json pour formulaire.
Showing
1 changed file
with
44 additions
and
199 deletions
Show diff stats
simulators/config/grammar.json
@@ -2,208 +2,57 @@ | @@ -2,208 +2,57 @@ | ||
2 | "Telescope" : { | 2 | "Telescope" : { |
3 | "set": [ | 3 | "set": [ |
4 | { | 4 | { |
5 | - "name": "SPEED", | ||
6 | - "nb_param": [2, 3], | ||
7 | - "param_type": "float", | ||
8 | - "desc": "description", | ||
9 | - "desc": "description", | ||
10 | - "help": "help" | ||
11 | - }, | ||
12 | - { | ||
13 | - "name": "COORDS", | ||
14 | - "nb_param": [2, 3], | ||
15 | - "param_type": "float", | ||
16 | - "desc": "description", | ||
17 | - "help": "help" | ||
18 | - }, | ||
19 | - { | ||
20 | - "name": "TRACKING_SPEED", | ||
21 | - "nb_param": [2, 3], | ||
22 | - "param_type": "float", | ||
23 | - "desc": "description", | ||
24 | - "help": "help" | ||
25 | - }, | ||
26 | - { | ||
27 | - "name": "ACCEL", | ||
28 | - "nb_param": [2, 3], | ||
29 | - "param_type": "float" | ||
30 | - }, | ||
31 | - { | ||
32 | - "name": "ROTATOR", | ||
33 | - "nb_param": [1], | ||
34 | - "param_type": "EnumRotator" | ||
35 | - }, | ||
36 | - { | ||
37 | - "name": "FOCUS", | ||
38 | - "nb_param": [1], | ||
39 | - "param_type": "float" | ||
40 | - }, | ||
41 | - { | ||
42 | - "name": "MOVE_MODE", | ||
43 | - "nb_param": [1], | ||
44 | - "param_type": "EnumMoveMode" | ||
45 | - }, | ||
46 | - { | ||
47 | - "name": "COORDS_FRAME", | ||
48 | - "nb_param": [1], | ||
49 | - "param_type": "EnumCoordsFrame" | 5 | + "name": "COORD_RADEC", |
6 | + "label": "Upload R.A., Dec. to the mount", | ||
7 | + "input_label": [ | ||
8 | + { | ||
9 | + "R.A.":[15, "Degrees", "Right Ascension"], | ||
10 | + "Dec.":[15, "", ""], | ||
11 | + "Equ.":[15, "", ""] | ||
12 | + } | ||
13 | + ], | ||
14 | + "help": "Upload R.A., Dec. to the mount. Use TELESCOPE DO START to slew the mount." | ||
15 | + }, | ||
16 | + { | ||
17 | + "name": "COORD_HADEC", | ||
18 | + "label": "Upload apparent hour angle declination to the mount", | ||
19 | + "input_label": [ | ||
20 | + { | ||
21 | + "H.A.":[15, "", ""], | ||
22 | + "Dec.":[15, "", ""] | ||
23 | + } | ||
24 | + ], | ||
25 | + "help": "Upload H.A., Dec. to the mount. Use TELESCOPE DO START to slew the mount." | ||
26 | + }, | ||
27 | + { | ||
28 | + "name": "COORD_ALTAZ", | ||
29 | + "label": "Upload apparent hour angle declination to the mount", | ||
30 | + "input_label": [ | ||
31 | + { | ||
32 | + "Az.":[15, "", ""], | ||
33 | + "Elev.":[15, "", ""] | ||
34 | + } | ||
35 | + ], | ||
36 | + "help": "Upload Az., elev. to the mount. Azimuth=0 at South. Use TELESCOPE DO START to slew the mount." | ||
50 | } | 37 | } |
51 | - | ||
52 | - ], | ||
53 | - "get": [ | ||
54 | - "POSITION", | ||
55 | - "STATUS", | ||
56 | - "SETUP" | ||
57 | ], | 38 | ], |
58 | - | ||
59 | - "do": [ | ||
60 | - { | ||
61 | - "name": "DOORS", | ||
62 | - "nb_param": [1], | ||
63 | - "param_type": "bool" | ||
64 | - }, | ||
65 | - { | ||
66 | - "name": "START", | ||
67 | - "nb_param": [0], | ||
68 | - "param_type": "" | ||
69 | - }, | ||
70 | - { | ||
71 | - "name": "ABORT", | ||
72 | - "nb_param": [0], | ||
73 | - "param_type": "" | ||
74 | - }, | ||
75 | - { | ||
76 | - "name": "STOP", | ||
77 | - "nb_param": [0], | ||
78 | - "param_type": "" | ||
79 | - }, | 39 | + "get": [ |
80 | { | 40 | { |
81 | - "name": "HOMING", | ||
82 | - "nb_param": [0], | ||
83 | - "param_type": "" | 41 | + "name": "COORD_RADEC", |
42 | + "label": "dowload R.A., Dec. from the mount", | ||
43 | + "input_label": [], | ||
44 | + "help": "Download R.A., Dec. to the mount." | ||
84 | } | 45 | } |
85 | - | ||
86 | - ] | ||
87 | - }, | ||
88 | - | ||
89 | - "Camera" : { | ||
90 | - "set" : [ | ||
91 | - { | ||
92 | - "name": "WINDOW", | ||
93 | - "nb_param": [4], | ||
94 | - "param_type": "int" | ||
95 | - }, | ||
96 | - { | ||
97 | - "name": "READMODE", | ||
98 | - "nb_param": [1], | ||
99 | - "param_type": "EnumReadMode" | ||
100 | - }, | ||
101 | - { | ||
102 | - "name": "FILENAME", | ||
103 | - "nb_param": [1], | ||
104 | - "param_type": "str" | ||
105 | - }, | ||
106 | - { | ||
107 | - "name": "HEADER", | ||
108 | - "nb_param": [1], | ||
109 | - "param_type": "dict" | ||
110 | - }, | ||
111 | - { | ||
112 | - "name": "READOUT_FREQUENCY", | ||
113 | - "nb_param": [1], | ||
114 | - "param_type": "float" | ||
115 | - }, | ||
116 | - { | ||
117 | - "name": "FILTER", | ||
118 | - "nb_param": [1], | ||
119 | - "param_type": "EnumFilter" | ||
120 | - } | ||
121 | - ], | ||
122 | - "get" : [ | ||
123 | - "STATUS", | ||
124 | - "TEMPERATURE", | ||
125 | - "SETUP", | ||
126 | - "TIMER" | ||
127 | - ], | ||
128 | - | ||
129 | - "do" : [ | ||
130 | - { | ||
131 | - "name": "COOLER", | ||
132 | - "nb_param": [2], | ||
133 | - "param_type": "float" | ||
134 | - }, | ||
135 | - { | ||
136 | - "name": "SHUTTER", | ||
137 | - "nb_param": [1], | ||
138 | - "param_type": "EnumShutter" | ||
139 | - }, | ||
140 | - { | ||
141 | - "name": "START", | ||
142 | - "nb_param": [0], | ||
143 | - "param_type": "" | ||
144 | - }, | ||
145 | - { | ||
146 | - "name": "STOP", | ||
147 | - "nb_param": [0], | ||
148 | - "param_type": "" | ||
149 | - }, | 46 | + }, |
47 | + "do": [ | ||
150 | { | 48 | { |
151 | - "name": "ABORT", | ||
152 | - "nb_param": [0], | ||
153 | - "param_type": "" | 49 | + "name": "START", |
50 | + "input_label": [], | ||
51 | + "help": "Start the slew of the mount.", | ||
154 | } | 52 | } |
155 | - ] | 53 | + ] |
156 | }, | 54 | }, |
157 | 55 | ||
158 | - "CameraVIS" : { | ||
159 | - "set" : [ | ||
160 | - { | ||
161 | - "name": "EXPOSURE", | ||
162 | - "nb_param": [1], | ||
163 | - "param_type": "int" | ||
164 | - }, | ||
165 | - { | ||
166 | - "name": "BINNING", | ||
167 | - "nb_param": [2], | ||
168 | - "param_type": "int" | ||
169 | - } | ||
170 | - ], | ||
171 | - "get" : [], | ||
172 | - "do" : [] | ||
173 | - }, | ||
174 | - | ||
175 | - "CameraNIR" : { | ||
176 | - "set" : [ | ||
177 | - { | ||
178 | - "name": "NB_IMAGES", | ||
179 | - "nb_param": [1], | ||
180 | - "param_type": "int" | ||
181 | - } | ||
182 | - ], | ||
183 | - "get" : [], | ||
184 | - "do" : [] | ||
185 | - }, | ||
186 | - | ||
187 | - "CameraNIR" : { | ||
188 | - "set" : [ | ||
189 | - { | ||
190 | - "name": "NB_IMAGES", | ||
191 | - "nb_param": [1], | ||
192 | - "param_type": "int" | ||
193 | - } | ||
194 | - ], | ||
195 | - "get" : [], | ||
196 | - "do" : [] | ||
197 | - }, | ||
198 | - | ||
199 | - "PLC" : { | ||
200 | - "set" : [], | ||
201 | - "get" : [ | ||
202 | - "STATUS" | ||
203 | - ], | ||
204 | - "do" : [] | ||
205 | - }, | ||
206 | - | ||
207 | "Enums" : { | 56 | "Enums" : { |
208 | "EnumReadMode" : [ | 57 | "EnumReadMode" : [ |
209 | "Ramp" | 58 | "Ramp" |
@@ -226,11 +75,7 @@ | @@ -226,11 +75,7 @@ | ||
226 | "Goto", | 75 | "Goto", |
227 | "Track", | 76 | "Track", |
228 | "GotoTrack" | 77 | "GotoTrack" |
229 | - ], | ||
230 | - "EnumCoordsFrame" : [ | ||
231 | - "Hadec", | ||
232 | - "Radec", | ||
233 | - "Altaz" | ||
234 | ] | 78 | ] |
235 | } | 79 | } |
80 | + | ||
236 | } | 81 | } |