PDPRP Technical Telpos Description
PDPRP Technical Telpos Description
Telpos has a C and a Tcl/Tk part. The C code just starts up the Tcl/Tk part
and provides the routines that talk to the PC Guider over the serial port.
Here is an outline of the Telpos main loop:
- Update the GUI and handle events
- If the serial port is not busy, get the telescope position
from the PC Guider. The serial port could be in use
by a move command from Telcon or a user-entered command via the
pcg command in Telcon. To avoid getting someone
else's response from the PC Guider, each time a command is sent to
the PC Guider, a signal is sent to HQ saying the port is in use. The
signal is cleared once the calling program gets its response from
the PC Guider.
- Tell HQ the new position
- If a request for a New Image
came in, start loading it
- If already working on a new image, see if it's done. If so,
clear internal flag that says a new image is being loaded.
- If 15 minutes have passed since the last image load, start a new one
loading
- Sleep for 0.2s in an attempt to lower the CPU burden
Return to Technical File Description Page
Return to PDPRP Technical
Info Page
Return toPDPRP Main Page.