Home

かなた望遠鏡用オートガイダー 及びガイド星自動捜索ソフトウェアの開発

image

Contents

1. II II OOOOOOOOO A 38 39 II I II II II II II II II II I II II II II II II II II II II II II II II II II I I 20 I I II IIIIIIIIII1IIII1IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II II I IIIIIIIIIIIII1IIIIIIIIIIIIIIIIIII CCXIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII I I I IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II I I IIII III1I1II1IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II P ra off dec off azi off alt off ir_off 1 1 0 II II IIII1III1IIII1II1IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 01IIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II 00000000 40000000000000000000000000U0000 24 1 431 11 1 1 31 IIII II II II II II II II II II II II HOWPA I II II LI LI LI 0000000000000000000000000 IIVIXIII II II II II II II II II L LI LI LI OO0O0O00000000000000000000000000000000000 OOOO0000000000000000000000000000000000000 O0O000000000000000000000YOOOODOODOOOOO II II II II II II II II II II II II II II II II II L LI LI II II LI II II II II LI II II II II II LI II pad0 00000000000 I IVI II II IIIIIIII II IIIIIIIIIIIIIIIIII I UIUUUUUDUUUUDUUUUDUUUUUUDUUUDUUUUDUUDUUD LI LI II LI I0CVMI90III I IL I
2. 3 0000000000 L LI 0 BOOL AC05 BClose DWORD hDev AC05 8 RESULT FAR xps Result OOOO000000000000000000000000000000 4 00000000 LI LI I VOID ACO5 SetData DWORD Data AC05 S DATA FAR xpsData LI OD 240000000 psResut J 0000000000000000000000 L LI LI 000 000 L LI LI 18 5 DRIVE COMMANDO 0000000 0 0 BOOL AC05_IWDrive DWORD hDev WORD Cmd AC05 5 DATA FAR eps Data C05 5 RESULT FAR xpsResult IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 0000000000000 Cmd dU LI 0040000 ID 128 1381 0 0000 6 Status Port nf II II LI 000200 102000000 FAR xpsResult 0000000 MCC05v200000000000000000000 20000 III IIIIIIIIIII1IIIIIIIIIIIIIIIIIIIIIIIIIII 27 CCDOO BITRANOO CCD000000000PCO000000000000000 CDD 00000000000000 ccb00000000000000000000 100 O0O0000000000000000000000000000000000000 000 CC0 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II 1 9311111101 1 000 CCDOpenDevice 2 00000000 LI LI U CCDControllerReset 3 ECDO II II II II LI 000 CCDGetInfomation 4 LI LI LI LI LI LI LL CCDStartExposure Time Time 0000 5 LI II LI LI II LI LI LI LI O CCDExposingState
3. Fotos O OOH ke NGE NF be E ENE AE DR MS 111 sr ee 020 IIIIIIIIIIIIIIIIIIIIIIIIIIIII Edo HL II II II DER O Has ce Y O E A STE 22 1111110111 1144111 I L 2222422 tere 2 TL II II A o rer A ee th 2021 HATET ET ra Orgad peewee Milne Er ea 2 3 2 Guide Star Catalog MODA ess a ew ee eee A AN Eee athe selene fk A rer SR EE 2061 Val RER EE SS ca ECG oe Bok Oh Bk A EEA Zee ren at Ge ends AG 030 IIIIIIIIIIIILI 31 IIIIIIII1IIIIIIIIIIIIIIIIII HOM Pol II HH I I _ 3 lt 3 lt __ su LLB EMM A gt gt OA ect ps de A CODE icky se Ac gh ae GE ENAP au Ae hes SATT EE 040 ILIIIIIIIIIIIIIIII I 12 12 13 13 13 14 15 16 18 19 20 22 22 23 24 25 25 27 IL UA A1 000000 L LI DO 1 1 2 1 3 1 4 1 5 2 1 2 2 3 1 3 2 3 3 3 4 LI III III II REED eos ease E eva VES ra HOWPol 00000000000 BOW Pol fy II II sa oe iere DE SL a 0 BS 41L 85 41110 LI LI LI D D D D a L L L L L L L LI L LI L LI L LI rcmin AHA EU ET II III TH Seba EE oh aes OU OU OU L LI L LI OU L 222 ee a ara L LI D
4. II II II IIIIIIIIIIII II II II II II IIIIII II II II II II II L LI LI II II LI LI II LI II II LI II II 1 0 II II II II II OOO0000000000000000000000000000000000000 L II LI II II LI LI II II II II LI II LI 22 11 11119 11 114111 01411 LI I II E D 00000 0000000000000 2II LI IIII IIII II II II LI II II II O0O00000000000000000000000000000000000000 O0O00000000000000000000000000000000000000 OOO00000000000000000000000000000000000000 OOO0O0000000000000000000000000000000000000 OOO0000000000000000000000000000000000000 O0O00000000000000000000000000000000000000 O0O00000000000000000000000000000000000000 0000 23 DOO0d00000000000 231 1 II II II II II IIII1IIII1I1IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII I 01IIIII1IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II po00000000000000 00000000 00 000000000000 L Guide Star Catalog GSCI USNO Hipparcos Tycho I 1 II II 10000 21L II IIIIII II II II II II I IIIII1II1IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II IIIIIIIIIII1IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
5. else if 15 lt decd orig 44 decd orig lt 0 di 1 for i 0 i lt 24 it di if i lt rah_orig amp amp rah orig lt i di sprintf fbuf ra 02d 02ddec 1500 dat i i di if fpl fopen fbuf rt NULL printf Can t open gsc file n exit 1 else if 15 lt decd orig amp amp decd orig lt o di for i 0 i lt 24 it di if i lt rah orig amp amp rah orig lt i di sprintf fbuf ra 02d 02ddec 1500 dat i i di if fpl fopen fbuf rt NULL printf Can t open gsc file n exit 1 39 else if 30 lt decd orig 44 decd orig lt 15 di 2 for i 0 i lt 24 i di if i lt rah_orig amp amp rah orig lt i di sprintf fbuf ra 02d 02ddec 30 15 dat i i di if fpl fopen fbuf rt NULL printf Can t open gsc file n exit 1 else if 45 lt decd_orig 44 decd orig lt 30 di for i 0 i lt 24 it di if i lt rah orig amp amp rah orig lt i di sprintf fbuf ra 02d 02ddec 45 30dat i i di if fpl fopen fbuf rt NULL printf Can t open gsc file n exit 1 printf Searching s On fbuf open output file if fp2 fopen f2 wt NULL printf Open error s n f2 exit 1 printf Center RA 07 5f DEC 07 5f n rarad decrad fprintf fp2 Cente
6. printf Pixdata d d d n pixdata 51 71 pixdata 51 72 pixdata 51 73 printf Pixdata d d d n pixdata 52 71 pixdata 52 72 pixdata 52 73 printf Write fits file status d n writefitsimage pixdata convert to 8bit data unsigned int pixel NY NX for j 0 3 NY j 39 for i 0 i lt NX i pixel j1 i pixdata j i C low 256 high C low if pixel j i lt 0 pixel j i 0 else if pixel j i gt 255 pixel j i 255 double GX GY LOS double guid_GX guid_GY double dGX dGY double rotate_dGX rotate_dGY double arcsec_dra arcsec_ddec remove skylevel LOS and get center of gravity GX GY Jushin pixel amp guid_GX amp guid GY amp LOS printf First center of gravity is getted n while 1 check whether telescope is tracking or not while TGetValueInt 138 0 Sleep 100 exposure starting printf Exposure started Exp time ld msec n Ti CCDStartExposure Ti while CCDExposingState 0 Sleep 100 printf Exposure finished n Transfer Image Data hCCD GlobalAlloc GMEM_MOVEABLE GMEM_ZEROINIT size cx size cy 2 CCDTransferImage 0 hCCD Finish Exposure CCDFinishExposure LPBYTE pCCD LPBYTE GlobalLock hCCD for 3 NY 1 j gt 0 j for i 0 i lt NX i ULONG data MAKEWORD pCCD 0
7. I LI II II LI II II LI II II II 20x20 mma 00000000000 RPB2 20 5500 0 0 BITRANO QU CCDQ LI II BS4L0 L I LI LI L LI LI LI II LI II LI II II 1360X10241 II II LI LL 8 8X0 45 mot I LI II LI LI II LI II 000000000 97 8x73 60 1 II I V LII 1 ICIII II I II II II II 0 PC 000 ccb0000000000000000 I IIIIIIIIIIII II II II 8 140000000 BS 41L OU 0000 00 DEERE EL VI ARES E UE BRS 400 500 600 700 Wave Length nm LI 1 5 BS 4ILQ 1 II II II II 1 3 89 40 OO OD 00000 BS 41L 00000000 USB or PCI 000000 CCDQ LI LI LI LI LI 0000 0000 9 II 0000 0000 0000000 080 0 USBLIQG OOO 400 LI LI II LI 1360 X 1024 111 IIIIIIIIIIIIIIII LI LI LI 000 25 C 16 bit 8 bit 1 ms 0 1 hour 8 8 x 6 45 mm I 97 8 x 73 6 00 6 45 x 6 45 um 900 L LI II LI I II LI LI II LI LI II LI LI II 0001000 658000000000000000 II II II II II IIII II II II L II LI I II LI LI II II II II II II LI II 000000000000000000004 4000000000000 65 L LI LI LI II LI LI LI II I II II II II II II II II II II II II II II II II II II II LI 18501 7 mm 0000000 Cccb000000000 645 mm IIIIIIII II 1IIIIIIIIII II II II II L LI LI LI LI ra ra ra 0 00645 18501 7 0 arctan 0
8. II IIIIII II II II II II II II II II II II II II II II II II II II II II II LI II I II I LI I II II II II II II I II II II II I II II II II II II II II II II II II II II II LI L LI LI II LI II II II II II II II II II II LI II ra 12 1 1 1 1 1 1 HOWPol HOW Pol Hiroshima One shot Wide field Polarimete Q DD 0 0 ml p20xgp40000000000000000000000000000000 I IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II II I IIIII1IIIIIIIIII1IIII1IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II II II II II II II II II II I I I I I III III IIII III II IIIIIIIIIIIIII II II EL IIII1II1IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II LI O OO 0O LI L L L L 5 L 1 1 LI II II LI II II II II II II II LI L LI L LI LI OU L LI LI LI LI 0000000 000 000000 L LI LI LI LI OU LL 1 1 LI LI LI II II LI LI LI OD 000000000000 0000 1540mm O00 FO 2 0 pog0000000000000 12 01 po0000000000 11 1500 mm 1 FWHM LI LI II 5 sec LI LI 2 sec 1 sec DD L LI LI HOwPop0000000000000000000000 0000 ccoo DUDU CC00 IL I II II I LI II II II II II II LI 1000 1100
9. pCCD 1 A D OD 16bit DD pixdata i j data pixdata j i data pccD 2 GlobalUnlock hCCD GlobalFree hCCD printf Pixdata d d d n pixdata 50 71 pixdata 50 72 pixdata 50 73 printf Pixdata d d d n pixdata 51 71 pixdata 51 72 pixdata 51 73 printf Pixdata d d 4 n pixdata 52 71 pixdata 52 72 pixdata 52 73 printf Write fits file status d n writefitsimage pixdata convert to 8bit data for j 0 3 NY j for i 0 i lt NX 3 1 pixel j i pixdata j i C low 256 high C_low if pixel j i lt 0 pixel j i 0 else if pixel j i gt 255 pixel j i 255 remove skylevel LOS and get center of gravity GX GY Jushin pixel amp GX amp GY amp LOS if guid GX GX guid GY GYA dGX GX guid GX dGY GX guid GX pos_now amp ratel amp dectel amp nsrot dtheta nsrot orig_nsrot deg2rad 40 rotate dGX rotate dGY dGX cos dtheta dGY sin dtheta dGX sin dtheta dGY cos dtheta arcsec dra rotate dGX SF arcsec ddec rotate dGY SF SendTelescopeOffset arcsec dra arcsec ddec Initializing Socket communication int SockInit void WSADATA wsa int ret if ret WSAStartup MAKEWORD 1 1 amp wsa char buf 80 sprintf buf Ad is the err ret printf s n buf
10. 15 gt 6 gt 30 30 gt 6 gt 45 KO X 1 8 8 12 12 24 24 12 12 DD EB INR WW ADD 1111111010 1I1 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 0000 321 1 1 I I IIIIIIII1IIIIIIIIIIII1IIIIIIIIIIIIIIIIII 00000000000000G5C12000000000000000000000 O VizieR Service http vizier u strasbg fr viz bin VizeR DO 0000000000 23 e 7027h les 0 32 00000000000000000 radi 1111111011 TT arcmin L LI LI II LI II LI 10L II L II II II II II II II II II II II II I LL V1710 L1 II II LI II LI II LI II LI UI 000000000 1091 III IIIIII II IIII II II II II II II II II II II II IIII II II II II II II II I L LI LI II LI LI 33 IIIIIIIIIIIIIIIII IIII II II I 1 II II II II II II II IIII paga Bog 0000000000000 0000000900000 00000000000000000000000000000 090000 L LI I II I II I II I LI I LI II II II II II II II II II II 000000000000 OO LI OOOO OOo OO OOo D Y II II IILI II II II II II LI II LI LI LI II II LI LI II II II II II II LI II II II II II II II II II II II II II II I L L L L L L L I III IIII 80000 811 II II II II II II II II II II II II II I II II II II II I II III III II II II II II II II II II II II II II IL II II II II II I II I II I II IIII LI II II II II II LI II II
11. 100 buf4 100 buf5 50 buf6 50 buf7 50 char ratmpstr 20 0 00000 dectmpstr 20 0 00000 magtmpstr 20 00 00 radiustmpstr 20 0 00 char center rastr 20 0 00000 center decstr 20 0 00000 double ratmp dectmp magtmp radiustmp double ramax decmax magmax 16 1 radiusmax 0 double center ra center dec double ra guide dec guide mag guide radius guide double dra ddec double nsrot double ratel dectel double rotate dra rotate ddec double arcsec dra arcsec ddec double orig2gstar pulse x orig2gstar pulse y double dtheta double SF SF 0 072 4 arcsec pix FILE fp if fp fopen circgetout rt NULL printf Cannot open circget output file s n circgetout F else while feof fp 0 fgets buf 200 fp if strcmp buf last buf 0 continue sscanf buf As hs hs hs hs hs hs buf1 buf2 buf3 buf4 buf5 926 buf7 if strcmp bufi Center O amp amp strcmp buf1 Radius arcmin O amp amp strcmp buf1 Scanning OG strcpy ratmpstr buf1 ratmp atof ratmpstr strcpy dectmpstr buf2 dectmp atof dectmpstr strcpy magtmpstr buf3 magtmp atof magtmpstr strcpy radiustmpstr buf4 radiustmp atof radiustmpstr if magmax gt magtmp amp amp radiustmp gt 3 00 ramax ratmp decmax dectmp magmax magtmp radiusmax radiustmp if strcmp buf1 Center 0 f strcpy center
12. II III IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II LI LI LI VI II LI LI II II II II LI II II II II II II II II II II II II LI II I L LI LI L L L L L L L L ra 1 HOWPoll I DU Ii I UID 2 000000000000 HOWPADODODODODO 3 II II II II II II II II II II I II II II II II II II II II II II II II II II II II II II I IIIIII II II IIII II LI IL II I IIIIIIIIIIIIIIIIIIIIIIIIIII HoWPlll000000000000000 I LI II II II II II X 2557001 233 arcsec 20 9 mm Y 236194 215 arcsec 19 3 mm OOOOOOOOOOOOOOOO0O0O0O0000000000000000000000 1 II 000 22 RIAA 2 THEY AF HOWPol RH P 89 I8 2 gt 8 ALY AF 0 3 1 LI I II II II LI II II LI II LI LI 32 IIIIIIII IIIIIIII 1 II II II II 230 II LI II I I 5C1 2LI II II IIIIII IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II II IIIIII II IIIIIIIIIIII IIIIII II IIII II II IIII II II II II II II II II II so LI I II LI LI II LI I II II LI II II II II II II II II II II II II II II II II II II II II II II II 0 II LI I II II II II II II II II II II II II II II II II II II II SI 0 31 0000 C5C L II II 00 oO LI 00000Ohowf 00000 90 gt gt 75 75 gt 6 gt 60 60 gt gt 45 45 gt gt 30 30 gt gt 15 15 gt 0 gt 0 0 gt 6 gt 15
13. amp AcO5Result amp StopCode WaitNotBusy printf X Y 5 pulse scaming n ACO5_BRStatusi hDevi amp Statusi_x amp AcO5Result ACO5_BRStatus1 hDev2 amp Statusi_y amp AcO5Result dof ACO5_SetData 5 amp AcO5Data if Statusi_x amp 0x08 0x00 ACO5_IWDrive hDevi 0x14 amp AcO5Data amp AcO5Result WaitNotBusy else printf X axis completed n ReadyWait amp AcO5Result amp StopCode ReadyWait2 amp AcO5Result amp StopCode ACO5_BRStatus2 0671 amp Status2 x amp AcO5Result NowAddressDisplay amp AcO5Result while Status2_x amp 0x08 0x00 dof ACO5_SetData 5 amp AcO5Data if Statusi_y amp 0x08 0x00 ACO5_IWDrive hDev2 0x14 amp AcO5Data amp AcO5Result WaitNotBusy else printf Y axis completed n ReadyWait amp AcO5Result amp StopCode ReadyWait2 amp AcO5Result amp StopCode ACO5 BRStatus2 hDev2 amp Status2 y amp AcO5Result NowAddressDisplay amp AcO5Result while Status2 y amp 0x08 0x00 NowAddressDisplay amp AcO5Result counter reset cur_pulse_x 0 cur_pulse_y 0 printf Origin drive is completed n n void WaitNotBusy char flagx flagy flagx flagy 0 0 while flagx O flagy 0 if flagx 0 ACO5 BRStatus1 hDev1 amp Statusi_x amp AcO5Result NowAddressDisplay amp AcO5Result if Statusi_x amp 0x
14. exit 1 return FALSE Socket Connection for Client int SockConnect void SOCKADDR_IN cl_sin sock socket AF_INET SOCK_STREAM IPPROTO_TCP if sock INVALID_SOCKET printf Socket failed return TRUE memset amp cl_sin 0x00 sizeof cl_sin cl_sin sin_family AF_INET cl_sin sin_port htons PORT cl_sin sin_addr s_addr inet_addr HOST_NAME if connect sock LPSOCKADDR amp cl sin sizeof cl sin SOCKET ERROR if WSAGetLastError WSAEWOULDBLOCK 1 closesocket sock sock INVALID_SOCKET printf connect failed return TRUE F return FALSE Get current ra dec offset ra dec nsrot double GetTelValue TELEPARAM teldata char wbuf 1024 rbuf 1024 memset wbuf O sizeof wbuf memset rbuf O sizeof rbuf RA 083 DEC 084 OFF1 R A OFF1 DEC OFF1_ROT2 sprintf wbuf A 03d 03d 03d 03d 03d n 38 39 50 51 306 if send sock wbuf strlen wbuf O SOCKET_ERROR printf Sending Socket connection failed Sleep 100 if recv sock rbuf 1024 0 lt 0 printf Receiving null data in Socket Connection sscanf rbuf A lf Alf 11 1 41 n amp teldata gt obj ra amp teldata gt obj dec amp teldata gt offset ra amp teldata gt offset dec amp teldata gt nsrot return FALSE gt int TGetValueInt int command char wbuf 1024 rbuf 1024 me
15. h char str 300 long cur_pulse_x cur_pulse_y long center_pulse_x long center_pulse_y 255700 236194 float orig_nsrot 63 8 float thetaorg 15 0 define DIB HEADER MARKER WORD M lt lt 8 787 BM define PALVERSION 0x300 DIB constants define MAXPALCOLORS 256 define NX 340 define NY 256 define nx 50 define ny 50 define PI 3 1416 define TELFLAG O define C low O define C_high 65535 static DWORD hDev1 static DWORD hDev2 static 05 8 DATA AcO5Data static ACO5_S_RESULT AcO5Result static ACIO_S_RESULT AcIoResult static WORD Cmd static WORD Data static ALK_S_RESULT AlkResult static WORD Statusi_x static WORD Statusi_y static WORD Status2_x static WORD Status2_y char mid char buf int ns int nn 29 0000000000 0000000000 000000 RESULT 000 RESULT 000 RESULT 00000 int i for i 0 i lt nn 1 i str i buf ns i 1 str nn 07 return str Open X axis port void XAxiOpen void if ACO5_BOpen ACO5_USB 1 ACO5_X ACO5_SLAVE_CD773 hDev1 amp AcO5Result O printf Open Error X axis n 81968 1000 exit 1 Cmd OxF9 ACO5 BWDriveCommand hDevi amp Cmd amp AcO5Result printf X axis is opened n Open Y axis port void YAxiOpen void if ACO5_BOpen ACO5 USB 1 ACO5 Y ACO5 SLAVE CD773 amp hDev2 amp AcO
16. opened n OriginDrive SockInit SockConnect printf Circget n circget detgstar printf Start autoguide n AutoGuide XAxiClose YAxiClose closesocket sock sock INVALID SOCKET printf Now sleeping n Sleep 10000 return 0 43 00000000000000 c000000000000000000000000 9 II I 1 000000000000 II II II II II II II II II II II IIII II II II II I L LI LI II LI II II II II II II II II II II II II II LI I LI 44 11 11 1 OOOO 00000 20081 2 0000000000 1 4 L II II LI II II LI II II II II II II II II II II II 00000200 330000 000 CUD 000 M00000000000000 20040 4 I ALOOOO UBOOOOODOD CB 23 USBQ 0 0 0 0 LI III Melec 5 DALDBO 0000000 CB 34 100 00000 LI Melec 6 BOBO BO III IIIIIIIIIIIII IIII CD 773 ADB5331A 0000000 O Melec 7 STEPPING amp SERVO MOTER CONTROLLER S OPTION MPL 28 ALUSBWXP D0 000000000000 AL MCOS II II II 00 Melec 45
17. rastr buf4 center ra atof center rastr strcpy center decstr buf7 center dec atof center decstr ra guide ramax dec guide decmax mag guide magmax radius guide radiusmax if magmax 16 1 amp amp radiusmax 0 printf Please select a guide star by yourself n else printf Guide Star nRA rad 07 5f DEC rad 08 5f mag 05 2f radius arcmin 04 2f n ra guide dec guide mag guide radius guide Moving stage to guide star dra ra_guide center_ra ddec dec_guide center_dec 37 pos now kratel amp dectel amp nsrot dtheta nsrot orig nsrot deg2rad rotate dra dra cos dtheta ddec sin dtheta rotate ddec dra sin dtheta ddec cos dtheta arcsec dra rotate dra deg2rad 3600 arcsec ddec rotate ddec deg2rad 3600 orig2gstar pulse x center pulse x arcsec dra SF pix2pulse orig2gstar pulse y center pulse y arcsec ddec SF pix2pulse printf Send pulse to X stage 4 n DWORD orig2gstar pulse x printf Send pulse to Y state d n DWORD orig2gstar pulse vi ACO5_BWaitDriveCommand hDevi 0 amp AcO5Result ACO5 SetData DWORD orig2gstar pulse x amp Ac05Data ACO5 IWDrive hDevi 0x14 amp AcO5Data amp AcO5Result WaitNotBusy PulseCounter x long orig2gstar pulse x ReadyWait amp AcO5Result amp StopCode StopCodeDisplay StopCode ACO5 BWaitDrive
18. 000000000 O0O000000000000000000000000000000000 OOO000000000000000000000000000000000000 ILIIIII II II I II II II II II II II III II I II I II II II II II II II II II II II IIII II II II II II LI I 1 II III 0000000000 II II II II II II II II II II II II II LI LI LI LI LI LI LI II LI LI II LI OOO000000000000000000000000000000000000 LI I II I II I II I II II II II II II II LI II LI II II II II II II II II II II II II II II IIII II II II LI II 0000000000 000000000000000000000000070 ICVI III II LI II CCDD 20000000000 80000000000 I Chi II 0000 Chrpo 00000 00000000000 p10000000000000000000000000 O00Cdip000000000000000000000000000000000000 16 seg 634 741 021 LI I II LI II LI II II LI II II LI II II LI 2100000530000000000069550J00000000000000000 chip I I 0000000000000000000000000000000000 FR OOO0O000000000062000000000000000000000000 DOOOOO00000000000000000000000000000006200 000000000 Cp1000 310000000000000000000000 0000 OOO00000000000000000000000000000000000 LL III III I I C I 1 I II II IIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIII Chipi 00000000000000Cbp100000000000000000000 0000000000000000000 2 2LI II II II I II LI II II II II II II II II LI LI LI I II LI I II LI II II LI 000000000000000000 120000 5LI IIII IIII II II IIII III II II II IIIIIIIII IIII12II II IIIIIIIIIIII II II II III II II II II IIII II II II II II II II C00IIIIIIIIIIIIIIIIII II IIIII
19. 00000000000 000000 4500000000000010000000000000000000 000000000000000000H0oWPd0000000000000000 OOO0000000000000000000000000000000000 OOO0000000000000000000 HOWPIDODODODODOO O0O000000000000000000 O0O000000000000000000000000000000000000 D 1 II II II II II II I I I IIIIIIII II II IIIIIIIIIIIIII 0000000000000 L LI LI 2 00000000 ccb00000000000000000000000000 L LI LI LI II LI 3 II IIIIII II IIIIIIIIIIII IIII II II II II II II II II II I II L LI LI II II LI LI II LI 27 4 ODO DO DO I II II II DO IIIIIII II III II II II II II II II II II II II II II II II II II II L LI LI II II LI LI II II II II LI II OO000000000000000000000000000000000000 CCD IIII II II L LI LI LI II LI LI II II II II II IIII II II II II II 28 A A1 II II LI LI II II AG sato cpp 0000 0000000000000 00000000000 include stdafx h include lt stdlib h gt include lt math h gt include lt string h gt include lt string gt include lt conio h gt include tel h include inc_def h include lt afx h gt include AcO5A h include AlUsbA h include AcIoA h include Bulkusr h include communi h include lt windows h gt include fitsio
20. 01 0x00 flagx 1 if flagy 0 1 ACO5_BRStatus1 hDev2 amp Statusi_y amp AcO5Result NowAddressDisplay amp AcO5Result if Statusi_y amp 0x01 0x00 flagy 1 void WaitLimit Of char flagx flagy flagx flagy 0 0 while flagx O flagy 0 if flagx 0 ACO5_BRStatus2 hDev1 amp Status2_x amp AcO5Result NowAddressDisplay amp AcO5Result if Status2 x amp 0x08 flagx 1 31 if flagy 0 ACO5_BRStatus2 hDev2 amp Status2 y amp AcO5Result NowAddressDisplay amp AcO5Result if Status2 y amp 0x08 flagy 1 void RateSet void RATE SET X OO RATESET DRATE 10ms 1000Hz URATE 10ms 1000Hz ACO5_BWaitDriveCommand hDevi 0 amp AcO5Result Data 0x11 ACO5_BWDriveData2 hDevi amp Data amp AcO5Result Data 0x11 ACO5_BWDriveData3 hDevi amp Data amp AcO5Result Cmd 0x06 ACO5_BWDriveCommand hDevi amp Cmd amp AcO5Result LSPD SET LSPD 1000Hz ACO5_BWaitDriveCommand hDevi 0 amp AcO5Result ACO5_SetData 3000 amp Ac05Data ACO5_IWDrive hDevi 0x07 amp AcO5Data amp AcO5Result HSPD SET HSPD 5000Hz ACO5_BWaitDriveCommand hDevi 0 amp AcO5Result ACO5_SetData 50000 amp AcO5Data ACO5_IWDrive hDev1 0x08 amp AcO5Data amp AcO5Result RATE SET Y DO RATESET DRATE 10ms 1000Hz URA
21. 072 1 IIII II II II II II II II II II II II II II II II I II II II LI II II II II II LVVIIM I LI II LI II II LI II II II II II II LI II II II LI II II II II II II II LI II II II 1 2 II II II II II II II II LI II LI II 00 14x14 LI II II II II II IIII IIIIIIIIIII IIIIIIIIII III IIIIIIII II II II II II L 1 II III II III II III II II II II II II II II II II II II II LI I III II II II IIIIIIIIII 1XIII IIII II IIII II II LI II I II I II I II I II II III II II II II II II II II II II II II II II II II II II II LI 0000000 ICVI III II IIII I I I I ccb0o0o000000000000 0000 4X4 II LI II LI LI II LI II II LI II LI LI E E EL 2 BE BG EL EZ LI LI 142 LL II II II II 0000000000000ccb00000000000000000000000 XLI V IL II LI I II II LI II LI II II I II LI II II II II II II II IIII II II II II II II II II II II II II II II 0060000000000000 0Y06000000000 1000000 2000 000000000000000000000000000000000000 ALOOO 000200000000000000000000000000 CD 773 ADB5331A I I 1CI IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII O0O0O00000000000000000000000000000000000 LI II LI I II I II II LI II LI II I II II II II II I II I II II II II II II II II II II II II II II II II II LI I L LI LI II II LI II LI LI II Lo HEETE EEE EEE 00000000000000000 1
22. 1111111111 1 LI II IIII II II II II IIII IIII IIII 1 II II II 111111111101111 11111 11 Ua HIERHIN B034188 LI KRACK HOH 20110 20 250 00 00000000000020600000000 DODO 000000000 III II II II II II III II II 1 0000909000 II HOWPol L I II LI I II II II II II II II II II II II II II II II LI II I 20091 LI LIII LI II I II I LI II II LI LI II LI II LI LI II LI II LI II I II II LI II II LI II II II II LI II LI II IIII II IILI II II 23000000 1 II II II II II III I II II II II II II II 1111 1 II II Oooo I 1 000000000000 OOOO00000000000000000000000000000000000 OOO00000000000000000000000000000000000 000000000000000000000H0WPd000000000000 LIIIII II IIIIIIIIIIIIIIIIIIIIIII IIIIIIII II IIII II II II II II II II 0000000000000000000000000000000U000000000 00000000000000 ccb0000000000000000000 LI III II I II II I II II III II II II II II II II II II II II II II II II II II II II LI I I II LI LI II LI II II II LI LI ra UU 010 OG tz EEEL NN An OCO 12 11111 HOW 08 re oe raa ni ta ES Ed UD _ 2 lt _ _ _ 14 HOV PITT 8 1 III 9 L 11 esses O Geese Gees im Se EE _ DAS PEED teses
23. 3292 PI 180 int i FILE fp1 fp2 char buf 250 last buf 250 fbuf 50 double 81 di a2 d2 double rahms decdms ras decs double ratel dectel int rah ram int decd decm double rarad decrad double rah_orig decd_orig double decsign double nsrot char 2 circget out output file name double radius 8 search radius double coscrit sind1 cosd1 double cosd2 sind2 cosaa cosc int n 0 nm 0 int di center position rah rahms 10000 0 ram rahms rah 10000 0 100 0 ras rahms rah 10000 0 ram 100 0 rah_orig rah ram 60 0 ras 3600 0 rarad rah_orig 15 0 Deg2Rad ai rarad decd decdms 10000 0 decm decdms decd 10000 0 100 0 decs decdms decd 10000 0 decm 100 0 decd orig decsign decd decm 60 0 decs 3600 0 decrad decd_orig Deg2Rad di decrad pos_now amp ratel amp dectel amp nsrot rarad ratel 3600 15 Deg2Rad al rarad rah_orig rarad 15 0 Deg2Rad decrad dectel 3600 Deg2Rad di decrad decd_orig decrad Deg2Rad if decrad lt 0 0 decsign 1 0 decrad 1 0 else decsign 1 0 if 75 lt decd_orig amp amp decd_orig lt 90 strcpy fbuf ra0024dec7590 dat if fpi fopen fbuf rt NULL printf Can t open gsc file exit 1 34 else if 60 lt decd orig amp amp
24. 4 FE renens 722 Sleep 100 1 DEV 1 resvi 592 rbuf 1024 9 lt OM Ke printf Receiving null data in Socket Connection 209 2430 2563 2674 2797 2918 3039 3162 328 1 ine seth E TE D sscenfCrbuf A BLE ZIF RIC RIC Sir 815 data bobl ra bleldata gt obl dec Meldate boffsetre Me ec i HE return FALSE 3 uso 1 USBIOCTLH e 5 int T stfalueint int connand J char vbuf 1124 rbuf 1024 2 8581 bur 0 Saro wbuf LORE Op aaa solches sole cpe 121 varnine DC 3 5C des fo Es nora FIS Drang levo cul deu oe der fae se 5 1 886 51 6 177 vatnine 04144 318 I gt By hat 7 LE 69 Progran Fesil Deler zt seto Debue BulldLos htu IESEL Ea 13 62 E EM 1 2403 Weigh isn 0 3 4 LI LI LI I II LI LI II LI II LI 26 LL II E N FE 000000 HoWP20000000000000000000000000000 OOO0000000000000000000000000000000000000 L LI LI I II LI I II II II II LI II L LI LI VI II LI LI II LI II II LI II LI II LI 1 II LI LI II LI II LI II II II II II II II LI II II LI II IL 2 0000000 CCIII II III IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II 3 LI II LI II II II I II LI II II II II II II II LI II I LI 00000000000000000000 CCDOOOOOCFTISIOO OOO tel II 0000000DS00000000000 0000000000000000000000000000000 000 Guide Star Catalog12 0000000000000000000000
25. 41600000000000000 59 MIIIIII L II I II I LI I LI II II II II II II II I II LI II II II II II II II LI II II II II II II II II II LILI II LI LI 00000000 5 10L II II II II II II II II II II II II II II IIII II IIIIIIIIII II II II LI II I 10 L 1 4 LI LI II LI II LI II II II II II LI II L LI XLI V LI og 0000 KSS THK KSS THK 00000 ID TS3667N14E2 SRS12M TS3667N14E2 SRS12M SGSP 60YAW 0B 1000000 4 pm 0 031 pixel 4 um 0 031 pixel 0 005 I LI II II I II IIII II II II II I IIIIII II LI II II 00060 UDDUDD I IIIIII II II I II II II II II II II L I IIIII 4mm 4mm 0000 USB USB USB OOOOO0 115 mm 115 mm 0000 0000 11 06 mm s 0000 11 06 mm s 000000 0 66 mm s 000000 0 66 mm s 1 011 10 1 1 I III IIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIII II II II O0O0000000000000000000000000000000000000 OOO0000000000000000000000000000000 00000000000000000000000 230000000000001 4 0100 0 6L II LI II III IIIII IIII III III IIII II III IIII IIII IIII II II II II II II II II 06 I I III II II IIII IIII II II II II II II 0000000000000 00000000000 II II III II II II II II II IIII IIII II II II II II II II LILI L LI LI II II LI LI II LI II II II II LI II OOOO Ooo 11 LI ET EL EJ EI GAE L L D D Oo
26. 5Result 0 printf Open Error Y axis n Sleep 1000 exit 1 Cmd 0xF9 ACO5_BWDriveCommand hDev2 amp Cmd amp AcO5Result printf Y axis is opened n n Close X axis port void XAxiClose void f ACO5_BClose hDevi amp AcO5Result printf X axis is closed n Close Y axis port void YAxiClose void f ACO5_BClose hDev1 amp AcO5Result printf Y axis is closed n long PulseCounter x long input pulse x cur pulse x input pulse x return cur pulse x long PulseCounter y long input pulse y t cur pulse y input pulse y return cur pulse y void OriginDrive ACO5 BWaitDriveCommand hDevi 0x00 amp AcO5Result ACO5 BWaitDriveCommand hDev2 0x00 amp AcO5Result ACO5_BWaitDriveCommand hDev3 0x00 amp AcO5Result Cmd 0x12 ACO5_BWDriveCommand hDevi amp Cmd amp AcO5Result printf X axis is initiallizing n ReadyWait amp AcO5Result amp StopCode Cmd 0x12 ACO5_BWDriveCommand hDev2 amp Cmd amp AcO5Result printf Y axis is initiallizing n ReadyWait2 amp AcO5Result amp StopCode WaitLimit printf X Y 200 pulse moving n ACO5 SetData DWORD 200 amp AcO5Data ACO5 IWDrive hDevi 0x14 amp Ac05Data amp AcO5Result 30 ACO5_IWDrive hDev2 0x14 amp AcO5Data amp AcO5Result ReadyWait amp AcO5Result amp StopCode ReadyWait2
27. Command hDev2 O amp AcO5Result ACO5 SetData DWORD orig2gstar pulse y amp AcO5Data ACO5 IWDrive hDev2 0x14 amp AcO5Data amp AcO5Result WaitNotBusy PulseCounter_y long orig2gstar_pulse_y ReadyWait2 amp AcO5Result amp StopCode StopCodeDisplay StopCode printf X Y stage is moved to guide star n return 0 FITS write image using cfitsio 1 int writefitsimage unsigned int pixdata NX fitsfile fp char outfile current fits allows overwrite if it already exists int status long fitsnaxes 2 fitsnaxes 0 fitsnaxes 1 NX NY if fits create file amp fp outfile amp status 0 printf Cannot create file s status d n outfile status return status if fits create img fp USHORT IMG 2 fitsnaxes amp status 0 printf Cannot create image header status d n status return status if fits_write_img fp TUINT 1 fitsnaxes 0 fitsnaxes 1 pixdata amp status 0 printf Cannot write image data status d n status return status if fits close file fp amp status 0 XX printf Cannot close file s normall status d n outfile status return status return 0 void AutoGuide void 38 CSize size HGLOBAL hCCD NULL long Ti double exp_time 1 0 int i j double nsrot double ratel d
28. I II II II II II II II II II II II II II II II II II II LI II II II II II LI 0000000000000000020000000000000000000 000000000000000000U0000000000000U II LI II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II I II L LI LI I II LI LI II LI II II II II II L I II LI LI II II LI II II II II II II II II II II II II II II II II II II II II II II II II II II I II I I I I II IIIIIIIIII IIII II III IIIIII IIII II II IIII II II II II IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIICCIIIIIIIIIIIIIIIIIIIIIIII II II II LI LI II II II II II II II II II II II II II II II II II II II LI I ra ra O O 0O 0 0 LI LI LI X I I LU Ll El EI 25 W SAOImaee det File Edit View Frame Zoom Scale Color Region Analysis Help File current fits Object Value WCS Physical x M Image x Y Frame 1 Zoom 1 000 Angle 0 000 file edit view hame zoom scale color region help about save image header page setup exit 2309 2430 2553 2674 2797 2916 3039 3162 3283 0 3 3 0590 000000000000 ccoo II I VNC HOWPOLG 550 Imace ds9 E Fie Edt Yew Frame Zom Scale Gobr USB Driver 1 een Analysis Help Fle euroni AL 917109 sul 360 gt 1024 7109 4 Y sum x 140 Y 840 Fensi Zom 1000 000 gt ara nn met about open save mage header page setup pint B Match 1
29. II II II II II II II II II II II LI II LI II I LI I II LI II II II II II II II II II I II II III LI II II II II II LI II II II I II I II II II II II II II II II IIII II II II II I II II II II II II II L LI LI LI II LI EI EU CC LI 3 L 1 L1 L1 L1 1 JoJo xxo no LI oT ef fl e 0 O CO OOOO Ll Oo 0 Oooo 24 3 4 CCD 0d 00 0000000000000 000000000000 O0000000000 Visual CF 0000000 CString 000000 II II IIII II II II II II II II II IIII II II II LI II L 000000000 CString II II II II II II 0 III char ID II II 00000000 SStraegdo 000000 0000000000 LI char 0000000000000 000000000000 L LI LI I II LI LI LI II II II II LI II II II II LI 00000000000ccb000000000000000000 L II LI II LI II LI II II II II II II II II II I II II II II II II II LI II II II II II LI 0000000000000000000000000000 CCD 00000000000044s0 0000000000000000 00000000000000004s0 0000000000000000000 00000000000 CFICSO000000000000000000 CCD LI fs 0000000 fs 000000000 330000 D5000000000000000 Q y O LI LI LI LI LI 000 000 L LI LI 000 000 000 E EJ Ea 0 0 E LI CI L I L OO A Ooo 35 111 I 000000000000ccob0o000000000000000000000000 L LI LI II LI LI II II II II II I
30. III II II II II II II II 0000000 1 II LI LI II LI II II LI II II II II LI II 2 LI II LI I II LI II II II III II II 8II II II II II II II II II II II II I 3 II LI II II LI I II LI II II LI II LI II II LI 4 I I IL III II II LI II L LI LI L L L LI LI LI II LI II LI II II II II LI II II II II II II II II 15 5 LI II LI II I LI II II LI II II II II II II II II II LI II II II II I LI II 6 I I 1 L IIIIII CCD 1000 7 DODODD0 0000000 s 00 1000 9 LI LI LI LI II LI I II LI II II LI II LI II II II II II LI II II LI 10 LI II LI I II II II II II II II II II II II II II I II II 11 8 10 900000 II LI LI I II II III II II II LI II II II II II II II II II II II II II II II II II II II II II II II II III O0O0000000000000000000000000000000000000 OOOO000000000000000000000000000000000000 OOO0000000000000000000000000000000000000 000 25 IIIIIII IIII II III IIIIIIIIIIIIIIIIIIIII II II II II II 00000000000 2 1 1III III II IIIIIIIIIIIIIIIIII II II II II II II II II II LI I II I II I LI I II II II II II II I II LI II II II II II II II LI II II LI II II II LI II II II II LI O0O0000000000000000000000000000
31. IIII 100000 000000000000000000000000000000 Gsc12000000 LI LI II LI LI Ooo LI L L L L Ooo ra 13 0 2 1 LI LI II LI II LI LI II LI L LI LI LI II OU 0000 0000 OO GSC1 2 0 19000 160 0 5 arcsec 1 111111 01 01 III USNO A2 0 O 50 0 200 0 25 arcsec I LI II II II 1 1 11 II I Hipparcos Tycho II 1000 0 12 0 03 arcsec 000000 2 3 2 Guide Star Catalog 000000 GSC http archive stsciedu gsce J II 11 1011011010 110010 OU L LI L LI L LI L OOO0O0000000000000000000000000000000000 L LI LI II II II II II II II I IXL II II IIII II IIII II II II IIII II IILI II L II LI II LI II II II II II II II II II II II II II II II II II II II II II II II II II II II II 00000000000000000 CCIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII I I II LI LI II LI II II II LI 1 BOBO DO III IIIIIIII IIIIII IIIIIIIII IIIIII III IIIIIII LIIIII II II II II II LI I 2 LI LI LI LI II LI II II LI LI II LI LI 45 LI LI II LI II II LI II II LI II LI 3 LI II LI II II LI II II LI II II LI II LI II II LI 4 GSC 0 00000000000000000MD00000000000000 ra II 00000600 EG EJ E EG man I 00 LI ta m LI 1 LL oO g LI I I EZ E LILI II III IIIIIIIIII 219 II II II II LI I0VII II LI II II LI 00000000000000G5c0o0 100000000 96000012 000000000000U000U000000000U000U0000000 LI III II IILI II II II II II II II II
32. IIII IIII IIII II III II II II II II II LI II II II II II IIII LL 2 21 LI II II LI II II LI II II II II LI II L II LI II I II II LI II II II II II II II LIII II II II II II II II II II II LI II LI LI II II II II II II II II II II II II II II II II II II II II II II II II II II II II II LI II LI II II II LI II LI II LI II II II II II L II II LI II LI II LI II LI II II II II II II II II II II II II L II LI II II II II LI L LI LI II II LI II II LI II LI LI IIIIIIIIII II II II II II IILI II II II II II II II II II II II LI 0000000 113 II II II LI II LI II LI II II II LI II LI II LI II LI LI LI 14 0 22 C5XCIII II IIII III IIIIIIIIII IIII II GSC field bits spare 1 GSC ID 2 15 RA 16 37 DEC 38 56 pos error 57 65 mag error 66 72 magnitude 73 83 mag band 84 87 multiple 88 spare class 0 star 3 non stellar 90 92 plate id 89 93 96 0000008 00000000000000000000000 0000000 000000000000000 000000000000000000000000 00000000000000000000000000000 8200000 24 1 11101 0 1 1 II LI II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II LI LI LI II LI II II LI II II II II II II II II II II II II II II II II II II LI I I II III IIIII1IIIIIIIIIIIIIIIIIIIIIII IIIIIIII IIIII
33. IIIII I 0CII IIIIII IIIIIIIIIIIIIIIIIIIIIIIIII I OU OU ra III III II 5II II IIII IIII IIII II II II II II II LI II IL II LI II II II II II I II I II I II II II II II II III II II II II II II II II II II II II II II II II IIII L LI LI I II LI I II II II II II II II II II II II II II II II II II II II 17 HOWPol FRE chipo 0 2 2 LI LI II LI II II LI II LI II II LI II II LI II II II II II II II LI 2 6 IIIIIL LI 11 1 110000 IIIIII CD 7730 Windows 000000000 II I II I II I II LI II II II II II II II II II II IIII I LI II II II II II II II LI II LI LI OOOO000000000000000000000000000000000 0000000000000000 50 mm 1000 Hz 00000 3000 Hz 00 50000 II II LI LI LI LI II LI LI II I II II II II II II II II II II II IIII II II II II II II II II IIII II II IIII II II II IIIIIIIIII II II II II II II 1 000000000 L LI 0 BOOL ALK Environmentinfo Tool ALK 5 RESULT FAR xpsResult DD O 1 1 11 I IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 2 I000000000 O OOBOOL AC05_BOpen WORD If No WORD SlaveAddr WORD Axis WORD SlaveType DWORD FAR ph Dev AC05 5 RESULT FAR xpsResult 1
34. L LI LI I II LI LI II LI II LI 19 OOBOOL AC05 BRStatusn DWORD hDev WORD FAR xpStatus AC05 S RESULT LI II LI II II LI LI II LI II LI 000 CCDTransferImage 7 000000000000000 000 CCDFinishExposure 0000000000000000000 16b 655860 000000000000 00000000000000000000000000 it00000000000 0000 168 00000000000000000000000000000000 LI II IL III III III IM191II191 El 28 HOUUOUUUUO 0000000000 PC000000000000000000000000000 L LI LI II LI LI II LI II LI II LI II II II II II II II II II II II II LI II LL VMIXILI II LI II LI II LI II LI II OOO00000000000000000000000000000000000000 0000000000000000000000000000000 IC IIIIIIIIII IIII L LI LI I II LI LI II LI II LI 1 socket II II II II IIIIIIIIIIIIIIIIII II II II 2 connect I II LI II II II II II II II II II II II II II II II II II II II II II II 3 rev U sead II II II IIIIIIIIIIIIIIIIIIII II 4 clos 0000000000000000 LI LI II II LI II II 200100000000U000000000 200000200000 I I I IIIIIIIIII1I1IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII II II IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII ICIIIIIIIIIIIIIIIII 0 On IIII1II1I II IIIIIIII II IIII II numl num 1109 00 0 0 0
35. LX II 0000 CCD 20000000 LI IIIIIIIIIIIIIIIIIIIII IIIVIXIII II II IIIIIIIIIIIIIIIIIIIIIIIIII 230 00000000000000000000000000 120 IIII0VI IIL I II II II I 0000000 1 2 HOWPol 1 2 HOWPol 0 0 L LI L LI L LI 150 LI L 56 L 00000 L LI CCD 2k x 4k x 2 00000000 0300 pix 0000 4500 11000 0000 LI II LI LI 1 V Re Ic XLII LI II II II LI L LI II 1 LIIIILI II 0000 00000 19 8 mag 10 min exp S N 500 00000 15 9 mag 10 min exp P 0 2 13 LIIIIIIIIIIII III III IIIIIIIIIII II II II II II II II II IIII II II II 0000000000 III II IIIIIIII II IIIIII LI 7 00000000000000000000000000000000000 2300 0000000000000000000000000000000000000000 00000000010000350100000000000000000000000 0000000000000000000000000000000000000000 0000000000 000000000000000000000000000000000000000 000000000000000000000 000000000 HOWPd00000000000000000000000000 00000000000000 HoWPd000000000000000000000 0000000000000000000 1300000000000 00000000 00000000000000000000000000000 N 30 37 saa BAK N HOWPol 8 0 1300000000000 HOWPol II O 1 4 HOWPol II LI LI II II II II II II LI LCVI9III LI I IL I I III IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII DIO II II II II II II II II II II II III II II II II II II II II II II 1 4 1 0 0
36. O 1 1 2 1 3 1 4 2 1 22 3 1 FATT ANN Leeds ease 6 HOW Pol TT a daa 7 PS eh er sois E rice todo 9 RATAS 11 A RR 14 a c en NAN AAA AA AG AU AA arica See Dees og 2 15 GWT SSCA ile Sa RR ma 23 ER ED 11 IIIIIIIL LI OO0OOO0000000000000000000000000000000 LI 2000000000000000000000000000000000000 L LI LI LI LI LI LI LI 2096 II LI LI II II LI II II II II II II II II II II II II II II II II II I LI 1 5 ILIII LI II II II II LI II II II II III II II II II IIII II II II II II II II II II II II II II II II I II 000 II II II II II II II II II II II II II II II II II II II II II L LI LI LI I II II II II II II II II II II II II II II II II II II II II LI II L LI OU 0 O 0O El Ll EI EU EI LI L II LI II II LI I II II IILI II II II II II I 000000000000000000000000GRBOOOOO00 L LI LI L II LI II II LI I II II II II II II II II II II II II II II II II II II II II II I LI CIC81 I 1 I IIIIIII IIIIIIIIIIIIIIIIIII II IM8 II II II II IIIIIIII II II OOOO00000000000000000000000000000000000 00000000000000 GRBOCOODOODOOODODODOGRBOOD 600 II II II II II II II II II II 0 150000 ra ra OU OU L LI L LI L LI L LI L LI LILIL1LI El L1 LI LI L I
37. Sending Socket connection failed Sleep 100 if recv sock rbuf 1024 0 lt 0 printf Receiving null data in Socket Connection return FALSE Move Telescope sending offset int SendTelescope0ffset double dalp double ddel TELSTAT telstat telstat TELSTAT malloc sizeof TELSTAT memset TELSTAT telstat 0 0 sizeof TELSTAT TGetOffset telstat telstat gt ra telstat gt ra dalp telstat gt dec telstat gt dec ddel telstat gt ir1 telstat gt irl 3600 telstat gt ir2 telstat gt ir2 3600 TOffset telstat free telstat return FALSE main function int _tmain int argc _TCHAR argv 42 CCD Initiallize int temp_ccd temp_body printf CCDOpenDevice s n CCDOpenDevice if CCDControllerReset TRUE printf CCDControllerReset TRUE n else printf CCDControllerReset FALSE n the following line was deleted 2011 01 31 M Yoshida printf CCDControllerReset d n CCDControllerReset printf CCDGetInfomation Zell n CCDGetInfomation NULL CCDGetTemperature 0 amp temp_ccd CCDGetTemperature 1 amp temp_body printf Temperature CCD 1f Body 1f n temp_ccd 10 temp body 10 printf CCD device opened n Stage Inittiallize ALK_EnvironmentInfo_Tool amp AlkResult XAxiOpen YAxiOpen printf Motor driver
38. TE 10ms 1000Hz ACO5_BWaitDriveCommand hDev2 0 amp AcO5Result Data 0x11 ACO5_BWDriveData2 hDev2 amp Data amp AcO5Result Data 0x11 ACO5_BWDriveData3 hDev2 amp Data amp AcO5Result Cmd 0x06 ACO5_BWDriveCommand hDev2 amp Cmd amp AcO5Result LSPD SET LSPD 1000Hz ACO5_BWaitDriveCommand hDev2 0 amp AcO5Result ACO5_SetData 3000 amp AcO5Data ACO5_IWDrive hDev2 0x07 amp AcO5Data amp AcO5Result HSPD SET HSPD 5000Hz ACO5_BWaitDriveCommand hDev2 0 amp AcO5Result ACO5_SetData 50000 amp AcO5Data ACO5_IWDrive hDev2 0x08 amp AcO5Data amp AcO5Result void Jushin unsigned int pix NX double xx grav double y grav double SkyLev int i j x y double sigma x 0 0 sigma y 0 0 count 0 0 double Sky 0 0 int n_Sky 0 x NX y NY for j 0 j lt 10 j X for i 0 i lt 10 i Sky pix j i n Sky for j 0 j lt 10 j for i x 11 i lt x 1 i Sky pix j i n Sky 32 for j y 11 j lt y 1 j for i 0 i lt 5 i Sky pix j i n Sky for 3 y 11 j lt y 1 j for i x 11 i lt x 1 i Sky pix j i n Sky SkyLev Sky n Sky for j 0 j lt y j for i 0 i lt x i sigma x i pix j i SkyLev sigm
39. a_y j pix j i SkyLev count pix j i SkyLev x grav sigma x count y grav sigma y count if x_grav lt 0 0 x grav x 2 0 if x grav gt x x grav x 2 0 if y grav lt 0 0 y grav y 2 0 if y_grav gt y y_grav y 2 0 void Maximam unsigned int pix NX int amp M x int amp M_y int amp M_count int i j int Max 100 for j 0 j lt NY jtt for i 0 i lt NX i if Max lt pix i 11 Max pix il j M_x i My j M count Max Get current telescope state void pos_now double center_ra double center_dec double nsrot double RA_base DEC_base double offset_RA offset_DEC offset_NsROT TELEPARAM teldata teldata TELEPARAM malloc sizeof TELEPARAM memset TELEPARAM teldata 0 0 sizeof TELEPARAM Initialize Socket SockInit O SockConnect get radec offset_radec nsrot R_A_OBJ DEC_OBJ OFF1_R_A OFF1_DEC OFF1 ROT2 GetTelValue teldata RA_base teldata gt obj_ra DEC_base teldata gt obj_dec offset_RA teldata gt offset_ra 33 offset DEC teldata gt offset dec offset NsROT teldata gt nsrot center ra RA base offset RA center dec DEC base offset DEC nsrot offset NSROT free teldata closesocket sock sock INVALID SOCKET int circget void f double Deg2Rad 0 01745
40. decd orig lt 75 di 3 for i 0 i lt 24 i di if i lt rah_orig amp amp rah orig lt i di sprintf fbuf ra 02d 02ddec6075 dat i itdi if fpl fopen fbuf rt NULL printf Can t open gsc file n exit 1 else if 45 lt decd orig amp amp decd orig lt 60 di 3 for i 0 i lt 24 it di if i lt rah_orig amp amp rah orig lt i di sprintf fbuf ra 02d 02ddec4560 dat i i di if fpl fopen fbuf rt NULL printf Can t open gsc file n exit 1 else if 30 lt decd orig amp amp decd orig lt 45 di 2 for i 0 i lt 24 it di if i lt rah orig amp amp rah orig lt i di sprintf fbuf ra 02d 02ddec3045 dat i i di if fpl fopen fbuf rt NULL printf Can t open gsc file n exit 1 else if 15 lt decd orig amp amp decd orig lt 30 di 2 for i 0 i lt 24 it di if i lt rah_orig amp amp rah orig lt i di sprintf fbuf ra 02d 02ddec1530 dat i i di if fpl fopen fbuf rt NULL printf Can t open gsc file n exit 1 else if 0 lt decd orig amp amp decd orig lt 15 di 1 for i 0 i lt 24 it di if i lt rah orig amp amp rah orig lt i di sprintf fbuf ra 02d 02ddec0015 dat i i di if fpl fopen fbuf rt NULL printf Can t open gsc file n exit 1
41. ectel double dtheta double SF SF 0 072 4 double deg2rad 0 017453292 PI 180 unsigned int pixel NX NY unsigned int pixdata NY NX Exposure Time Ti exp time 1000 CCD Environmental Setting BYTE data1 0x20 0x10 0 0 0 OutPort data1 sizeof datal Binning Setting 16bit 4x4 binning all pixel size CCDSizeExposure 0 3 0 size cx NX size cy NY check whether telescope is tracking or not while TGetValueInt 138 0 Sleep 100 exposure starting printf Exposure started Exp time ld msec n Ti CCDStartExposure Ti while CCDExposingState 0 Sleep 100 printf Exposure finished n Exposure Setting BYTE data3 0x22 LOBYTE Ti HIBYTE Ti 0 OutPort data3 sizeof data3 Beginning Exposure BYTE data4 0x23 0 Sleep DWORD Ti 100 Transfer Image Data hCCD GlobalAlloc GMEM_MOVEABLE GMEM_ZEROINIT size cx size cy 2 CCDTransferImage 0 hCCD Finish Exposure CCDFinishExposure LPBYTE pCCD LPBYTE GlobalLock hCCD for 3 NY 1 j gt 0 j for i 0 i lt NX i ULONG data MAKEWORD pCCD 0 pCCD 1 A D 16bit pixdata i j data pixdata j i data pccD 2 GlobalUnlock hCCD GlobalFree hCCD printf Pixdata d d d n pixdata 50 71 pixdata 50 72 pixdata 50 73
42. mset wbuf O sizeof wbuf memset rbuf O sizeof rbuf 41 sprintf wbuf A 03d n command if send sock wbuf strlen wbuf O SOCKET ERROR printf Sending Socket connection failed n Sleep 100 if recv sock rbuf 1024 0 lt 0 printf Receiving null data in Socket Connection n return atoi amp rbuf 2 int TGetOffset TELSTAT telstat char wbuf 1024 rbuf 1024 memset wbuf O sizeof wbuf memset rbuf O sizeof wbuf sprintf wbuf A 03d 03d 03d 03d 03d KO3A 5 50 51 52 53 54 306 if send sock wbuf strlen wbuf O SOCKET ERROR printf Sending Socket connection failed Sleep 100 if recv sock rbuf 1024 0 lt 0 printf Receiving null data in Socket Connection F AfxMessageBox rbuf sscanf rbuf 13 1f tg Alf ir rn amp telstat gt ra amp telstat gt dec amp telstat gt azi amp telstat gt al amp telstat gt irl amp telstat gt ir2 free telstat return FALSE int TOffset const TELSTAT telstat char wbuf 1024 rbuf 1024 memset wbuf O sizeof wbuf memset rbuf O sizeof wbuf sprintf wbuf P 11f 11f 11f 11f 11f 4 ilf n telstat gt ra telstat gt dec telstat gt ir1 telstat gt ir2 telstat gt azi telstat gt al if send sock wbuf strlen wbuf O SOCKET ERROR printf
43. oo LI 1111111111 EEF EFE EHO LI LI OOOOOO000000000000 Visual C 0 II II II II II Visual C 00000000 CCIII I IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIII Visual II II II II II II LI II II II I II II II II LI II LI II II LI II 20080000 L II I II I LI I II II II III II II II II II II II II II II II II II II II II II II II II II II II III LI II II II II II II II II II II II II II II II II II II II II II II II II II LI II UD 20080 00000000000000000000000 81420000 L II LI I II II II II LI II OOo LI 21 III LI I 1 II II IL III HoWP2000000000000000000000000000000 1 2 3 4 5 0 T OU OU OU OU L II LI VI II LI II II LI II 01500 L LI LI II II LI II II LI 00 300 00000000000000000000 0100 L LI LI I II LI LI II LI II II II II LI II II II II LI II II 00500 I II LI VI II LI II II LI II II II II II II II II II IL II II II II II 00500 I 1 100000 0600 00000000 100700000 DDD 000000000000 000000000000 II II II II II IL II OOO00000000000000000000000000000000000 L II II II II II II IILI II I II I II II II II II II II II II II II II II II II IIII IIII II 1II II II I III IILI 40 II II II I 5II I II II II II II LI 1000000 16000000 12 00000000000000000000000000000 HOWPol IC I
44. r RA rad 07 5f DEC rad 07 5f n rarad decrad circle radius printf Radius arcmin 7 4f n radius fprintf fp2 Radius arcmin 7 4f n radius radius radius 60 0 Deg2Rad coscrit cos radius sindi sin di cosdi cos di scan catalogue file while feof fpl O fgets buf 250 fpl if strcmp buf last buf 0 continue n a2 atof mid buf 1 7 d2 atof mid buf 9 8 if a2 gt 6 28319 a2 lt 0 0 d2 gt 1 57080 d2 lt 1 57080 printf Data error in s a2 e d2 4e n fbuf a2 d2 printf js buf fclose fp1 fclose fp2 exit 1 cosd2 cos d2 sind2 sin d2 cosaa cos al a2 cosc sindi sind2 cosdi cosd2 cosaa compare if cosc gt coscrit radius acos cosc radius radius Deg2Rad 60 nm fprintf fp2 ks 4 2f n mid buf 1 strlen buf 1 radius strcpy last buf buf 36 printf Scanning ended Total d Match n n nm fprintf fp2 Scanning ended Total kd Match d n n nm fclose fp2 fclose fp1 return nm Determine guide star int detgstar void char circgetout circget out double arcsec2pix 12 5 double pix2pulse 10000 310 double deg2rad 0 017453292 PI 180 char buf 200 last buf 200 char buf1 100 buf2 100 buf3

Download Pdf Manuals

image

Related Search

Related Contents

厚生労働省医薬食品局審査管理課 医療機器審査管理室  保証書  8 E D 20090824  MANUAL DO UTILIZADOR  Motorola CP200 Two-Way Radio User Manual  Présentation du Goncourt des lycéens - Académie d`Orléans  

Copyright © All rights reserved.
Failed to retrieve file