CCD是天文望远镜中最常见的观测终端设备,也是望远镜自主控制系统中的重要组成部分。随着天文望远镜自主观测需求的不断出现以及技术的快速发展,开源的RTS2软件系统成为目前该领域研究中受到较多关注的系统之一。但RTS2支持的CCD设备较为有限,同时控制接口约定也相对固定。在针对部分特殊的CCD设备(如LAMOST中采用的32台CCD设备、选址用的部分CCD设备)时,仅实现原有类的方法是不够的。在深入分析RTS2源码的基础上,重点从参数、命令、协议扩展方面研究基于原有的Camera类,通过继承的方法构造新的CCD类型,实现对LAMOST项目的CCD控制,取得了较好的效果,对在RTS2中集成望远镜系统其他类型设备也有较好的参考价值。
CCDs are among the most commonly used instruments on astronomical telescopes and are also important parts of autonomous control systems of astronomical telescopes. With emerging needs of automatic observations using astronomical telescopes and the rapid development of relevant technologies, the open-source RTS2 has become one of the software systems that are relatively more noticed in the field of automatic observations. However, the RTS2 supports rather limited types of CCDs, and its control-interface Convention is rather fixed, The original settings of classes in the RTS2 are not sufficient to incorporate special CCD devices (such as the 32 CCDs of the LAMOST and some CCD devices for thorough analysis of the RTS2 source codes, we investigate methods selecting observation sites). Based on our of constructing new CCD classes from the original Camera class. The methods are mainly about extensions of parameters, commands, and protocols. The methods are applied to the control of the CCDs on the LAMOST telescope and achieve rather effective results. The work of this paper provides rather valuable references for incorporating other types of equipments on astronomical telescopes into the RTS2.