Created
April 16, 2021 04:43
-
-
Save agrif/f170936467a247e11839a04462e13847 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| connected. | |
| >>> GetProperties { | |
| version: Version( | |
| "1.7", | |
| ), | |
| device: None, | |
| name: None, | |
| } | |
| <<< DefSwitchVector { | |
| device: "Telescope Simulator", | |
| name: "CONNECTION", | |
| label: Some( | |
| "Connection", | |
| ), | |
| group: Some( | |
| "Main Control", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "CONNECT", | |
| label: Some( | |
| "Connect", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "DISCONNECT", | |
| label: Some( | |
| "Disconnect", | |
| ), | |
| value: On, | |
| }, | |
| ], | |
| } | |
| <<< DefTextVector { | |
| device: "Telescope Simulator", | |
| name: "DRIVER_INFO", | |
| label: Some( | |
| "Driver Info", | |
| ), | |
| group: Some( | |
| "Connection", | |
| ), | |
| state: Idle, | |
| perm: ReadOnly, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| texts: [ | |
| DefText { | |
| name: "DRIVER_NAME", | |
| label: Some( | |
| "Name", | |
| ), | |
| value: "Telescope Simulator", | |
| }, | |
| DefText { | |
| name: "DRIVER_EXEC", | |
| label: Some( | |
| "Exec", | |
| ), | |
| value: "indi_simulator_telescope", | |
| }, | |
| DefText { | |
| name: "DRIVER_VERSION", | |
| label: Some( | |
| "Version", | |
| ), | |
| value: "1.0", | |
| }, | |
| DefText { | |
| name: "DRIVER_INTERFACE", | |
| label: Some( | |
| "Interface", | |
| ), | |
| value: "5", | |
| }, | |
| ], | |
| } | |
| <<< DefNumberVector { | |
| device: "Telescope Simulator", | |
| name: "POLLING_PERIOD", | |
| label: Some( | |
| "Polling", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 0, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| numbers: [ | |
| DefNumber { | |
| name: "PERIOD_MS", | |
| label: Some( | |
| "Period (ms)", | |
| ), | |
| format: "%.f", | |
| min: 10, | |
| max: 60000, | |
| step: Some( | |
| 1000, | |
| ), | |
| value: 250, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Telescope Simulator", | |
| name: "DEBUG", | |
| label: Some( | |
| "Debug", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 0, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "ENABLE", | |
| label: Some( | |
| "Enable", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "DISABLE", | |
| label: Some( | |
| "Disable", | |
| ), | |
| value: On, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Telescope Simulator", | |
| name: "CONFIG_PROCESS", | |
| label: Some( | |
| "Configuration", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: AtMostOne, | |
| timeout: Some( | |
| 0, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "CONFIG_LOAD", | |
| label: Some( | |
| "Load", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "CONFIG_SAVE", | |
| label: Some( | |
| "Save", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "CONFIG_DEFAULT", | |
| label: Some( | |
| "Default", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Telescope Simulator", | |
| name: "CONNECTION_MODE", | |
| label: Some( | |
| "Connection Mode", | |
| ), | |
| group: Some( | |
| "Connection", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "CONNECTION_SERIAL", | |
| label: Some( | |
| "Serial", | |
| ), | |
| value: On, | |
| }, | |
| DefSwitch { | |
| name: "CONNECTION_TCP", | |
| label: Some( | |
| "Ethernet", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefTextVector { | |
| device: "Telescope Simulator", | |
| name: "DEVICE_PORT", | |
| label: Some( | |
| "Ports", | |
| ), | |
| group: Some( | |
| "Connection", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| texts: [ | |
| DefText { | |
| name: "PORT", | |
| label: Some( | |
| "Port", | |
| ), | |
| value: "/dev/ttyUSB0", | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Telescope Simulator", | |
| name: "DEVICE_BAUD_RATE", | |
| label: Some( | |
| "Baud Rate", | |
| ), | |
| group: Some( | |
| "Connection", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "9600", | |
| label: Some( | |
| "9600", | |
| ), | |
| value: On, | |
| }, | |
| DefSwitch { | |
| name: "19200", | |
| label: Some( | |
| "19200", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "38400", | |
| label: Some( | |
| "38400", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "57600", | |
| label: Some( | |
| "57600", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "115200", | |
| label: Some( | |
| "115200", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "230400", | |
| label: Some( | |
| "230400", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Telescope Simulator", | |
| name: "DEVICE_AUTO_SEARCH", | |
| label: Some( | |
| "Auto Search", | |
| ), | |
| group: Some( | |
| "Connection", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "ENABLED", | |
| label: Some( | |
| "Enabled", | |
| ), | |
| value: On, | |
| }, | |
| DefSwitch { | |
| name: "DISABLED", | |
| label: Some( | |
| "Disabled", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Telescope Simulator", | |
| name: "DEVICE_PORT_SCAN", | |
| label: Some( | |
| "Refresh", | |
| ), | |
| group: Some( | |
| "Connection", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "Scan Ports", | |
| label: Some( | |
| "Scan Ports", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefTextVector { | |
| device: "Telescope Simulator", | |
| name: "ACTIVE_DEVICES", | |
| label: Some( | |
| "Snoop devices", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| texts: [ | |
| DefText { | |
| name: "ACTIVE_GPS", | |
| label: Some( | |
| "GPS", | |
| ), | |
| value: "GPSD", | |
| }, | |
| DefText { | |
| name: "ACTIVE_DOME", | |
| label: Some( | |
| "DOME", | |
| ), | |
| value: "Dome Simulator", | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Telescope Simulator", | |
| name: "DOME_POLICY", | |
| label: Some( | |
| "Dome parking policy", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "NO_ACTION", | |
| label: Some( | |
| "Ignore dome", | |
| ), | |
| value: On, | |
| }, | |
| DefSwitch { | |
| name: "LOCK_PARKING", | |
| label: Some( | |
| "Dome locks", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "FORCE_CLOSE", | |
| label: Some( | |
| "Dome parks", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "LOCK_AND_FORCE", | |
| label: Some( | |
| "Both", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefNumberVector { | |
| device: "Telescope Simulator", | |
| name: "TELESCOPE_INFO", | |
| label: Some( | |
| "Scope Properties", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| numbers: [ | |
| DefNumber { | |
| name: "TELESCOPE_APERTURE", | |
| label: Some( | |
| "Aperture (mm)", | |
| ), | |
| format: "%g", | |
| min: 10, | |
| max: 5000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 114.3, | |
| }, | |
| DefNumber { | |
| name: "TELESCOPE_FOCAL_LENGTH", | |
| label: Some( | |
| "Focal Length (mm)", | |
| ), | |
| format: "%g", | |
| min: 10, | |
| max: 10000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 900, | |
| }, | |
| DefNumber { | |
| name: "GUIDER_APERTURE", | |
| label: Some( | |
| "Guider Aperture (mm)", | |
| ), | |
| format: "%g", | |
| min: 10, | |
| max: 5000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 120, | |
| }, | |
| DefNumber { | |
| name: "GUIDER_FOCAL_LENGTH", | |
| label: Some( | |
| "Guider Focal Length (mm)", | |
| ), | |
| format: "%g", | |
| min: 10, | |
| max: 10000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 900, | |
| }, | |
| ], | |
| } | |
| Parse error: missing field `$value` on Ok("\n<defTextVector device=\"Telescope Simulator\" name=\"SCOPE_CONFIG_NAME\" label=\"Scope Name\" group=\"Options\" state=\"Ok\" perm=\"rw\" timeout=\"60\" timestamp=\"2021-04-16T04:43:34\">\n <defText name=\"SCOPE_CONFIG_NAME\" label=\"Config Name\"/>\n</defTextVector>") | |
| <<< DefTextVector { | |
| device: "Telescope Simulator", | |
| name: "ACTIVE_DEVICES", | |
| label: Some( | |
| "Snoop devices", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| texts: [ | |
| DefText { | |
| name: "ACTIVE_GPS", | |
| label: Some( | |
| "GPS", | |
| ), | |
| value: "GPSD", | |
| }, | |
| DefText { | |
| name: "ACTIVE_DOME", | |
| label: Some( | |
| "DOME", | |
| ), | |
| value: "Dome Simulator", | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "CCD Simulator", | |
| name: "CONNECTION", | |
| label: Some( | |
| "Connection", | |
| ), | |
| group: Some( | |
| "Main Control", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "CONNECT", | |
| label: Some( | |
| "Connect", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "DISCONNECT", | |
| label: Some( | |
| "Disconnect", | |
| ), | |
| value: On, | |
| }, | |
| ], | |
| } | |
| <<< DefTextVector { | |
| device: "CCD Simulator", | |
| name: "DRIVER_INFO", | |
| label: Some( | |
| "Driver Info", | |
| ), | |
| group: Some( | |
| "General Info", | |
| ), | |
| state: Idle, | |
| perm: ReadOnly, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| texts: [ | |
| DefText { | |
| name: "DRIVER_NAME", | |
| label: Some( | |
| "Name", | |
| ), | |
| value: "CCD Simulator", | |
| }, | |
| DefText { | |
| name: "DRIVER_EXEC", | |
| label: Some( | |
| "Exec", | |
| ), | |
| value: "indi_simulator_ccd", | |
| }, | |
| DefText { | |
| name: "DRIVER_VERSION", | |
| label: Some( | |
| "Version", | |
| ), | |
| value: "1.0", | |
| }, | |
| DefText { | |
| name: "DRIVER_INTERFACE", | |
| label: Some( | |
| "Interface", | |
| ), | |
| value: "22", | |
| }, | |
| ], | |
| } | |
| <<< DefNumberVector { | |
| device: "CCD Simulator", | |
| name: "POLLING_PERIOD", | |
| label: Some( | |
| "Polling", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 0, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| numbers: [ | |
| DefNumber { | |
| name: "PERIOD_MS", | |
| label: Some( | |
| "Period (ms)", | |
| ), | |
| format: "%.f", | |
| min: 10, | |
| max: 60000, | |
| step: Some( | |
| 1000, | |
| ), | |
| value: 1000, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "CCD Simulator", | |
| name: "DEBUG", | |
| label: Some( | |
| "Debug", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 0, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "ENABLE", | |
| label: Some( | |
| "Enable", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "DISABLE", | |
| label: Some( | |
| "Disable", | |
| ), | |
| value: On, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "CCD Simulator", | |
| name: "CONFIG_PROCESS", | |
| label: Some( | |
| "Configuration", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: AtMostOne, | |
| timeout: Some( | |
| 0, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "CONFIG_LOAD", | |
| label: Some( | |
| "Load", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "CONFIG_SAVE", | |
| label: Some( | |
| "Save", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "CONFIG_DEFAULT", | |
| label: Some( | |
| "Default", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefTextVector { | |
| device: "CCD Simulator", | |
| name: "ACTIVE_DEVICES", | |
| label: Some( | |
| "Snoop devices", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| texts: [ | |
| DefText { | |
| name: "ACTIVE_TELESCOPE", | |
| label: Some( | |
| "Telescope", | |
| ), | |
| value: "Telescope Simulator", | |
| }, | |
| DefText { | |
| name: "ACTIVE_FOCUSER", | |
| label: Some( | |
| "Focuser", | |
| ), | |
| value: "Focuser Simulator", | |
| }, | |
| DefText { | |
| name: "ACTIVE_FILTER", | |
| label: Some( | |
| "Filter", | |
| ), | |
| value: "CCD Simulator", | |
| }, | |
| DefText { | |
| name: "ACTIVE_SKYQUALITY", | |
| label: Some( | |
| "Sky Quality", | |
| ), | |
| value: "SQM", | |
| }, | |
| ], | |
| } | |
| <<< DefNumberVector { | |
| device: "CCD Simulator", | |
| name: "SIMULATOR_SETTINGS", | |
| label: Some( | |
| "Simulator Settings", | |
| ), | |
| group: Some( | |
| "Simulator Config", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| numbers: [ | |
| DefNumber { | |
| name: "SIM_XRES", | |
| label: Some( | |
| "CCD X resolution", | |
| ), | |
| format: "%4.0f", | |
| min: 0, | |
| max: 8192, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 1280, | |
| }, | |
| DefNumber { | |
| name: "SIM_YRES", | |
| label: Some( | |
| "CCD Y resolution", | |
| ), | |
| format: "%4.0f", | |
| min: 0, | |
| max: 8192, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 1024, | |
| }, | |
| DefNumber { | |
| name: "SIM_XSIZE", | |
| label: Some( | |
| "CCD X Pixel Size", | |
| ), | |
| format: "%4.2f", | |
| min: 0, | |
| max: 60, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 5.2, | |
| }, | |
| DefNumber { | |
| name: "SIM_YSIZE", | |
| label: Some( | |
| "CCD Y Pixel Size", | |
| ), | |
| format: "%4.2f", | |
| min: 0, | |
| max: 60, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 5.2, | |
| }, | |
| DefNumber { | |
| name: "SIM_MAXVAL", | |
| label: Some( | |
| "CCD Maximum ADU", | |
| ), | |
| format: "%4.0f", | |
| min: 0, | |
| max: 65000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 65000, | |
| }, | |
| DefNumber { | |
| name: "SIM_BIAS", | |
| label: Some( | |
| "CCD Bias", | |
| ), | |
| format: "%4.0f", | |
| min: 0, | |
| max: 6000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 10, | |
| }, | |
| DefNumber { | |
| name: "SIM_SATURATION", | |
| label: Some( | |
| "Saturation Mag", | |
| ), | |
| format: "%4.1f", | |
| min: 0, | |
| max: 20, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 1, | |
| }, | |
| DefNumber { | |
| name: "SIM_LIMITINGMAG", | |
| label: Some( | |
| "Limiting Mag", | |
| ), | |
| format: "%4.1f", | |
| min: 0, | |
| max: 20, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 17, | |
| }, | |
| DefNumber { | |
| name: "SIM_NOISE", | |
| label: Some( | |
| "CCD Noise", | |
| ), | |
| format: "%4.0f", | |
| min: 0, | |
| max: 6000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 10, | |
| }, | |
| DefNumber { | |
| name: "SIM_SKYGLOW", | |
| label: Some( | |
| "Sky Glow (magnitudes)", | |
| ), | |
| format: "%4.1f", | |
| min: 0, | |
| max: 6000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 19.5, | |
| }, | |
| DefNumber { | |
| name: "SIM_OAGOFFSET", | |
| label: Some( | |
| "Oag Offset (arcminutes)", | |
| ), | |
| format: "%4.1f", | |
| min: 0, | |
| max: 6000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 0, | |
| }, | |
| DefNumber { | |
| name: "SIM_POLAR", | |
| label: Some( | |
| "PAE (arcminutes)", | |
| ), | |
| format: "%4.1f", | |
| min: -600, | |
| max: 600, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 0, | |
| }, | |
| DefNumber { | |
| name: "SIM_POLARDRIFT", | |
| label: Some( | |
| "PAE Drift (minutes)", | |
| ), | |
| format: "%4.1f", | |
| min: 0, | |
| max: 6000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 0, | |
| }, | |
| DefNumber { | |
| name: "SIM_ROTATION", | |
| label: Some( | |
| "Rotation CW (degrees)", | |
| ), | |
| format: "%4.1f", | |
| min: -360, | |
| max: 360, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 0, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "CCD Simulator", | |
| name: "ON_TIME_FACTOR", | |
| label: Some( | |
| "Time Factor", | |
| ), | |
| group: Some( | |
| "Simulator Config", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "1X", | |
| label: Some( | |
| "Actual Time", | |
| ), | |
| value: On, | |
| }, | |
| DefSwitch { | |
| name: "10X", | |
| label: Some( | |
| "10x", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "100X", | |
| label: Some( | |
| "100x", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefNumberVector { | |
| device: "CCD Simulator", | |
| name: "EQUATORIAL_PE", | |
| label: Some( | |
| "EQ PE", | |
| ), | |
| group: Some( | |
| "Simulator Config", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| numbers: [ | |
| DefNumber { | |
| name: "RA_PE", | |
| label: Some( | |
| "RA (hh:mm:ss)", | |
| ), | |
| format: "%010.6m", | |
| min: 0, | |
| max: 24, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 0, | |
| }, | |
| DefNumber { | |
| name: "DEC_PE", | |
| label: Some( | |
| "DEC (dd:mm:ss)", | |
| ), | |
| format: "%010.6m", | |
| min: -90, | |
| max: 90, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 0, | |
| }, | |
| ], | |
| } | |
| <<< DefTextVector { | |
| device: "CCD Simulator", | |
| name: "ACTIVE_DEVICES", | |
| label: Some( | |
| "Snoop devices", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| texts: [ | |
| DefText { | |
| name: "ACTIVE_TELESCOPE", | |
| label: Some( | |
| "Telescope", | |
| ), | |
| value: "Telescope Simulator", | |
| }, | |
| DefText { | |
| name: "ACTIVE_FOCUSER", | |
| label: Some( | |
| "Focuser", | |
| ), | |
| value: "Focuser Simulator", | |
| }, | |
| DefText { | |
| name: "ACTIVE_FILTER", | |
| label: Some( | |
| "Filter", | |
| ), | |
| value: "CCD Simulator", | |
| }, | |
| DefText { | |
| name: "ACTIVE_SKYQUALITY", | |
| label: Some( | |
| "Sky Quality", | |
| ), | |
| value: "SQM", | |
| }, | |
| ], | |
| } | |
| <<< SetTextVector { | |
| device: "CCD Simulator", | |
| name: "ACTIVE_DEVICES", | |
| state: Some( | |
| Ok, | |
| ), | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| texts: [ | |
| Text { | |
| name: "ACTIVE_TELESCOPE", | |
| value: "Telescope Simulator", | |
| }, | |
| Text { | |
| name: "ACTIVE_FOCUSER", | |
| value: "Focuser Simulator", | |
| }, | |
| Text { | |
| name: "ACTIVE_FILTER", | |
| value: "CCD Simulator", | |
| }, | |
| Text { | |
| name: "ACTIVE_SKYQUALITY", | |
| value: "SQM", | |
| }, | |
| ], | |
| } | |
| <<< DefNumberVector { | |
| device: "CCD Simulator", | |
| name: "SIMULATOR_SETTINGS", | |
| label: Some( | |
| "Simulator Settings", | |
| ), | |
| group: Some( | |
| "Simulator Config", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| numbers: [ | |
| DefNumber { | |
| name: "SIM_XRES", | |
| label: Some( | |
| "CCD X resolution", | |
| ), | |
| format: "%4.0f", | |
| min: 0, | |
| max: 8192, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 1280, | |
| }, | |
| DefNumber { | |
| name: "SIM_YRES", | |
| label: Some( | |
| "CCD Y resolution", | |
| ), | |
| format: "%4.0f", | |
| min: 0, | |
| max: 8192, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 1024, | |
| }, | |
| DefNumber { | |
| name: "SIM_XSIZE", | |
| label: Some( | |
| "CCD X Pixel Size", | |
| ), | |
| format: "%4.2f", | |
| min: 0, | |
| max: 60, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 5.2, | |
| }, | |
| DefNumber { | |
| name: "SIM_YSIZE", | |
| label: Some( | |
| "CCD Y Pixel Size", | |
| ), | |
| format: "%4.2f", | |
| min: 0, | |
| max: 60, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 5.2, | |
| }, | |
| DefNumber { | |
| name: "SIM_MAXVAL", | |
| label: Some( | |
| "CCD Maximum ADU", | |
| ), | |
| format: "%4.0f", | |
| min: 0, | |
| max: 65000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 65000, | |
| }, | |
| DefNumber { | |
| name: "SIM_BIAS", | |
| label: Some( | |
| "CCD Bias", | |
| ), | |
| format: "%4.0f", | |
| min: 0, | |
| max: 6000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 10, | |
| }, | |
| DefNumber { | |
| name: "SIM_SATURATION", | |
| label: Some( | |
| "Saturation Mag", | |
| ), | |
| format: "%4.1f", | |
| min: 0, | |
| max: 20, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 1, | |
| }, | |
| DefNumber { | |
| name: "SIM_LIMITINGMAG", | |
| label: Some( | |
| "Limiting Mag", | |
| ), | |
| format: "%4.1f", | |
| min: 0, | |
| max: 20, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 17, | |
| }, | |
| DefNumber { | |
| name: "SIM_NOISE", | |
| label: Some( | |
| "CCD Noise", | |
| ), | |
| format: "%4.0f", | |
| min: 0, | |
| max: 6000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 10, | |
| }, | |
| DefNumber { | |
| name: "SIM_SKYGLOW", | |
| label: Some( | |
| "Sky Glow (magnitudes)", | |
| ), | |
| format: "%4.1f", | |
| min: 0, | |
| max: 6000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 19.5, | |
| }, | |
| DefNumber { | |
| name: "SIM_OAGOFFSET", | |
| label: Some( | |
| "Oag Offset (arcminutes)", | |
| ), | |
| format: "%4.1f", | |
| min: 0, | |
| max: 6000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 0, | |
| }, | |
| DefNumber { | |
| name: "SIM_POLAR", | |
| label: Some( | |
| "PAE (arcminutes)", | |
| ), | |
| format: "%4.1f", | |
| min: -600, | |
| max: 600, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 0, | |
| }, | |
| DefNumber { | |
| name: "SIM_POLARDRIFT", | |
| label: Some( | |
| "PAE Drift (minutes)", | |
| ), | |
| format: "%4.1f", | |
| min: 0, | |
| max: 6000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 0, | |
| }, | |
| DefNumber { | |
| name: "SIM_ROTATION", | |
| label: Some( | |
| "Rotation CW (degrees)", | |
| ), | |
| format: "%4.1f", | |
| min: -360, | |
| max: 360, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 0, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "CCD Simulator", | |
| name: "ON_TIME_FACTOR", | |
| label: Some( | |
| "Time Factor", | |
| ), | |
| group: Some( | |
| "Simulator Config", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "1X", | |
| label: Some( | |
| "Actual Time", | |
| ), | |
| value: On, | |
| }, | |
| DefSwitch { | |
| name: "10X", | |
| label: Some( | |
| "10x", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "100X", | |
| label: Some( | |
| "100x", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefNumberVector { | |
| device: "CCD Simulator", | |
| name: "EQUATORIAL_PE", | |
| label: Some( | |
| "EQ PE", | |
| ), | |
| group: Some( | |
| "Simulator Config", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| numbers: [ | |
| DefNumber { | |
| name: "RA_PE", | |
| label: Some( | |
| "RA (hh:mm:ss)", | |
| ), | |
| format: "%010.6m", | |
| min: 0, | |
| max: 24, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 0, | |
| }, | |
| DefNumber { | |
| name: "DEC_PE", | |
| label: Some( | |
| "DEC (dd:mm:ss)", | |
| ), | |
| format: "%010.6m", | |
| min: -90, | |
| max: 90, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 0, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Focuser Simulator", | |
| name: "CONNECTION", | |
| label: Some( | |
| "Connection", | |
| ), | |
| group: Some( | |
| "Main Control", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "CONNECT", | |
| label: Some( | |
| "Connect", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "DISCONNECT", | |
| label: Some( | |
| "Disconnect", | |
| ), | |
| value: On, | |
| }, | |
| ], | |
| } | |
| <<< DefTextVector { | |
| device: "Focuser Simulator", | |
| name: "DRIVER_INFO", | |
| label: Some( | |
| "Driver Info", | |
| ), | |
| group: Some( | |
| "Connection", | |
| ), | |
| state: Idle, | |
| perm: ReadOnly, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| texts: [ | |
| DefText { | |
| name: "DRIVER_NAME", | |
| label: Some( | |
| "Name", | |
| ), | |
| value: "Focuser Simulator", | |
| }, | |
| DefText { | |
| name: "DRIVER_EXEC", | |
| label: Some( | |
| "Exec", | |
| ), | |
| value: "indi_simulator_focus", | |
| }, | |
| DefText { | |
| name: "DRIVER_VERSION", | |
| label: Some( | |
| "Version", | |
| ), | |
| value: "1.0", | |
| }, | |
| DefText { | |
| name: "DRIVER_INTERFACE", | |
| label: Some( | |
| "Interface", | |
| ), | |
| value: "8", | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Focuser Simulator", | |
| name: "DEBUG", | |
| label: Some( | |
| "Debug", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 0, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "ENABLE", | |
| label: Some( | |
| "Enable", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "DISABLE", | |
| label: Some( | |
| "Disable", | |
| ), | |
| value: On, | |
| }, | |
| ], | |
| } | |
| <<< DefNumberVector { | |
| device: "Focuser Simulator", | |
| name: "POLLING_PERIOD", | |
| label: Some( | |
| "Polling", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 0, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| numbers: [ | |
| DefNumber { | |
| name: "PERIOD_MS", | |
| label: Some( | |
| "Period (ms)", | |
| ), | |
| format: "%.f", | |
| min: 10, | |
| max: 60000, | |
| step: Some( | |
| 1000, | |
| ), | |
| value: 1000, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Focuser Simulator", | |
| name: "CONFIG_PROCESS", | |
| label: Some( | |
| "Configuration", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: AtMostOne, | |
| timeout: Some( | |
| 0, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "CONFIG_LOAD", | |
| label: Some( | |
| "Load", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "CONFIG_SAVE", | |
| label: Some( | |
| "Save", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "CONFIG_DEFAULT", | |
| label: Some( | |
| "Default", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Focuser Simulator", | |
| name: "CONNECTION_MODE", | |
| label: Some( | |
| "Connection Mode", | |
| ), | |
| group: Some( | |
| "Connection", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "CONNECTION_SERIAL", | |
| label: Some( | |
| "Serial", | |
| ), | |
| value: On, | |
| }, | |
| DefSwitch { | |
| name: "CONNECTION_TCP", | |
| label: Some( | |
| "Ethernet", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefTextVector { | |
| device: "Focuser Simulator", | |
| name: "DEVICE_PORT", | |
| label: Some( | |
| "Ports", | |
| ), | |
| group: Some( | |
| "Connection", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| texts: [ | |
| DefText { | |
| name: "PORT", | |
| label: Some( | |
| "Port", | |
| ), | |
| value: "/dev/ttyUSB0", | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Focuser Simulator", | |
| name: "DEVICE_BAUD_RATE", | |
| label: Some( | |
| "Baud Rate", | |
| ), | |
| group: Some( | |
| "Connection", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "9600", | |
| label: Some( | |
| "9600", | |
| ), | |
| value: On, | |
| }, | |
| DefSwitch { | |
| name: "19200", | |
| label: Some( | |
| "19200", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "38400", | |
| label: Some( | |
| "38400", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "57600", | |
| label: Some( | |
| "57600", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "115200", | |
| label: Some( | |
| "115200", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "230400", | |
| label: Some( | |
| "230400", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Focuser Simulator", | |
| name: "DEVICE_AUTO_SEARCH", | |
| label: Some( | |
| "Auto Search", | |
| ), | |
| group: Some( | |
| "Connection", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "ENABLED", | |
| label: Some( | |
| "Enabled", | |
| ), | |
| value: On, | |
| }, | |
| DefSwitch { | |
| name: "DISABLED", | |
| label: Some( | |
| "Disabled", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Focuser Simulator", | |
| name: "DEVICE_PORT_SCAN", | |
| label: Some( | |
| "Refresh", | |
| ), | |
| group: Some( | |
| "Connection", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "Scan Ports", | |
| label: Some( | |
| "Scan Ports", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Focuser Simulator", | |
| name: "Mode", | |
| label: Some( | |
| "Mode", | |
| ), | |
| group: Some( | |
| "Main Control", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "All", | |
| label: Some( | |
| "All", | |
| ), | |
| value: On, | |
| }, | |
| DefSwitch { | |
| name: "Absolute", | |
| label: Some( | |
| "Absolute", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "Relative", | |
| label: Some( | |
| "Relative", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "Timer", | |
| label: Some( | |
| "Timer", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Focuser Simulator", | |
| name: "Mode", | |
| label: Some( | |
| "Mode", | |
| ), | |
| group: Some( | |
| "Main Control", | |
| ), | |
| state: Idle, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "All", | |
| label: Some( | |
| "All", | |
| ), | |
| value: On, | |
| }, | |
| DefSwitch { | |
| name: "Absolute", | |
| label: Some( | |
| "Absolute", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "Relative", | |
| label: Some( | |
| "Relative", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "Timer", | |
| label: Some( | |
| "Timer", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< SetTextVector { | |
| device: "Telescope Simulator", | |
| name: "ACTIVE_DEVICES", | |
| state: Some( | |
| Ok, | |
| ), | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| texts: [ | |
| Text { | |
| name: "ACTIVE_GPS", | |
| value: "GPSD", | |
| }, | |
| Text { | |
| name: "ACTIVE_DOME", | |
| value: "Dome Simulator", | |
| }, | |
| ], | |
| } | |
| <<< DefSwitchVector { | |
| device: "Telescope Simulator", | |
| name: "DOME_POLICY", | |
| label: Some( | |
| "Dome parking policy", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| rule: OneOfMany, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| DefSwitch { | |
| name: "NO_ACTION", | |
| label: Some( | |
| "Ignore dome", | |
| ), | |
| value: On, | |
| }, | |
| DefSwitch { | |
| name: "LOCK_PARKING", | |
| label: Some( | |
| "Dome locks", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "FORCE_CLOSE", | |
| label: Some( | |
| "Dome parks", | |
| ), | |
| value: Off, | |
| }, | |
| DefSwitch { | |
| name: "LOCK_AND_FORCE", | |
| label: Some( | |
| "Both", | |
| ), | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< SetSwitchVector { | |
| device: "Telescope Simulator", | |
| name: "DOME_POLICY", | |
| state: Some( | |
| Ok, | |
| ), | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| switches: [ | |
| Switch { | |
| name: "NO_ACTION", | |
| value: On, | |
| }, | |
| Switch { | |
| name: "LOCK_PARKING", | |
| value: Off, | |
| }, | |
| Switch { | |
| name: "FORCE_CLOSE", | |
| value: Off, | |
| }, | |
| Switch { | |
| name: "LOCK_AND_FORCE", | |
| value: Off, | |
| }, | |
| ], | |
| } | |
| <<< DefNumberVector { | |
| device: "Telescope Simulator", | |
| name: "TELESCOPE_INFO", | |
| label: Some( | |
| "Scope Properties", | |
| ), | |
| group: Some( | |
| "Options", | |
| ), | |
| state: Ok, | |
| perm: ReadWrite, | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| numbers: [ | |
| DefNumber { | |
| name: "TELESCOPE_APERTURE", | |
| label: Some( | |
| "Aperture (mm)", | |
| ), | |
| format: "%g", | |
| min: 10, | |
| max: 5000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 114.3, | |
| }, | |
| DefNumber { | |
| name: "TELESCOPE_FOCAL_LENGTH", | |
| label: Some( | |
| "Focal Length (mm)", | |
| ), | |
| format: "%g", | |
| min: 10, | |
| max: 10000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 900, | |
| }, | |
| DefNumber { | |
| name: "GUIDER_APERTURE", | |
| label: Some( | |
| "Guider Aperture (mm)", | |
| ), | |
| format: "%g", | |
| min: 10, | |
| max: 5000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 120, | |
| }, | |
| DefNumber { | |
| name: "GUIDER_FOCAL_LENGTH", | |
| label: Some( | |
| "Guider Focal Length (mm)", | |
| ), | |
| format: "%g", | |
| min: 10, | |
| max: 10000, | |
| step: Some( | |
| 0, | |
| ), | |
| value: 900, | |
| }, | |
| ], | |
| } | |
| Parse error: missing field `$value` on Ok("\n<defTextVector device=\"Telescope Simulator\" name=\"SCOPE_CONFIG_NAME\" label=\"Scope Name\" group=\"Options\" state=\"Ok\" perm=\"rw\" timeout=\"60\" timestamp=\"2021-04-16T04:43:34\">\n <defText name=\"SCOPE_CONFIG_NAME\" label=\"Config Name\"/>\n</defTextVector>") | |
| <<< SetNumberVector { | |
| device: "Telescope Simulator", | |
| name: "TELESCOPE_INFO", | |
| state: Some( | |
| Ok, | |
| ), | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| numbers: [ | |
| Number { | |
| name: "TELESCOPE_APERTURE", | |
| value: 114.3, | |
| }, | |
| Number { | |
| name: "TELESCOPE_FOCAL_LENGTH", | |
| value: 900, | |
| }, | |
| Number { | |
| name: "GUIDER_APERTURE", | |
| value: 120, | |
| }, | |
| Number { | |
| name: "GUIDER_FOCAL_LENGTH", | |
| value: 900, | |
| }, | |
| ], | |
| } | |
| <<< SetTextVector { | |
| device: "Telescope Simulator", | |
| name: "SCOPE_CONFIG_NAME", | |
| state: Some( | |
| Ok, | |
| ), | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| texts: [ | |
| Text { | |
| name: "SCOPE_CONFIG_NAME", | |
| value: "", | |
| }, | |
| ], | |
| } | |
| <<< SetNumberVector { | |
| device: "Telescope Simulator", | |
| name: "TELESCOPE_INFO", | |
| state: Some( | |
| Ok, | |
| ), | |
| timeout: Some( | |
| 60, | |
| ), | |
| timestamp: Some( | |
| DateTime( | |
| 2021-04-16T04:43:34Z, | |
| ), | |
| ), | |
| message: None, | |
| numbers: [ | |
| Number { | |
| name: "TELESCOPE_APERTURE", | |
| value: 114.3, | |
| }, | |
| Number { | |
| name: "TELESCOPE_FOCAL_LENGTH", | |
| value: 900, | |
| }, | |
| Number { | |
| name: "GUIDER_APERTURE", | |
| value: 120, | |
| }, | |
| Number { | |
| name: "GUIDER_FOCAL_LENGTH", | |
| value: 900, | |
| }, | |
| ], | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment