diff --git a/simulators/config/grammar.json b/simulators/config/grammar.json index c5a739b..2206594 100644 --- a/simulators/config/grammar.json +++ b/simulators/config/grammar.json @@ -2,208 +2,57 @@ "Telescope" : { "set": [ { - "name": "SPEED", - "nb_param": [2, 3], - "param_type": "float", - "desc": "description", - "desc": "description", - "help": "help" - }, - { - "name": "COORDS", - "nb_param": [2, 3], - "param_type": "float", - "desc": "description", - "help": "help" - }, - { - "name": "TRACKING_SPEED", - "nb_param": [2, 3], - "param_type": "float", - "desc": "description", - "help": "help" - }, - { - "name": "ACCEL", - "nb_param": [2, 3], - "param_type": "float" - }, - { - "name": "ROTATOR", - "nb_param": [1], - "param_type": "EnumRotator" - }, - { - "name": "FOCUS", - "nb_param": [1], - "param_type": "float" - }, - { - "name": "MOVE_MODE", - "nb_param": [1], - "param_type": "EnumMoveMode" - }, - { - "name": "COORDS_FRAME", - "nb_param": [1], - "param_type": "EnumCoordsFrame" + "name": "COORD_RADEC", + "label": "Upload R.A., Dec. to the mount", + "input_label": [ + { + "R.A.":[15, "Degrees", "Right Ascension"], + "Dec.":[15, "", ""], + "Equ.":[15, "", ""] + } + ], + "help": "Upload R.A., Dec. to the mount. Use TELESCOPE DO START to slew the mount." + }, + { + "name": "COORD_HADEC", + "label": "Upload apparent hour angle declination to the mount", + "input_label": [ + { + "H.A.":[15, "", ""], + "Dec.":[15, "", ""] + } + ], + "help": "Upload H.A., Dec. to the mount. Use TELESCOPE DO START to slew the mount." + }, + { + "name": "COORD_ALTAZ", + "label": "Upload apparent hour angle declination to the mount", + "input_label": [ + { + "Az.":[15, "", ""], + "Elev.":[15, "", ""] + } + ], + "help": "Upload Az., elev. to the mount. Azimuth=0 at South. Use TELESCOPE DO START to slew the mount." } - - ], - "get": [ - "POSITION", - "STATUS", - "SETUP" ], - - "do": [ - { - "name": "DOORS", - "nb_param": [1], - "param_type": "bool" - }, - { - "name": "START", - "nb_param": [0], - "param_type": "" - }, - { - "name": "ABORT", - "nb_param": [0], - "param_type": "" - }, - { - "name": "STOP", - "nb_param": [0], - "param_type": "" - }, + "get": [ { - "name": "HOMING", - "nb_param": [0], - "param_type": "" + "name": "COORD_RADEC", + "label": "dowload R.A., Dec. from the mount", + "input_label": [], + "help": "Download R.A., Dec. to the mount." } - - ] - }, - - "Camera" : { - "set" : [ - { - "name": "WINDOW", - "nb_param": [4], - "param_type": "int" - }, - { - "name": "READMODE", - "nb_param": [1], - "param_type": "EnumReadMode" - }, - { - "name": "FILENAME", - "nb_param": [1], - "param_type": "str" - }, - { - "name": "HEADER", - "nb_param": [1], - "param_type": "dict" - }, - { - "name": "READOUT_FREQUENCY", - "nb_param": [1], - "param_type": "float" - }, - { - "name": "FILTER", - "nb_param": [1], - "param_type": "EnumFilter" - } - ], - "get" : [ - "STATUS", - "TEMPERATURE", - "SETUP", - "TIMER" - ], - - "do" : [ - { - "name": "COOLER", - "nb_param": [2], - "param_type": "float" - }, - { - "name": "SHUTTER", - "nb_param": [1], - "param_type": "EnumShutter" - }, - { - "name": "START", - "nb_param": [0], - "param_type": "" - }, - { - "name": "STOP", - "nb_param": [0], - "param_type": "" - }, + }, + "do": [ { - "name": "ABORT", - "nb_param": [0], - "param_type": "" + "name": "START", + "input_label": [], + "help": "Start the slew of the mount.", } - ] + ] }, - "CameraVIS" : { - "set" : [ - { - "name": "EXPOSURE", - "nb_param": [1], - "param_type": "int" - }, - { - "name": "BINNING", - "nb_param": [2], - "param_type": "int" - } - ], - "get" : [], - "do" : [] - }, - - "CameraNIR" : { - "set" : [ - { - "name": "NB_IMAGES", - "nb_param": [1], - "param_type": "int" - } - ], - "get" : [], - "do" : [] - }, - - "CameraNIR" : { - "set" : [ - { - "name": "NB_IMAGES", - "nb_param": [1], - "param_type": "int" - } - ], - "get" : [], - "do" : [] - }, - - "PLC" : { - "set" : [], - "get" : [ - "STATUS" - ], - "do" : [] - }, - "Enums" : { "EnumReadMode" : [ "Ramp" @@ -226,11 +75,7 @@ "Goto", "Track", "GotoTrack" - ], - "EnumCoordsFrame" : [ - "Hadec", - "Radec", - "Altaz" ] } + } -- libgit2 0.21.2