home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1 / HamRadio.cdr / satel / sat / satellit.doc < prev    next >
Text File  |  1992-03-26  |  16KB  |  392 lines

  1.  
  2.  
  3.                         SATELLITE TRACKING PROGRAMS
  4.                                FOR THE IBM-PC
  5.                                   4/1/85 
  6.  
  7.  
  8.                       *****  PROPRIETARY NOTICE *****
  9.  
  10. These programs  are a proprietary product developed and distributed by Roy D.
  11. Welch, 908 Dutch Mill Dr., Manchester, Mo. 63011.
  12.  
  13. Copyright 1983 by Roy  D. Welch.  All rights  reserved except those expressly
  14. granted  to the user within  this document.  Permission  is granted  for  non-
  15. commercial use providing credit is given to the author and AMSAT.
  16.  
  17.  
  18.                           ***** REQUIREMENTS *****
  19.  
  20.                        IBM-PC or IBM-PCXT
  21.                128k of RAM
  22.             IBM Color Graphics Adapter
  23.             IBM Color Monitor
  24.             Floppy Disk Drive (one)
  25.             DOS 2.0 or later version with BASICA
  26.                               
  27.  
  28.  
  29.                              ***** GENERAL *****
  30.  
  31.  
  32. This  documentation  covers  the  instructions needed  for  using the  various
  33. associated  programs  on this  diskette  as  described below.  These  programs
  34. permit the user to establish  data records for  up to twenty  earth satellites
  35. and to track  those satellites  for the  purpose of  aiming radio  antennas at
  36. them.  The user can select a particular program from  a menu and  that program
  37. will be loaded and  executed automatically.  As  written, the programs require
  38. the use of an IBM Color Graphics Adapter. However, only one program absolutely
  39. requires  it.  The other programs  can  be run  using a monochrome monitor  by
  40. eliminating the COLOR commands  and modifying the  SCREEN commands  where they
  41. appear in those programs.
  42.  
  43. The programs are  written to be run on an  IBM-PC.  Most of the  programs will 
  44. run on a system with 64k of RAM memory.  The realtime tracking program however
  45. requires 128k  because  map graphics data is stored in  high  memory  where it
  46. is available to be moved to the display buffer.  The  programs are  written in
  47. Microsoft BASIC and run under DOS 2.0 or later.  While the programs may run on
  48. the so called "IBM compatibles", there is no assurance of compatibility.
  49.  
  50. Before the programs can be run the user must supply some information unique to
  51. his own geographical  location  and  ground station.  This  will be  described
  52. later. He must also have  a source of satellite  orbital elements in  order to
  53. periodically update the "numbers".  This too will be discussed later.
  54.  
  55. It is strongly suggested that at this point the user make a backup copy of the
  56. program  diskette PRIOR  to  making any  program  modifications.  Later, after
  57. program modifications have been made,  a working  copy diskette can  be copied
  58. with your unique station modifications on it.  See ADDITIONAL COMMENTS.
  59.  
  60.  
  61.                                      (1)
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                            ***** SATMENU.BAS *****
  71.  
  72.  
  73. This program  should be the first one run.  It provides a menu  from which the
  74. user can  select one of  five  other programs for use.  Each of these programs
  75. provide a way to return to the menu when desired.  Of these five programs, one
  76. provides batch output  for a single satellite, listing tracking information in
  77. non-realtime  for a selected  time  period.  A  second  program  provides  the
  78. capability for realtime tracking.  The third is a file management program that
  79. provides the capability for updating  the orbital elements for each satellite.
  80. A fourth program gives instructions for obtaining this documentation.  A final 
  81. program  provides a means  for the user to  install parameters  concerning the
  82. particular  ground  station  being used such as  latitude, longitude, altitude
  83. above sea level and station name or call sign.   This program  also allows the
  84. user to select one of four map presentations and its color.  The world map can
  85. be constructed such that the center of the map on the  screen can be at 0, 90,
  86. 180, or 270 degrees longitude to suit the user.
  87.  
  88.  
  89.  
  90.  
  91.                            ***** SATFILE.BAS *****
  92.  
  93.  
  94. This  program is  a  file  management routine  that  builds  and  maintains an
  95. orbital elements file used by the tracking programs.  It will  handle elements
  96. for up to twenty satellites.  Only the  first eight will  be used in the real-
  97. time tracking program however.  The file should be arranged with this in mind.
  98. SATFILE.BAS can be accessed from the menu discussed above.  Prompting  is used
  99. extensively to guide the user through adding, changing  and deleting satellite
  100. elements.  The user must also supply a name or designation for each satellite.
  101. This name must not exceed ten characters and must consist of  alphabetical and
  102. numerical  characters only.  Provision  is made to  input a  beacon  frequency
  103. for a  satellite if  Doppler  Shift  calculations  are  desired.  This is  not
  104. required however and is not  used in  the real  time tracking  program.  These
  105. required orbital elements are the classical Keplerian Orbital Elements and are
  106. available from NASA or through a subscription to the  Amateur Satellite Report
  107. (ASR).  If you get them from  NASA you will get a large volume of paper, often
  108. two or three times a week.
  109.  
  110.  
  111.             1. Write to  NASA Predictions Bulletin Oprns. Ctr.
  112.                Branch code 512, NASA GSFC
  113.                Greenbelt, MD 20771
  114.  
  115.             2. State, "I am a Radio Amateur operator and need prediction
  116.                bulletins for these satellites", or something similar.
  117.  
  118.             3. Furnish a list of desired satellites by catalog number:
  119.  
  120.                   OSCAR 10 = 14129
  121.                   OSCAR 11 = 14781
  122.                        RS5 = 12999
  123.                        RS6 = 13002 
  124.                        RS7 = 13001
  125.                        RS8 = 12998
  126.  
  127.                                      (2)
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.             4. Also request the format explanation for these bulletins.
  137.  
  138.             5. Be prepared to get a lot of mail!!
  139.  
  140.  
  141. The Amateur Satellite Report is published and mailed First Class bi-weekly for
  142. the Radio Amateur  Satellite Corporation.  Subscriptions  may  be obtained  by
  143. writing to "Satellite Report",  221 Long Swamp Road,  Wolcott, CT  06716.  The
  144. advantage of obtaining updates from ASR is that the user also gets a fine news
  145. letter in addition to timely element updates.  Also, there is a lot less paper
  146. to be handled that way.
  147.  
  148. The program SATFILE.BAS stores  the satellite  elements in  a data  file named
  149. ELEMENTS.DAT on the same diskette  containing the programs.  When elements are
  150. updated  the diskette must not have a  file protect tab affixed.  The sequence
  151. of appearance in the file can be changed through the option of inserting a new
  152. satellite in any of the occupied  file  positions.  This insert feature allows
  153. the user to  arrange the  first eight  positions with the  satellites he wants
  154. tracked by the real time program.
  155.  
  156. The SATFILE.BAS program eliminates the need for using DATA  statements in both
  157. of the tracking  programs.  This saves  duplicative  effort when  updating the
  158. elements. One update serves both programs.
  159.  
  160. If for some reason it  is desirable  to see fewer  than the maximum  number of
  161. satellites available to the realtime tracking  program, the user  can insert a
  162. dummy satellite named END at the position following the last satellite wanted.
  163. The program  will only  load satellite elements until  it finds the  one named
  164. END.
  165.  
  166. At the  conclusion of an  update, the user  can select  an exit  option  which
  167. returns control to the main menu program.  The user must always exit from this
  168. program  using the  EXIT (E) option.  If  the  program is  exited by any other
  169. method, files may be subsequently damaged since they will not have been closed
  170. properly.
  171.  
  172.  
  173.                            ***** ORBIT2.BAS *****
  174.  
  175.  
  176. This program is  a  highly modified  version  of the  W3IWI  North Star  Basic
  177. program covered in ORBIT  Magazine, March/April 1981, page 18.  It  provides a
  178. batch output  of  tracking  coordinates  for selected  periods  of  times  and
  179. intervals. This output is available on the screen or printer and is useful for
  180. compiling a sequence of tracking coordinates  on hard copy for later use.
  181.  
  182. As mentioned above, this program has been  highly  modified from  the original
  183. W3IWI version. Certain coordinates in the original version were initialized at
  184. the beginning of  the run.  This version  updates them  each time  through the
  185. orbit calculation loop.  This eliminates a small but cumulative error from the
  186. output on long runs covering  several orbits.  The original version  used DATA
  187. statements  to  supply  the   orbital  parameters.   This  version   uses  the
  188. ELEMENTS.DAT file as  discussed  earlier.  The  original  version  permitted a
  189. satellite to be tracked  through  January of the  year following the reference
  190.  
  191.  
  192.  
  193.                                      (3)
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. year contained  in the elements.  This version permits tracking throughout the
  203. entire year  using elements  from  the  previous  year. The  original  program
  204. provided  paging to a new  page with each new orbit.  This  version pages with
  205. each new day instead.  This  seems to provide  a more user oriented output and
  206. consumes less paper.
  207.  
  208. Once the output has started, depressing the ESC key will interrupt the program
  209. and return  control to the menu  program.  When the  program  has finished, an 
  210. END OF JOB message is displayed.  Depressing the ENTER key at this  point will
  211. return control to the menu program.
  212.  
  213.  
  214.  
  215.                            ***** ORBITS2.BAS *****
  216.  
  217.  
  218. This program displays tracking coordinates for  up to eight  satellites on the
  219. screen at one time and  updates them  continuously  in real time.  The program
  220. prompts for input of the  date and time in  Coordinated Universal Time  at the
  221. beginning  of the run.  If the  date and time  displayed  is already  correct,
  222. depressing the enter key will allow the program to proceed.
  223.  
  224. The program makes the F9 function key  available to key trap  the selection of
  225. either of two displays on the screen.  Initially the screen displays  tracking
  226. coordinates in a tabulated format. Pressing the F9 key switches the display to
  227. a Mercator Projection  map of the world upon which each  satellite position is
  228. displayed  and  moved in  realtime.  The coordinates  for each  satellite  are
  229. displayed  below the  map as  that satellite  is updated.  Depressing the  F10
  230. function key allows the user to select a particular  satellite by  designation
  231. (name) and to display  only that satellite's  coordinates  below the map.  The
  232. shape of the  selected  satellite will be  altered for easy  recognition.  All
  233. satellites will continue to be updated on the map but the selected one will be
  234. the only one whose coordinates are displayed below the map. Depressing the F10
  235. key a second time will allow the user to replace  the selected  satellite with
  236. another  or  to  exit from  the  SELECTED  mode  if  the F10 key  is  followed
  237. by  depressing the RETURN  key.  Depressing  the F9 key  again will switch the
  238. display back to the  tabulated  display.  At any time, the ESC key will permit
  239. the user to return to the main menu.  NOTE: The use of more than one  function
  240. key at a time to "key trap" is not  supported  by some "IBM compatibles".  The
  241. use of the F10 key therefore may be ignored by those machines.
  242.  
  243. Because of the graphics used in  this program the IBM  Color  Graphics Adapter
  244. is required  in the PC.  At the  time the  program is started, a BLOAD command
  245. loads the map image  data into upper  memory from a file named  MAP.DAT on the
  246. diskette.  When the F9 key is depressed  this map image is moved  very rapidly
  247. to the graphics display buffer by a small efficient machine language routine.
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.                                      (4)
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.                           ***** SETPARMS.BAS ******
  269.  
  270.  
  271. This  program  permits the user to setup his ground station parameters.  While
  272. the programs can be run as they are, they will  produce  output for the QTH of
  273. W0SL.  The user can run them as they are for  demonstration  purposes if he so
  274. wishes.  However, before the  programs will produce  output for the user's QTH
  275. this program must be selected from the menu  and certain  input provided.  The
  276. program will prompt for input  of latitude  (0 to 90 degrees north or 0 to -90
  277. degrees south), longitude (0 to 360 degrees west)  and height  above sea level
  278. (- if below) of the ground station.  Additionally the user is prompted for the
  279. input of the station name or call sign  (10 alphanumeric  characters maximum).
  280. Please note that the latitude and longitude are to be in  decimal degrees, not
  281. degrees, minutes and  seconds.  Following  this the user is  prompted to input 
  282. a preference of how the map should be presented, centered on 0, 90, 180 or 270
  283. degrees.  Finally, a choice of  map outline colors is  requested.  The program
  284. then begins to read file LATLONG.DAT and construct the map.  This will  take a
  285. few minutes so the user can get a cup of  coffee or just  watch at this point.
  286. When the map has been constructed, an end of job message  prompts the user for
  287. action which will return him to the menu.  The ground station  parameters will
  288. have been saved in a file named QTH.DAT and the map image will have been saved
  289. in a file named MAP.DAT.  The ground  station parameters will remain in effect
  290. for all subsequent runs of the tracking programs  until the  user decides that
  291. he wants to  change them.  He can do so at  any time by  selecting that option
  292. from the menu.
  293.  
  294.  
  295.                              ****** FILES ******
  296.  
  297.  
  298.        SETPARMS.BAS              SATFILE.BAS               SATMENU.BAS
  299.        ORBIT2.BAS                ORBITS2.BAS               SATELLIT.DOC
  300.        PRINTDOC.BAS              LATLONG.DAT            #  MAP.DAT
  301.     #  QTH.DAT               ##  ELEMENTS.DAT
  302.  
  303.        #   These two files are created by SETPARMS.BAS.
  304.        ##  This file is created by SATFILE.BAS.
  305.  
  306.  
  307.  
  308.                        ***** ADDITIONAL COMMENTS *****
  309.  
  310. If the user wants the  menu program to automatically  load when the  system is
  311. booted the following procedure can be used:
  312.  
  313.  
  314.           1. Format a new diskette using the FORMAT/S option  in DOS 2.0  or
  315.              later version.
  316.  
  317.           2. Copy BASICA.COM from your DOS diskette onto the new diskette.
  318.  
  319.           3. If the PC is equipped with a realtime clock  (not the PC system
  320.              clock) then copy onto the diskette the software program that sets
  321.              the PC system clock. This is a nice feature but not an absolute
  322.              requirement.
  323.  
  324.  
  325.                                      (5)
  326.     
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.           4. Copy all  of the programs and  files from the satellite diskette
  335.              to the new diskette using the COPY *.* option in DOS.
  336.  
  337.  
  338.           5. Place the new diskette in the default drive.  From DOS enter:
  339.  
  340.                   COPY CON: AUTOEXEC.BAT  (followed by ENTER key)
  341.  
  342.                   (Clock program name if used, followed by ENTER key)                  
  343.  
  344.                   BASICA SATMENU (followed by ENTER key)
  345.  
  346.                   (Press the F6 key followed by the ENTER key)
  347.  
  348. The SATMENU.BAS routine  will now  run  automatically whenever  the system  is
  349. booted on the new diskette.  Have fun!  Don't forget to support AMSAT!!  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.                                      (6)
  392.