Action disabled: register
cs:robozor:stellarium
Digitální planetárium Stellarium
Ovládání dalekohledu
Stellarium obsahuje rozšíření, které slouží k ovládání GoTo dalekohledů. Pro použítí s AROMem existuje AROM nod mount_stellarium, který ROS zprávy se souřadnicemi dalekohledu přeposílá do Stellaria, kde se na hvězdné mapě zobrazuje záměrný terčík.
Protokol
Kommunikace mezi Stellariem a mount_stellarium nodem probíhá pomocí TCP/IP protokolu. RA/DEC souřadnice dalekohledu jsou ve zprávě zakódovány takto:
-----------------------
server->client:
MessageCurrentPosition (type = 0):
LENGTH (2 bytes,integer): length of the message
TYPE (2 bytes,integer): 0
TIME (8 bytes,integer): current time on the server computer in microseconds
since 1970.01.01 UT. Currently unused.
RA (4 bytes,unsigned integer): right ascension of the telescope (J2000)
a value of 0x100000000 = 0x0 means 24h=0h,
a value of 0x80000000 means 12h
DEC (4 bytes,signed integer): declination of the telescope (J2000)
a value of -0x40000000 means -90degrees,
a value of 0x0 means 0degrees,
a value of 0x40000000 means 90degrees
STATUS (4 bytes,signed integer): status of the telescope, currently unused.
status=0 means ok, status<0 means some error
---------------------
client->server:
MessageGoto (type =0)
LENGTH (2 bytes,integer): length of the message
TYPE (2 bytes,integer): 0
TIME (8 bytes,integer): current time on the client computer in microseconds
since 1970.01.01 UT. Currently unused.
RA (4 bytes,unsigned integer): right ascension of the telescope (J2000)
a value of 0x100000000 = 0x0 means 24h=0h,
a value of 0x80000000 means 12h
DEC (4 bytes,signed integer): declination of the telescope (J2000)
a value of -0x40000000 means -90degrees,
a value of 0x0 means 0degrees,
a value of 0x40000000 means 90degrees
Zdroj free-astro.org
Protokol je dobře popsán na stránce yoestuve.es, kde je i Python příklad implementace.
cs/robozor/stellarium.txt · Last modified: 2017/08/28 11:13 (external edit)

