Download presentation
Presentation is loading. Please wait.
1
RTS2 Basic Customization
Lecturer:Linlin Zheng
2
Content Background Project Plan Demo Results
3
Content Background Working Plan Demo Results
4
Background The goal of the project
This work is based on software system upgrade project about 2.4m telescope in Lijiang observatory. The goal of the project Change the operating system from QNX to LINUX Code must be modular and extensible Retain the original basic hardware
5
Content Background Project Plan Demo Results
6
Project Plan Lijiang Observatory 2.4 m telescope basic control architecture TCC caculates the real-time state which the telescope should achieve, and sends it to MCC for execution. MCC calculates the specific operation, transmits command to Control nodes and monitoring the movements. What’s control nodes? Telescope Control Computer(TCC) Main Control Computer(MCC) Control Nodes
7
Project Plan The usage of rts2 Advantages
1) The original program has no source code. 2) rts2 can be distributed compiled and has its own protocol. 3) The code of rts2 is modular and extensive.
8
Project Plan The usage of rts2 The unconveniences for the project
1) rts2 is hardware-independent. And in this project, code for control nodes should be refactored. 2) Error controlling, such as mechanical error controlling, should be handled very carefully.
9
Project Plan Demo used in the project (an alt-azimuth telescope)
10
Project Plan The architecture of the demo
Build two simple control nodes. Extend the code of rts2 by mainly refactoring rotated part and teld part
11
Project Plan advantages Can meet the requirements of the users better.
Can make the maintenance and the replacement of hardware more easily.
12
Content Background Project Plan Demo Results
13
Demo alt/az control node(finished)
The concrete command communicated with PC: description of command send receive start to accept command O # move to alt/az r1000,2000# move accuratly to alt/az R1000,-2000# get alt/az G 1000,2000# stop moving S judge movement J 0# or1#
14
Demo alt/az control on PC(finished)
Practising the basic method to use rts2 program compile and integrate debug
15
Demo(specific functions)
Name of function Function Control() Constructor, mainly set the default serial port parameters; ~Control() Structure analysis function, delete the pointer when there is no need; ProcessOption() Define command line parameters, e.g. specifying the serial port; StartResync() Pointing to designated stars and the movement control; moveAltAz() Move the telescope by sending altitude and azimuth; StartTrackingControl() Track the star by sending command in certain interval. StopMove() Stop moving init() Initialization function, setting pointers for serial port and so on; Name of function Function initValue() Set the initial value, rend longitude, latitude, altitude and other information in the configuration file rts.ini; Info() Get information about telescope isMoving() Judge whether the telescope is moving; getDeg() Function communicate with zedboard, called by info() and so on , then the current telescope pointing coordinates will be returned. SetDeg() Function communicate with zedboard, called by moveAltAz () and so on , then the telescope will move to specific pointing coordinates. restart() Restart the telescope after stop
16
Demo rotator control node(continued)
The concrete command communicated with PC: description of command send receive stop moving S # judge movement J 0# or1# Angle to rotate M+1000#
17
Demo rotator control on PC(continued)
Communication with other module is the emphasis in this part. value event
18
Content Background Project Plan Demo Results
19
Results For the control of alt/az The interactive interface
20
Results Results showed in Hyper Terminal:
21
Thank You !
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.