Script TheSky
Version 1.32
|
The WeatherUtil object. More...
Public Types | |
enum | StartupShutdownStateEnum { StartupShutdownStateUnknown =0, StartupSucceeded =1, ShutdownSucceeded =2 } |
The startup shutdown state. More... | |
Public Slots | |
bool | isStartedUp () |
Returns true (non-zero) if the imaging system is "started up". More... | |
bool | isShutdown () |
Returns true (non-zero) if the imaging system is shutdown. More... | |
StartupShutdownStateEnum | startupShutdownState () |
Returns the startup/shudown state of the imaging system. More... | |
int | lastError () |
Returns the error code to the last call to statrup or shutdown. | |
int | connectAll () |
Connects all imaging system hardware. More... | |
int | disconnectAll () |
Disconnects all imaging system hardware. More... | |
int | startup () |
Performs an imaging system startup (will connect all hardardware before performing the startup). More... | |
int | shutdown () |
Performs an imaging system shutdown and disconnects all hardware. More... | |
int | connectWeatherStation () |
Connects (just) the weather station. | |
int | disconnectWeatherStation () |
Disconnects (just) the weather station. | |
int | weatherUtilDoCommand (int nArg, QString qsArg) |
Software Bisque only. | |
Properties | |
int | autoConnect |
This property controls if TheSky automatically connects to all imaging system hardware when TheSky starts (doing a connectAll() when TheSky starts). | |
int | autoStartup |
This property controls if TheSky automatically performs an startup() when the conditions are good to go. | |
int | autoShutdown |
This property controls if TheSky automatically performs an shutdown() when the conditions are no go. | |
int | scriptedObjectsNoGoAware |
This property controls if TheSky scripted objects are aware of a no go condition. More... | |
int | goodToGo |
This property retuns if the conditions are good to go. | |
int | isWeatherStationConnected |
This property tells if there is a connection to a weather station. | |
QString | doCommandResult |
Software bisque only. | |
The WeatherUtil object.
The WeatherUtil object allows external programs to be compatable with TheSky's Weather Station Add On.
The Weather Station Add On is not yet available to the general public.
The startup shutdown state.
Enumerator | |
---|---|
StartupShutdownStateUnknown | The startup/shutdown state is unknown. This means a startup or shutdown has never been issued or an error occured during the last startup or shutdown.
|
StartupSucceeded | The startup succeeded. |
ShutdownSucceeded | The shutdown succeeded. |
|
slot |
Connects all imaging system hardware.
Only applies to hardware that has a selection. For example, if there is no dome selected, this method will not attempt a dome connection.
|
slot |
Disconnects all imaging system hardware.
Only applies to hardware that has a selection. For example, if there is no dome selected, this method will not attempt a dome disconnection.
|
slot |
Returns true (non-zero) if the imaging system is shutdown.
The criteria used is lastError must be zero indicating no error on the last shutdown(), along with appropriate criteria for presently used shutdown actions. For the latter, for example, if "Dome Close Slit" is one of the shutdown actions, the dome must be presently closed.
|
slot |
Returns true (non-zero) if the imaging system is "started up".
The criteria used is lastError must be zero indicating no error on the last startup(), along with appropriate criteria for presently used startup actions. For the latter, for example, if "Dome Open Slit" is one of the startup actions, the dome must be presently open.
|
slot |
Performs an imaging system shutdown and disconnects all hardware.
Note, the weather station is not disconnected if autoStartup or autoShutdown is on so that TheSky can continue to monitor the weather.
|
slot |
Performs an imaging system startup (will connect all hardardware before performing the startup).
|
slot |
Returns the startup/shudown state of the imaging system.
Disclamier
The state of this variable is maintained only when the startup() and shutdown() methods are used (either interactively or through a scripting interface). The state of this variable can be wrong if any hardware under control fails without providing an error or any hardware involved is changed by a means other than TheSky (i.e. a person on site opens the dome slit manually without using TheSky). The state of this variable is persistent across exit and restart of TheSky without necessarily actually querying hardware so TheSky is "doing the best it can" for all hardware involved (especially hardware that doesn't have reliable hardware feedback on critical hardware states).
In summary, this method provides a convienient means of knowing the success or failure of the last imaging system startup or shutdown.
|
readwrite |
This property controls if TheSky scripted objects are aware of a no go condition.
When on, attempting to slew the telescope or take a photo with result in an error.