Telescope pointing algorithm

All coordinates entered to telescope control are in J2000. Using libnova, telescope driver can handle all coordinate transformations. With own class set, it can also handle most of TPoint telescope pointing terms.

Calculating coordinates on which telescope will be sent is a complex process. It is make more transparent by those variables, which are displayed in rts2-mon and also written to the FITS header of image. Writing takes place at the beginning of the exposure. Following list provides they name as written to FITS header. You will find them in rts2-mon when you remove substrings - e.g. ORIRA, ORIDEC pair is displayed as ORI.

Those values are important:

Following auxiliary values are used to track telescope offsets. Due to their transient nature, they are visible only in rts2-mon, and aren't written to FITS headers.

They are two algorithms worth mentioning. First is how OFFSets are handled, so telescope offseting do not cause observatory to move telescope during exposures. Second, similar algorithm is used for applying corrections (wcorr and CORR_ variables).

If you are interested to see how the code works, please see startResync() documentation for functions available to retrieve various coordinates. startResync is the routine which is called each time coordinates written as target should be matched to physical telescope coordinates. Using various methods in the class, driver can get various coordinates which will be put to telescope. You can also see telescope_driver for description how to add new telescope driver.