ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1
StateIDLESTART UPPAUSECALIBRATIONFOCUSOBSERVING IMAGEROBSERVING SPECTRAEND NIGHT
2
FunctionDefault state. If daytime wait until start-up time, if night time wait for target or end of night time. Continously check for change of state requestStarts up any equipment makes sure everything is connectedStop any observing routine and wait for further instructions.Set routine to take bias,flats,darks, and any other images needed for data reductionPreform RC or IFU focus loopGiven a set of coordinates and request filter move the telescope so that object falls on correct CCDGiven a set of coordinates check that object falls on spectra ccdChecks all files have been sent to designated server on campus and stows telescope. Shutdowns servers and any camera equipment that’s needed
3
InputsNext State RequestNumber of flats,bias,darksList [start,stop,step]Object Name, RA, DEC, epoch, dither, offset, filter, exptime, repeats, FITS keywords, ConstraintsObject Name, RA,DEC, epoch, dither, A-Bpositions?, exptime, FITS Keywords, Constraints
4
OutputSuccess/Failure NoticeSuccess/Failure NoticeSuccess/Failure and list of focus filesSuccess/Failure NoticeSuccess/Failure NoticeSuccess/Failure Notice
5
Condition for changeTime, User RequestCompletion of start-up routineTime, User RequestCompletion of observing sequence, when any condition constraints become true, user requestCompletion of observing sequence, when any condition constraints become true, user requestCompletion of end of night routine
6
Scriptssecfocus.py
7
NotesAll other states come back to IDLE.Test the network to make sure that the robot can talk to the telescope, rc, sc. Makes sure there is enough disk space and enough targets to run for the night. Starts the observing scheduler that willRobot is just waiting for an all clear before it can start back up. This state will most likely be called during bad weather or P200 remote interuption. Checks all conditions until they are all true. If triggered during an observing request it will check to see that all observing constraints are still false and then resume the observation.Run during the start and possibly end of the night.During the night observing request will be determine by the queue scheduler unless a manual request is added.Needs to be able to stop observations in case of high priority ToO.Preforms a clean up of the nights data making sure everything has been transferred over. Sends out nightly reports.
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100