Source Code

This is the source-code for the Apollo 9 Command Module's Guidance Computer. These files were derived originally from the scan from MIT's Dibner Institute's now-discontinued website titled "History of Recent Science and Technology", which in turn was originally created by Gary Neff, though his high-quality scans were unfortunately reduced in legibility when presented online. The markings on the front of the printout imply that it was the original AGC developer Norm Brodeur's copy. A scan by Ron Burkey has superceded it, made from a more-legible copy from the collection of original AGC developer Fred Martin. The source code was transcribed from those images by Ron Burkey. Note that the page images presented online are of reduced quality, and that higher-quality images are available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	ASSEMBLE REVISION 249 OF AGC PROGRAM COLOSSUS BY NASA 2021111-041
	20'35 OCT. 28,1968
Note that the date is the date of the printout, not the date of the program revision.

019932,000002:                                                                                                  ## Copyright:   Public domain.
019933,000003:                                                                                                  ## Filename:    P34-35_P74-75.agc
019934,000004:                                                                                                  ## Purpose:     Part of the source code for Colossus, build 249.
019935,000005:                                                                                                  ##              It is part of the source code for the Command Module's (CM)
019936,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 9.
019937,000007:                                                                                                  ## Assembler:   yaYUL
019938,000008:                                                                                                  ## Reference:   pp. 452-495.
019939,000009:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
019940,000010:                                                                                                  ## Website:     www.ibiblio.org/apollo.
019941,000011:                                                                                                  ## Mod history: 08/11/04 RSB.   Began adapting from corresponding Luminary131
019942,000012:                                                                                                  ##                              source file.
019943,000013:                                                                                                  ##              2010-08-29 JL   Added missing comment characters. 
019944,000014:                                                                                                  ##              2011-05-07 JL   Removed workaround.
019945,000015:                                                                                                  ##              2017-01-06 RSB  Page numbers now agree with those on the
019946,000016:                                                                                                  ##                              original harcopy, as opposed to the PDF page
019947,000017:                                                                                                  ##                              numbers in 1701.pdf.
019948,000018:                                                                                                  ##              2017-01-17 RSB  Cross-diff'd comment text (not whitespace)
019949,000019:                                                                                                  ##                              vs the already-proofed corresponding Colossus
019950,000020:                                                                                                  ##                              237 and Comanche 55 source-code files
019951,000021:                                                                                                  ##                              and corrected errors found.
019952,000022:                                                                                                  ##              2017-01-28 RSB  Back-ported some comment fixes I noticed while
019953,000023:                                                                                                  ##                              proofing Artemis 72.
019954,000024:                                                                                                  ##              2017-03-09 RSB  Fixed VNP00H to VNPOOH.
019955,000025:                                                                                                  ##
019956,000026:                                                                                                  ## The contents of the "Colossus249" files, in general, are transcribed 
019957,000027:                                                                                                  ## from a scanned copy of the program listing.  Notations on this
019958,000028:                                                                                                  ## document read, in part:
019959,000029:                                                                                                  ##
019960,000030:                                                                                                  ##      Assemble revision 249 of AGC program Colossus by NASA
019961,000031:                                                                                                  ##      2021111-041.  October 28, 1968.  
019962,000032:                                                                                                  ##
019963,000033:                                                                                                  ##      This AGC program shall also be referred to as
019964,000034:                                                                                                  ##                              Colossus 1A
019965,000035:                                                                                                  ##
019966,000036:                                                                                                  ##      Prepared by
019967,000037:                                                                                                  ##                      Massachusetts Institute of Technology
019968,000038:                                                                                                  ##                      75 Cambridge Parkway
019969,000039:                                                                                                  ##                      Cambridge, Massachusetts
019970,000040:                                                                                                  ##      under NASA contract NAS 9-4065.
019971,000041:                                                                                                  ##
019972,000042:                                                                                                  ## Refer directly to the online document mentioned above for further information.
019973,000043:                                                                                                  ## Please report any errors (relative to the scanned pages) to info@sandroid.org.
019974,000044:                                                                                                  ##
019975,000045:                                                                                                  ## In some cases, where the source code for Luminary 131 overlaps that of 
019976,000046:                                                                                                  ## Colossus 249, this code is instead copied from the corresponding Luminary 131
019977,000047:                                                                                                  ## source file, and then is proofed to incorporate any changes.
019978,000048: 

Page 452

019980,000050:                                                                                                  #  TRANSFER PHASE INITIATION (TPI) PROGRAMS (P34 AND P74)
019981,000051:                                                                                                  #  MOD NO -1                     LOG SECTION - P32-P35, P72-P75
019982,000052:                                                                                                  #  MOD BY WHITE.P                DATE  1 JUNE 67
019983,000053: 
019984,000054:                                                                                                  #  PURPOSE
019985,000055:                                                                                                  #        (1)     TO CALCULATE THE REQUIRED DELTA V AND OTHER INITIAL CONDITIONS
019986,000056:                                                                                                  #                REQUIRED BY THE ACTIVE VEHICLE FOR EXECUTION OF THE TRANSFER
019987,000057:                                                                                                  #                PHASE INITIATION (TPI) MANEUVER, GIVEN -
019988,000058:                                                                                                  #                (A)     TIME OF IGNITION TIG (TPI) OR THE ELEVATION ANGLE (E) OF
019989,000059:                                                                                                  #                        THE ACTIVE/PASSIVE VEHICLE LOS AT TIG (TPI).
019990,000060:                                                                                                  #                (B)     CENTRAL ANGLE OF TRANSFER (CENTANG) FROM TIG (TPI) TO
019991,000061:                                                                                                  #                        INTERCEPT TIME (TIG (TPF)).
019992,000062:                                                                                                  #        (2)     TO CALCULATE TIG (TPI) GIVEN E OR E GIVEN TIG (TPI).
019993,000063:                                                                                                  #        (3)     TO CALCULATE THESE PARAMETERS BASED UPON MANEUVER DATA
019994,000064:                                                                                                  #                APPROVED AND KEYED INTO THE DSKY BY THE ASTRONAUT.
019995,000065:                                                                                                  #        (4)     TO DISPLAY TO THE ASTRONAUT AND THE GROUND CERTAIN DEPENDENT
019996,000066:                                                                                                  #                VARIABLES ASSOCIATED WITH THE MANEUVER FOR APPROVAL BY THE
019997,000067:                                                                                                  #                ASTRONAUT/GROUND.
019998,000068:                                                                                                  #        (5)     TO STORE THE TPI TARGET PARAMETERS FOR USE BY THE DESIRED
019999,000069:                                                                                                  #                THRUSTING PROGRAM.
020000,000070: 
020001,000071:                                                                                                  #  ASSUMPTIONS
020002,000072:                                                                                                  #        (1)     LM ONLY - THIS PROGRAM IS BASED UPON PREVIOUS COMPLETION OF
020003,000073:                                                                                                  #                THE CONSTANT DELTA ALTITUDE (CDH) PROGRAM (P33/P73).
020004,000074:                                                                                                  #                THEREFORE -
020005,000075:                                                                                                  #                (A)     AT A SELECTED TPI TIME (NOW IN STORAGE) THE LINE OF SIGHT
020006,000076:                                                                                                  #                        BETWEEN THE ACTIVE AND PASSIVE VEHICLES WAS SELECTED TO BE
020007,000077:                                                                                                  #                        A PRESCRIBED ANGLE (E) (NOW IN STORAGE) FROM THE
020008,000078:                                                                                                  #                        HORIZONTAL PLANE DEFINED BY THE ACTIVE VEHICLE POSITION.
020009,000079:                                                                                                  #                (B)     THE TIME BETWEEN CDH IGNITION AND TPI IGNITION WAS
020010,000080:                                                                                                  #                        COMPUTED TO BE GREATER THAN 10 MINUTES.
020011,000081:                                                                                                  #                (C)     THE VARIATION OF THE ALTITUDE DIFFERENCE BETWEEN THE
020012,000082:                                                                                                  #                        ORBITS WAS MINIMIZED.
020013,000083:                                                                                                  #                (D)     THE PERICENTER ALTITUDES OF ORBITS FOLLOWING CSI AND
020014,000084:                                                                                                  #                        CDH WERE COMPUTED TO BE GREATER THAN 35,000 FT FOR LUNAR

Page 453

020016,000086:                                                                                                  #                        ORBIT OR 85 NM FOR EARTH ORBIT.
020017,000087:                                                                                                  #                (E)     THE CSI AND CDH MANEUVERS WERE ASSUMED TO BE PARALLEL TO
020018,000088:                                                                                                  #                        THE PLANE OF THE PASSIVE VEHICLE ORBIT.  HOWEVER, CREW
020019,000089:                                                                                                  #                        MODIFICATION OF DELTA V (LV) COMPONENTS MAY HAVE RESULTED
020020,000090:                                                                                                  #                        IN AN OUT-OF-PLANE MANEUVER.
020021,000091:                                                                                                  #        (2)     STATE VECTOR UPDATED BY P27 ARE DISALLOWED DURING AUTOMATIC
020022,000092:                                                                                                  #                STATE VECTOR UPDATING INITIATED BY P20 (SEE ASSUMPTION (4)).
020023,000093:                                                                                                  #        (3)     THIS PROGRAM MUST BE DONE OVER A TRACKING STATION FOR REAL
020024,000094:                                                                                                  #                TIME GROUND PARTICIPATION IN DATA INPUT AND OUTPUT.  COMPUTED
020025,000095:                                                                                                  #                VARIABLES MAY BE STORED FOR LATER VERIFICATION BY THE GROUND.
020026,000096:                                                                                                  #                THESE STORAGE CAPABILITIES ARE LIMITED ONLY TO THE PARAMETERS
020027,000097:                                                                                                  #                FOR ONE THRUSTING MANEUVER AT A TIME EXCEPT FOR CONCENTRIC
020028,000098:                                                                                                  #                FLIGHT PLAN MANEUVER SEQUENCES.
020029,000099:                                                                                                  #        (4)     THE RENDEZVOUS RADAR MAY OR MAY NOT BE USED TO UPDATE THE LM
020030,000100:                                                                                                  #                OR CSM STATE VECTORS FOR THIS PROGRAM.  IF RADAR USE IS
020031,000101:                                                                                                  #                DESIRED THE RADAR WAS TURNED ON AND LOCKED ON THE CSM BY
020032,000102:                                                                                                  #                PREVIOUS SELECTION OF P20.  RADAR SIGHTING MARKS WILL BE MADE
020033,000103:                                                                                                  #                AUTOMATICALLY APPROXIMATELY ONCE A MINUTE WHEN ENABLED BY THE
020034,000104:                                                                                                  #                TRACK AND UPDATE FLAGS (SEE P20).  THE RENDEZVOUS TRACKING
020035,000105:                                                                                                  #                MARK COUNTER IS ZEROED BY THE SELECTION OF P20 AND AFTER EACH
020036,000106:                                                                                                  #                THRUSTING MANEUVER.
020037,000107:                                                                                                  #        (5)     THE ISS NEED NOT BE ON TO COMPLETE THIS PROGRAM.
020038,000108:                                                                                                  #        (6)     THE OPERATION OF THE PROGRAM UTILIZES THE FOLLOWING FLAGS -
020039,000109: 
020040,000110:                                                                                                  #                        ACTIVE VEHICLE FLAG - DESIGNATES THE VEHICLE WHICH IS
020041,000111:                                                                                                  #                        DOING RENDEZVOUS THRUSTING MANEUVERS TO THE PROGRAM WHICH
020042,000112:                                                                                                  #                        CALCULATES THE MANEUVER PARAMETERS.  SET AT THE START OF
020043,000113:                                                                                                  #                        EACH RENDEZVOUS PRE-THRUSTING PROGRAM.
020044,000114: 
020045,000115:                                                                                                  #                        FINAL FLAG - SELECTS FINAL PROGRAM DISPLAYS AFTER CREW HAS
020046,000116:                                                                                                  #                        SELECTED THE FINAL MANEUVER COMPUTATION CYCLE.
020047,000117: 
020048,000118:                                                                                                  #                        EXTERNAL DELTA V FLAG - DESIGNATES THE TYPE OF STEERING
020049,000119:                                                                                                  #                        REQUIRED FOR EXECUTION OF THIS MANEUVER BY THE THRUSTING
020050,000120:                                                                                                  #                        PROGRAM SELECTED AFTER COMPLETION OF THIS PROGRAM.
020051,000121: 
020052,000122:                                                                                                  #        (7)     ONCE THE PARAMETWRS REQUIRED FOR COMPUTION OF THE MANEUVER
020053,000123:                                                                                                  #                HAVE BEEN COMPLETELY SPECIFIED, THE VALUE OF THE ACTIVE
020054,000124:                                                                                                  #                VEHICLE CENTRAL ANGLE OF TRANSFER IS COMPUTED AND STORED.
020055,000125:                                                                                                  #                THIS NUMBER WILL BE AVAILABLE FOR DISPLAY TO THE ASTRONAUT
020056,000126:                                                                                                  #                THROUGH THE USE OF V06N52.
020057,000127: 
020058,000128:                                                                                                  #                THE ASTRONAUT WILL CALL THIS DISPLAY TO VERIFY THAT THE
020059,000129:                                                                                                  #                CENTRAL ANGLE OF TRANSFER OF THE ACTIVE VEHICLE IS NOT WITHIN

Page 454

020061,000131:                                                                                                  #                170 TO 190 DEGREES.  IF THE ANGLE IS WITHIN THIS ZONE THE
020062,000132:                                                                                                  #                ASTRONAUT SHOULD REASSESS THE INPUT TARGETING PARAMETERS BASED
020063,000133:                                                                                                  #                UPON DELTA V AND EXPECTED MANEUVER TIME.
020064,000134:                                                                                                  #        (8)     THIS PROGRAM IS SELECTED BY THE ASTRONAUT BY DSKY ENTRY -
020065,000135: 
020066,000136:                                                                                                  #                        P34 IF THIS VEHICLE IS ACTIVE VEHICLE.
020067,000137: 
020068,000138:                                                                                                  #                        P74 IF THIS VEHICLE IS PASSIVE VEHICLE.
020069,000139: 
020070,000140:                                                                                                  #  INPUT
020071,000141:                                                                                                  #        (1)     TTPI    TIME OF THE TPI MANEUVER
020072,000142:                                                                                                  #        (2)     ELEV    DESIRED LOS ANGLE AT TPI
020073,000143:                                                                                                  #        (3)     CENTANG ORBITAL CENTRAL ANGLE OF THE PASSIVE VEHICLE DURING
020074,000144:                                                                                                  #                        TRANSFER FROM TPI TO TIME OF INTERCEPT
020075,000145: 
020076,000146:                                                                                                  #  OUTPUT
020077,000147:                                                                                                  #        (1)     TRKMKCNT        NUMBER OF MARKS
020078,000148:                                                                                                  #        (2)     TTOGO           TIME TO GO
020079,000149:                                                                                                  #        (3)     +MGA            MIDDLE GIMBAL ANGLE
020080,000150:                                                                                                  #        (4)     TTPI            COMPUTED TIME OF TPI MANEUVER
020081,000151:                                                                                                  #                 OR
020082,000152:                                                                                                  #                ELEV            COMPUTED LOS ANGLE AT TPI
020083,000153:                                                                                                  #        (5)     POSTTPI         PERIGEE ALTITUDE AFTER THE TPI MANEUVER
020084,000154:                                                                                                  #        (6)     DELVTPI         MAGNITUDE OF DELTA V AT TPI
020085,000155:                                                                                                  #        (7)     DELVTPF         MAGNITUDE OF DELTA V AT INTERCEPT
020086,000156:                                                                                                  #        (8)     DVLOS           DELTA VELOCITY AT TPI - LINE OF SIGHT
020087,000157:                                                                                                  #        (9)     DELVLVC         DELTA VELOCITY AT TPI - LOCAL VERTICAL COORDINATES
020088,000158: 
020089,000159:                                                                                                  #  DOWNLINK
020090,000160:                                                                                                  #        (1)     TTPI            TIME OF THE TPI MANEUVER
020091,000161:                                                                                                  #        (2)     TIG             TIME OF THE TPI MANEUVER
020092,000162:                                                                                                  #        (3)     ELEV            DESIRED LOS ANGLE AT TPI
020093,000163:                                                                                                  #        (4)     CENTANG         ORBITAL CENTRAL ANGLE OF THE PASSIVE VEHICLE DURING
020094,000164:                                                                                                  #                                TRANSFER FROM TPI TO TIME OF INTERCEPT
020095,000165:                                                                                                  #        (5)     DELVEET3        DELTA VELOCITY AT TPI - REFERENCE COORDINATES
020096,000166:                                                                                                  #        (6)     TPASS4          TIME OF INTERCEPT
020097,000167: 
020098,000168:                                                                                                  #  COMMUNICATION TO THRUSTING PROGRAMS
020099,000169:                                                                                                  #        (1)     TIG             TIME OF THE TPI MANEUVER
020100,000170:                                                                                                  #        (2)     RTARG           OFFSET TARGET POSITION
020101,000171:                                                                                                  #        (3)     TPASS4          TIME OF INTERCEPT
020102,000172:                                                                                                  #        (4)     XDELVFLG        RESET TO INDICATE LAMBERT (AIMPOINT) VG COMPUTATION
020103,000173: 
020104,000174:                                                                                                  #  SUBROUTINES USED
020105,000175:                                                                                                  #        AVFLAGA

Page 455

020107,000177:                                                                                                  #        AVFLAGP
020108,000178:                                                                                                  #        VNPOOH
020109,000179:                                                                                                  #        DISPLAYE
020110,000180:                                                                                                  #        SELECTMU
020111,000181:                                                                                                  #        PRECSET
020112,000182:                                                                                                  #        S33/34.1
020113,000183:                                                                                                  #        ALARM
020114,000184:                                                                                                  #        BANKCALL
020115,000185:                                                                                                  #        GOFLASH
020116,000186:                                                                                                  #        GOTOPOOH
020117,000187:                                                                                                  #        TIMETHET
020118,000188:                                                                                                  #        S34/35.2
020119,000189:                                                                                                  #        PERIAPO1
020120,000190:                                                                                                  #        SHIFTR1
020121,000191:                                                                                                  #        S34/35.5
020122,000192:                                                                                                  #        VN1645
020123,000193: 
020124,000194: 35,2000                                           SETLOC   CSI/CDH                               
020125,000195: 35,2000                                           BANK                                           
020126,000196: 35,2000  E4,1770                                  EBANK=   SUBEXIT                               
020127,000197: 35,2000                                           COUNT    35/P3474                              
020128,000198: 35,2000           03726        P34                TC       AVFLAGA                               
020129,000199: 35,2001           02003                           TC       P34/P74A                              
020130,000200: 35,2002           03741        P74                TC       AVFLAGP                               
020131,000201: 35,2003           03746        P34/P74A           TC       P20FLGON                              #  SET UPDATFLG, TRACKFLG
020132,000202: 35,2004           33125                           CAF      V06N37                                #  TTPI
020133,000203: 35,2005           03114                           TC       VNPOOH                                
020134,000204: 35,2006           03073                           TC       DISPLAYE                              #  ELEV AND CENTANG
020135,000205: 35,2007           06006                           TC       INTPRET                               
020136,000206: 35,2010           71214                           CLEAR    DLOAD                                 
020137,000207: 35,2011           01270                                    ETPIFLAG                              
020138,000208: 35,2012           03663                                    TTPI                                  
020139,000209: 35,2013           17413                           STODL    TIG                                   
020140,000210: 35,2014           03744                                    ELEV                                  
020141,000211: 35,2015           43054                           BZE      SET                                   
020142,000212: 35,2016           72020                                    P34/P74B                              
020143,000213: 35,2017           01070                                    ETPIFLAG                              
020144,000214: 35,2020           77624        P34/P74B           CALL                                           
020145,000215: 35,2021           10716                                    SELECTMU                              
020146,000216: 35,2022                        DELELO             EQUALS   26D                                   
020147,000217: 35,2022           43145        P34/P74C           DLOAD    SET                                   
020148,000218: 35,2023           15332                                    ZEROVECS                              
020149,000219: 35,2024           03461                                    ITSWICH                               
020150,000220: 35,2025           43014                           BON      CLEAR                                 
020151,000221: 35,2026           01310                                    ETPIFLAG                              
020152,000222: 35,2027           72031                                    SWCHSET                               
020153,000223: 35,2030           03661                                    ITSWICH                               
020154,000224: 35,2031           02364        SWCHSET            STORE    NOMTPI                                
020155,000225: 35,2032           43345        INTLOOP            DLOAD    DAD                                   

Page 456

020157,000227: 35,2033           03663                                    TTPI                                  
020158,000228: 35,2034           02364                                    NOMTPI                                
020159,000229: 35,2035           34041                           STCALL   TDEC1                                 
020160,000230: 35,2036           45354                                    PRECSET                               
020161,000231: 35,2037           77624                           CALL                                           
020162,000232: 35,2040           72212                                    S33/34.1                              
020163,000233: 35,2041           77454                           BZE      EXIT                                  
020164,000234: 35,2042           72053                                    SWCHCLR                               
020165,000235: 35,2043           05537                           TC       ALARM                                 
020166,000236: 35,2044           00611                           OCT      611                                   
020167,000237: 35,2045           34743                           CAF      V05N09                                
020168,000238: 35,2046           04555                           TC       BANKCALL                              
020169,000239: 35,2047           20624                           CADR     GOFLASH                               
020170,000240: 35,2050           04106                           TC       GOTOPOOH                              
020171,000241: 35,2051           02003                           TC       P34/P74A                              #  PROCEED
020172,000242: 35,2052           02043                           TC       -7                                    #  V32
020173,000243: 
020174,000244: 35,2053           43014        SWCHCLR            BONCLR   BON                                   
020175,000245: 35,2054           03601                                    ITSWICH                               
020176,000246: 35,2055           72032                                    INTLOOP                               
020177,000247: 35,2056           01310                                    ETPIFLAG                              
020178,000248: 35,2057           72063                                    P34/P74D                              #  DISPLAY TTPI
020179,000249: 35,2060           77776                           EXIT                                           
020180,000250: 35,2061           03073                           TC       DISPLAYE                              #  DISPLAY ELEV AND CENTANG
020181,000251: 35,2062           02066                           TC       P34/P74E                              
020182,000252: 35,2063           77776        P34/P74D           EXIT                                           
020183,000253: 35,2064           33125                           CAF      V06N37                                #  TTPI
020184,000254: 35,2065           03114                           TC       VNPOOH                                
020185,000255: 35,2066           06006        P34/P74E           TC       INTPRET                               
020186,000256: 35,2067           71201                           SETPD    DLOAD                                 
020187,000257: 35,2070           00001                                    0D                                    
020188,000258: 35,2071           03746                                    RTX1                                  
020189,000259: 35,2072           14047                           STODL    X1                                    
020190,000260: 35,2073           03754                                    CENTANG                               
020191,000261: 35,2074           71406                           PUSH     COS                                   
020192,000262: 35,2075           16734                           STODL    CSTH                                  
020193,000263: 35,2076           77756                           SIN                                            
020194,000264: 35,2077           26732                           STOVL    SNTH                                  
020195,000265: 35,2100           03554                                    RPASS3                                
020196,000266: 35,2101           77657                           VSR*                                           
020197,000267: 35,2102           57176                                    0,2                                   
020198,000268: 35,2103           26657                           STOVL    RVEC                                  
020199,000269: 35,2104           03562                                    VPASS3                                
020200,000270: 35,2105           43057                           VSR*     SET                                   
020201,000271: 35,2106           57176                                    0,2                                   
020202,000272: 35,2107           03466                                    RVSW                                  
020203,000273: 35,2110           36746                           STCALL   VVEC                                  
020204,000274: 35,2111           24737                                    TIMETHET                              
020205,000275: 35,2112           77745                           DLOAD                                          
020206,000276: 35,2113           03663                                    TTPI                                  

Page 457

020208,000278: 35,2114           03503                           STORE    INTIME                                #  FOR INITVEL
020209,000279: 35,2115           77615                           DAD                                            
020210,000280: 35,2116           00037                                    T                                     #  RENDEZVOUS TIME
020211,000281: 35,2117           37656                           STCALL   TPASS4                                #  FOR INITVEL
020212,000282: 35,2120           72534                                    S34/35.2                              
020213,000283: 35,2121           51575                           VLOAD    ABVAL                                 
020214,000284: 35,2122           03646                                    DELVEET3                              
020215,000285: 35,2123           26635                           STOVL    DELVTPI                               
020216,000286: 35,2124           03640                                    VPASS4                                
020217,000287: 35,2125           51451                           VSU      ABVAL                                 
020218,000288: 35,2126           03620                                    VTPRIME                               
020219,000289: 35,2127           26637                           STOVL    DELVTPF                               
020220,000290: 35,2130           03540                                    RACT3                                 
020221,000291: 35,2131           45115                           PDVL     CALL                                  
020222,000292: 35,2132           03612                                    VIPRIME                               
020223,000293: 35,2133           45312                                    PERIAPO1                              
020224,000294: 35,2134           77624                           CALL                                           
020225,000295: 35,2135           45422                                    SHIFTR1                               
020226,000296: 35,2136           16641                           STODL    POSTTPI                               
020227,000297: 35,2137           03663                                    TTPI                                  
020228,000298: 35,2140           03413                           STORE    TIG                                   
020229,000299: 35,2141           77776                           EXIT                                           
020230,000300: 35,2142           33127                           CAF      V06N58                                
020231,000301: 35,2143           03114                           TC       VNPOOH                                
020232,000302: 35,2144           06006                           TC       INTPRET                               
020233,000303: 35,2145           77624                           CALL                                           
020234,000304: 35,2146           72742                                    S34/35.5                              
020235,000305: 35,2147           77624                           CALL                                           
020236,000306: 35,2150           73005                                    VN1645                                
020237,000307: 35,2151           77650                           GOTO                                           
020238,000308: 35,2152           72022                                    P34/P74C                              
020239,000309: 

Page 458

020241,000311:                                                                                                  #  RENDEZVOUS MID-COURSE MANEUVER PROGRAMS (P35 AND P75)
020242,000312:                                                                                                  #  MOD NO -1                     LOG SECTION - P32-P35, P72-P75
020243,000313:                                                                                                  #  MOD BY WHITE.P                DATE  1 JUNE 67
020244,000314: 
020245,000315:                                                                                                  #  PURPOSE
020246,000316:                                                                                                  #        (1)     TO CALCULATE THE REQUIRED DELTA V AND OTHER INITIAL CONDITIONS
020247,000317:                                                                                                  #                REQUIRED BY THE ACTIVE VEHICLE FOR EXECUTION OF THE NEXT
020248,000318:                                                                                                  #                MIDCOURSE CORRECTION OF THE TRANSFER PHASE OF AN ACTIVE
020249,000319:                                                                                                  #                VEHICLE RENDEZVOUS.
020250,000320:                                                                                                  #        (2)     TO DISPLAY TO THE ASTRONAUT AND THE GROUND CERTAIN DEPENDENT
020251,000321:                                                                                                  #                VARIABLES ASSOCIATED WITH THE MANEUVER FOR APPROVAL BY THE
020252,000322:                                                                                                  #                ASTRONAUT/GROUND.
020253,000323:                                                                                                  #        (3)     TO STORE THE TPM TARGET PARAMETERS FOR USE BY THE DESIRED
020254,000324:                                                                                                  #                THRUSTING PROGRAM.
020255,000325: 
020256,000326:                                                                                                  #  ASSUMPTIONS
020257,000327:                                                                                                  #        (1)     THE ISS NEED NOT BE ON TO COMPLETE THIS PROGRAM.
020258,000328:                                                                                                  #        (2)     STATE VECTOR UPDATES BY P27 ARE DISALLOWED DURING AUTOMATIC
020259,000329:                                                                                                  #                STATE VECTOR UPDATING INITIATED BY P20 (SEE ASSUMPTION (3)).
020260,000330:                                                                                                  #        (3)     THE RENDEZVOUS RADAR IS ON AND IS LOCKED ON THE CSM.  THIS WAS
020261,000331:                                                                                                  #                DONE DURING PREVIOUS SELECTION OF P20.  RADAR SIGHTING MARKS
020262,000332:                                                                                                  #                WILL BE MADE AUTOMATICALLY APPROXIMATELY ONCE A MINUTE WHEN
020263,000333:                                                                                                  #                ENABLED BY THE TRACK AND UPDATE FLAGS (SEE P20).  THE
020264,000334:                                                                                                  #                RENDEZVOUS TRACKING MARK COUNTER IS ZEROED BY THE SELECTION OF
020265,000335:                                                                                                  #                P20 AND AFTER EACH THRUSTING MANEUVER.
020266,000336:                                                                                                  #        (4)     THE OPERATION OF THE PROGRAM UTILIZES THE FOLLOWING FLAGS -
020267,000337: 
020268,000338:                                                                                                  #                        ACTIVE VEHICLE FLAG - DESIGNATES THE VEHICLE WHICH IS
020269,000339:                                                                                                  #                        DOING RENDEZVOUS THRUSTING MANEUVERS TO THE PROGRAM WHICH
020270,000340:                                                                                                  #                        CALCULATES THE MANEUVER PARAMETERS.  SET AT THE START OF
020271,000341:                                                                                                  #                        EACH RENDEZVOUS PRE-THRUSTING PROGRAM.
020272,000342: 
020273,000343:                                                                                                  #                        FINAL FLAG - SELECTS FINAL PROGRAM DISPLAYS AFTER CREW HAS
020274,000344:                                                                                                  #                        SELECTED THE FINAL MANEUVER COMPUTATION CYCLE.
020275,000345: 
020276,000346:                                                                                                  #                        EXTERNAL DELTA V FLAG - DESIGNATES THE TYPE OF STEERING
020277,000347:                                                                                                  #                        REQUIRED FOR EXECUTION OF THIS MANEUVER BY THE THRUSTING
020278,000348:                                                                                                  #                        PROGRAM SELECTED AFTER COMPLETION OF THIS PROGRAM.
020279,000349: 
020280,000350:                                                                                                  #        (5)     THE TIME OF INTERCEPT (T(INT)) WAS DEFINED BY PREVIOUS
020281,000351:                                                                                                  #                COMPLETION OF THE TRANSFER PHASE INITIATION (TPI) PROGRAM
020282,000352:                                                                                                  #                (P34/P74) AND IS PRESENTLY AVAILABLE IN STORAGE.

Page 459

020284,000354:                                                                                                  #        (6)     ONCE THE PARAMETERS REQUIRED FOR COMPUTION OF THE MANEUVER
020285,000355:                                                                                                  #                HAVE BEEN COMPLETELY SPECIFIED, THE VALUE OF THE ACTIVE
020286,000356:                                                                                                  #                VEHICLE CENTRAL ANGLE OF TRANSFER IS COMPUTED AND STORED.
020287,000357:                                                                                                  #                THIS NUMBER WILL BE AVAILABLE FOR DISPLAY TO THE ASTRONAUT
020288,000358:                                                                                                  #                THROUGH THE USE OF V06N52.
020289,000359: 
020290,000360:                                                                                                  #                THE ASTRONAUT WILL CALL THIS DISPLAY TO VERIFY THAT THE
020291,000361:                                                                                                  #                CENTRAL ANGLE OF TRANSFER OF THE ACTIVE VEHICLE IS NOT WITHIN
020292,000362:                                                                                                  #                170 TO 190 DEGREES.  IF THE ANGLE IS WITHIN THIS ZONE THE
020293,000363:                                                                                                  #                ASTRONAUT SHOULD REASSESS THE INPUT TARGETING PARAMETERS BASED
020294,000364:                                                                                                  #                UPON DELTA V AND EXPECTED MANEUVER TIME.
020295,000365:                                                                                                  #        (7)     THIS PROGRAM IS SELECTED BY THE ASTRONAUT BY DSKY ENTRY -
020296,000366: 
020297,000367:                                                                                                  #                        P35 IF THIS VEHICLE IS ACTIVE VEHICLE.
020298,000368: 
020299,000369:                                                                                                  #                        P75 IF THIS VEHICLE IS PASSIVE VEHICLE.
020300,000370: 
020301,000371:                                                                                                  #  INPUT
020302,000372:                                                                                                  #        (1)     TPASS4          TIME OF INTERCEPT - SAVED FROM P34/P74
020303,000373: 
020304,000374:                                                                                                  #  OUTPUT
020305,000375:                                                                                                  #        (1)     TRKMKCNT        NUMBER OF MARKS
020306,000376:                                                                                                  #        (2)     TTOGO           TIME TO GO
020307,000377:                                                                                                  #        (3)     +MGA            MIDDLE GIMBAL ANGLE
020308,000378:                                                                                                  #        (4)     DVLOS           DELTA VELOCITY AT MID - LINE OF SIGHT
020309,000379:                                                                                                  #        (5)     DELVLVC         DELTA VELOCITY AT MID - LOCAL VERTICAL COORDINATES
020310,000380: 
020311,000381:                                                                                                  #  DOWNLINK
020312,000382:                                                                                                  #        (1)     TIG             TIME OF THE TPM MANEUVER
020313,000383:                                                                                                  #        (2)     DELVEET3        DELTA VELOCITY AT TPM - REFERENCE COORDINATES
020314,000384:                                                                                                  #        (3)     TPASS4          TIME OF INTERCEPT
020315,000385: 
020316,000386:                                                                                                  #  COMMUNICATION TO THRUSTING PROGRAMS
020317,000387:                                                                                                  #        (1)     TIG             TIME OF THE TPM MANEUVER
020318,000388:                                                                                                  #        (2)     RTARG           OFFSET TARGET POSITION
020319,000389:                                                                                                  #        (3)     TPASS4          TIME OF INTERCEPT
020320,000390:                                                                                                  #        (4)     XDELVFLG        RESET TO INDICATE LAMBERT (AIMPOINT) VG COMPUTATION
020321,000391: 
020322,000392:                                                                                                  #  SUBROUTINES USED
020323,000393:                                                                                                  #        AVFLAGA
020324,000394:                                                                                                  #        AVFLAGP
020325,000395:                                                                                                  #        LOADTIME
020326,000396:                                                                                                  #        SELECTMU
020327,000397:                                                                                                  #        PRECSET
020328,000398:                                                                                                  #        S34/35.1
020329,000399:                                                                                                  #        S34/35.2

Page 460

020331,000401:                                                                                                  #        S34/35.5
020332,000402:                                                                                                  #        VN1645
020333,000403: 
020334,000404: 35,2153                                           COUNT    35/P3575                              
020335,000405: 35,2153  E4,1763                                  EBANK=   KT                                    
020336,000406: 
020337,000407: 35,2153           03726        P35                TC       AVFLAGA                               
020338,000408: 35,2154           00006                           EXTEND                                         
020339,000409: 35,2155           31422                           DCA      ATIGINC                               
020340,000410: 35,2156           02162                           TC       P35/P75A                              
020341,000411: 35,2157           03741        P75                TC       AVFLAGP                               
020342,000412: 35,2160           00006                           EXTEND                                         
020343,000413: 35,2161           31424                           DCA      PTIGINC                               
020344,000414: 35,2162           53764        P35/P75A           DXCH     KT                                    
020345,000415: 35,2163           03746                           TC       P20FLGON                              #  SET UPDATFLG, TRACKFLG
020346,000416: 35,2164           06006                           TC       INTPRET                               
020347,000417: 35,2165           77624                           CALL                                           
020348,000418: 35,2166           10716                                    SELECTMU                              
020349,000419: 35,2167           77634        P35/P75B           RTB                                            
020350,000420: 35,2170           45505                                    LOADTIME                              
020351,000421: 35,2171           03665                           STORE    TSTRT                                 
020352,000422: 35,2172           77615                           DAD                                            
020353,000423: 35,2173           02364                                    KT                                    
020354,000424: 35,2174           03413                           STORE    TIG                                   
020355,000425: 35,2175           03503                           STORE    INTIME                                #  FOR INITVEL
020356,000426: 35,2176           34041                           STCALL   TDEC1                                 
020357,000427: 35,2177           45354                                    PRECSET                               #  ADVANCE BOTH VEHICLES
020358,000428: 35,2200           77624                           CALL                                           
020359,000429: 35,2201           72522                                    S34/35.1                              #  GET NORM AND LOS FOR TRANSFORM
020360,000430: 35,2202           77624                           CALL                                           
020361,000431: 35,2203           72534                                    S34/35.2                              #  GET DELTA V(LV)
020362,000432: 35,2204           77624                           CALL                                           
020363,000433: 35,2205           72742                                    S34/35.5                              
020364,000434: 35,2206           77624                           CALL                                           
020365,000435: 35,2207           73005                                    VN1645                                
020366,000436: 35,2210           77650                           GOTO                                           
020367,000437: 35,2211           72167                                    P35/P75B                              

Page 461

020369,000439:                                                                                                  #  ..... S33/34.1 .....
020370,000440: 
020371,000441: 35,2212           66220        S33/34.1           STQ      SSP                                   
020372,000442: 35,2213           01340                                    NORMEX                                
020373,000443: 35,2214           03665                                    TITER                                 
020374,000444: 35,2215           40000                           OCT      40000                                 
020375,000445: 35,2216           40345                           DLOAD    SETPD                                 
020376,000446: 35,2217           33136                                    MAX250                                
020377,000447: 35,2220           00001                                    0D                                    
020378,000448: 35,2221           27454                           STOVL    SECMAX                                
020379,000449: 35,2222           03540                                    RACT3                                 
020380,000450: 35,2223           27576                           STOVL    RAPREC                                
020381,000451: 35,2224           03546                                    VACT3                                 
020382,000452: 35,2225           27570                           STOVL    VAPREC                                
020383,000453: 35,2226           03554                                    RPASS3                                
020384,000454: 35,2227           27620                           STOVL    RPPREC                                
020385,000455: 35,2230           03562                                    VPASS3                                
020386,000456: 35,2231           03612                           STORE    VPPREC                                
020387,000457: 35,2232           77624        ELCALC             CALL                                           
020388,000458: 35,2233           72522                                    S34/35.1                              #  NORMAL AND LOS
020389,000459: 35,2234           63235                           VXV      PDVL                                  
020390,000460: 35,2235           03540                                    RACT3                                 #  (RA*VA)*RA 0D
020391,000461: 35,2236           53515                           PDVL     UNIT                                  #  ULOS AT 6D
020392,000462: 35,2237           03540                                    RACT3                                 
020393,000463: 35,2240           46315                           PDVL     VPROJ                                 #  XCHNJ AND UP
020394,000464: 35,2241           51352                           VSL2     BVSU                                  
020395,000465: 35,2242           02625                                    ULOS                                  
020396,000466: 35,2243           63256                           UNIT     PDVL                                  #  UP AT 0D
020397,000467: 35,2244           63241                           DOT      PDVL                                  #  UP.UN*RA AT 0D
020398,000468: 35,2245           00001                                    0D                                    #  UP IN MPAC
020399,000469: 35,2246           75241                           DOT      SIGN                                  
020400,000470: 35,2247           02625                                    ULOS                                  
020401,000471: 35,2250           65552                           SL1      ACOS                                  
020402,000472: 35,2251           50315                           PDVL     DOT                                   #  EA AT 0D
020403,000473: 35,2252           02625                                    ULOS                                  
020404,000474: 35,2253           03540                                    RACT3                                 
020405,000475: 35,2254           71244                           BPL      DLOAD                                 
020406,000476: 35,2255           72260                                    TESTY                                 
020407,000477: 35,2256           15340                                    DPPOSMAX                              
020408,000478: 35,2257           41425                           DSU      PUSH                                  
020409,000479: 35,2260           71214        TESTY              BOFF     DLOAD                                 
020410,000480: 35,2261           03741                                    ITSWICH                               
020411,000481: 35,2262           72507                                    ELEX                                  
020412,000482: 35,2263           03452                                    DELEL                                 
020413,000483: 35,2264           14033                           STODL    DELELO                                
020414,000484: 35,2265           77625                           DSU                                            
020415,000485: 35,2266           03744                                    ELEV                                  
020416,000486: 35,2267           03452                           STORE    DELEL                                 
020417,000487: 35,2270           45246                           ABS      DSU                                   
020418,000488: 35,2271           33142                                    ELEPS                                 

Page 462

020420,000490: 35,2272           77640                           BMN                                            
020421,000491: 35,2273           72517                                    TIMEX                                 #  COMMERCIALS EVERYWHERE
020422,000492: 35,2274           70535        FIGTIME            SLOAD    SR1                                   
020423,000493: 35,2275           03665                                    TITER                                 
020424,000494: 35,2276           72030                           BHIZ     LXA,1                                 
020425,000495: 35,2277           01340                                    NORMEX                                #  TOO MANY ITERATIONS
020426,000496: 35,2300           00154                                    MPAC                                  
020427,000497: 35,2301           77330                           SXA,1    VLOAD                                 
020428,000498: 35,2302           03664                                    TITER                                 
020429,000499: 35,2303           03554                                    RPASS3                                
020430,000500: 35,2304           65256                           UNIT     PDDL                                  
020431,000501: 35,2305           00045                                    36D                                   
020432,000502: 35,2306           53515                           PDVL     UNIT                                  
020433,000503: 35,2307           03540                                    RACT3                                 
020434,000504: 35,2310           77725                           PDDL                                           
020435,000505: 35,2311           41525                           PDDL     PUSH                                  
020436,000506: 35,2312           00045                                    36D                                   
020437,000507: 35,2313           77621                           BDSU                                           
020438,000508: 35,2314           00015                                    12D                                   
020439,000509: 35,2315           14037                           STODL    30D                                   #  RP-RA MAGNITUDES
020440,000510: 35,2316           15330                                    DPHALF                                
020441,000511: 35,2317           41425                           DSU      PUSH                                  
020442,000512: 35,2320           03744                                    ELEV                                  
020443,000513: 35,2321           50165                           SIGN     BMN                                   
020444,000514: 35,2322           00037                                    30D                                   
020445,000515: 35,2323           01340                                    NORMEX                                
020446,000516: 35,2324           71545                           DLOAD    COS                                   
020447,000517: 35,2325           56205                           DMP      DDV                                   
020448,000518: 35,2326           00017                                    14D                                   
020449,000519: 35,2327           00015                                    12D                                   
020450,000520: 35,2330           77676                           DCOMP                                          #  SINCE COS(180-A)=-COS A
020451,000521: 35,2331           00035                           STORE    28D                                   
020452,000522: 35,2332           44246                           ABS      BDSU                                  
020453,000523: 35,2333           15330                                    DPHALF                                
020454,000524: 35,2334           77240                           BMN      VLOAD                                 
020455,000525: 35,2335           01340                                    NORMEX                                
020456,000526: 35,2336           02617                                    UNRM                                  
020457,000527: 35,2337           53435                           VXV      UNIT                                  
020458,000528: 35,2340           00007                                    6D                                    #  UN*RA
020459,000529: 35,2341           41241                           DOT      DMP                                   
020460,000530: 35,2342           03546                                    VACT3                                 
020461,000531: 35,2343           00015                                    12D                                   
020462,000532: 35,2344           47315                           PDVL     VXV                                   
020463,000533: 35,2345           00001                                    0D                                    
020464,000534: 35,2346           03562                                    VPASS3                                
020465,000535: 35,2347           53435                           VXV      UNIT                                  
020466,000536: 35,2350           00001                                    0D                                    #  (RP*VP)*RP
020467,000537: 35,2351           41241                           DOT      DMP                                   
020468,000538: 35,2352           03562                                    VPASS3                                
020469,000539: 35,2353           00017                                    14D                                   

Page 463

020471,000541: 35,2354           77621                           BDSU                                           
020472,000542: 35,2355           63301                           NORM     PDVL                                  #  NORMALIZED WA-WP 12D
020473,000543: 35,2356           00047                                    X1                                    
020474,000544: 35,2357           00007                                    6D                                    
020475,000545: 35,2360           50235                           VXV      DOT                                   
020476,000546: 35,2361           00001                                    0D                                    
020477,000547: 35,2362           02617                                    UNRM                                  #  RA*RP.UN 14D
020478,000548: 35,2363           50315                           PDVL     DOT                                   
020479,000549: 35,2364           00001                                    0D                                    
020480,000550: 35,2365           00007                                    6D                                    
020481,000551: 35,2366           65552                           SL1      ACOS                                  
020482,000552: 35,2367           77765                           SIGN                                           
020483,000553: 35,2370           43225                           DSU      DAD                                   #  ALPHA PI
020484,000554: 35,2371           15330                                    DPHALF                                
020485,000555: 35,2372           03744                                    ELEV                                  
020486,000556: 35,2373           65525                           PDDL     ACOS                                  
020487,000557: 35,2374           00035                                    28D                                   
020488,000558: 35,2375           75221                           BDSU     SIGN                                  
020489,000559: 35,2376           15330                                    DPHALF                                
020490,000560: 35,2377           00037                                    30D                                   #  CONTAINS RP-RA
020491,000561: 35,2400           77615                           DAD                                            
020492,000562: 35,2401           56205                           DMP      DDV                                   
020493,000563: 35,2402           33134                                    TWOPI                                 
020494,000564: 35,2403           77605                           DMP                                            
020495,000565: 35,2404           41257                           SL*      DMP                                   
020496,000566: 35,2405           20176                                    0          -3,1                       
020497,000567: 35,2406           51406                           PUSH     ABS                                   
020498,000568: 35,2407           50025                           DSU      BMN                                   
020499,000569: 35,2410           03454                                    SECMAX                                
020500,000570: 35,2411           72415                                    OKMAX                                 
020501,000571: 35,2412           75345                           DLOAD    SIGN                                  #  REPLACE TIME WITH MAX TIME SIGNED
020502,000572: 35,2413           03454                                    SECMAX                                
020503,000573: 35,2414           77606                           PUSH                                           
020504,000574: 35,2415           51135        OKMAX              SLOAD    BPL                                   #  TEST FIRST ITERATION
020505,000575: 35,2416           03665                                    TITER                                 
020506,000576: 35,2417           72425                                    REPETE                                
020507,000577: 35,2420           71331                           SSP      DLOAD                                 
020508,000578: 35,2421           03665                                    TITER                                 
020509,000579: 35,2422           37777                           OCT      37777                                 
020510,000580: 35,2423           77650                           GOTO                                           
020511,000581: 35,2424           72463                                    STORDELT                              
020512,000582: 35,2425           41345        REPETE             DLOAD    DMP                                   
020513,000583: 35,2426           03452                                    DELEL                                 
020514,000584: 35,2427           00033                                    DELELO                                
020515,000585: 35,2430           71244                           BPL      DLOAD                                 
020516,000586: 35,2431           72441                                    NEXTES                                
020517,000587: 35,2432           03454                                    SECMAX                                
020518,000588: 35,2433           77605                           DMP                                            
020519,000589: 35,2434           33140                                    THIRD                                 
020520,000590: 35,2435           17454                           STODL    SECMAX                                

Page 464

020522,000592: 35,2436           70446                           ABS      SR1                                   #  CROSSED OVER SOLUTION
020523,000593: 35,2437           52076                           DCOMP    GOTO                                  #  DT=(-SIGN(DTO)//DT//)/2
020524,000594: 35,2440           72451                                    RESIGN                                
020525,000595: 35,2441           51545        NEXTES             DLOAD    ABS                                   
020526,000596: 35,2442           03452                                    DELEL                                 
020527,000597: 35,2443           51525                           PDDL     ABS                                   
020528,000598: 35,2444           00033                                    DELELO                                
020529,000599: 35,2445           77625                           DSU                                            
020530,000600: 35,2446           71240                           BMN      DLOAD                                 
020531,000601: 35,2447           72454                                    REVERS                                #  WRONG DIRECTION
020532,000602: 35,2450           77646                           ABS                                            
020533,000603: 35,2451           52165        RESIGN             SIGN     GOTO                                  
020534,000604: 35,2452           03450                                    DELTEEO                               
020535,000605: 35,2453           72463                                    STORDELT                              
020536,000606: 35,2454           57545        REVERS             DLOAD    DCOMP                                 
020537,000607: 35,2455           03450                                    DELTEEO                               
020538,000608: 35,2456           70406                           PUSH     SR1                                   
020539,000609: 35,2457           03450                           STORE    DELTEEO                               
020540,000610: 35,2460           77615                           DAD                                            
020541,000611: 35,2461           77650                           GOTO                                           
020542,000612: 35,2462           72464                                    ADTIME                                
020543,000613: 35,2463           03450        STORDELT           STORE    DELTEEO                               
020544,000614: 35,2464           77615        ADTIME             DAD                                            
020545,000615: 35,2465           02364                                    NOMTPI                                #  SUM OF DELTA T:S
020546,000616: 35,2466           02364                           STORE    NOMTPI                                
020547,000617: 35,2467           63375                           VLOAD    PDVL                                  
020548,000618: 35,2470           03570                                    VAPREC                                
020549,000619: 35,2471           03576                                    RAPREC                                
020550,000620: 35,2472           77624                           CALL                                           
020551,000621: 35,2473           72702                                    GOINT                                 
020552,000622: 35,2474           77624                           CALL                                           
020553,000623: 35,2475           45376                                    ACTIVE                                #  STORE NEW RACT3 VACT3
020554,000624: 35,2476           63375                           VLOAD    PDVL                                  
020555,000625: 35,2477           03612                                    VPPREC                                
020556,000626: 35,2500           03620                                    RPPREC                                
020557,000627: 35,2501           77624                           CALL                                           
020558,000628: 35,2502           72702                                    GOINT                                 
020559,000629: 35,2503           77624                           CALL                                           
020560,000630: 35,2504           45406                                    PASSIVE                               #  STORE NEW RPASS3 VPASS3
020561,000631: 35,2505           77650                           GOTO                                           
020562,000632: 35,2506           72232                                    ELCALC                                
020563,000633: 35,2507           43345        ELEX               DLOAD    DAD                                   
020564,000634: 35,2510           03663                                    TTPI                                  
020565,000635: 35,2511           02364                                    NOMTPI                                
020566,000636: 35,2512           17663                           STODL    TTPI                                  
020567,000637: 35,2513           77614                           BON                                            
020568,000638: 35,2514           01310                                    ETPIFLAG                              
020569,000639: 35,2515           72517                                    TIMEX                                 
020570,000640: 35,2516           03744                           STORE    ELEV                                  
020571,000641: 35,2517           52145        TIMEX              DLOAD    GOTO                                  

Page 465

020573,000643: 35,2520           15332                                    ZEROVECS                              
020574,000644: 35,2521           01340                                    NORMEX                                
020575,000645: 

Page 466

020577,000647:                                                                                                  #  ..... S34/35.1 .....
020578,000648: 
020579,000649:                                                                                                  #  COMPUTE UNIT NORMAL AND LINE OF SIGHT VECTORS GIVEN THE ACTIVE AND
020580,000650:                                                                                                  #  PASSIVE POS AND VEL AT TIME T3
020581,000651: 
020582,000652: 35,2522           52375        S34/35.1           VLOAD    VSU                                   
020583,000653: 35,2523           03554                                    RPASS3                                
020584,000654: 35,2524           03540                                    RACT3                                 
020585,000655: 35,2525           41456                           UNIT     PUSH                                  
020586,000656: 35,2526           26625                           STOVL    ULOS                                  
020587,000657: 35,2527           03540                                    RACT3                                 
020588,000658: 35,2530           53435                           VXV      UNIT                                  
020589,000659: 35,2531           03546                                    VACT3                                 
020590,000660: 35,2532           02617                           STORE    UNRM                                  
020591,000661: 35,2533           77616                           RVQ                                            
020592,000662: 

Page 467

020594,000664:                                                                                                  #  ..... S34/35.2 .....
020595,000665: 
020596,000666:                                                                                                  #  ADVANCE PASSIVE VEH TO RENDEZVOUS TIME AND GET REQ VEL FROM LAMBERT
020597,000667: 
020598,000668: 35,2534           77220        S34/35.2           STQ      VLOAD                                 
020599,000669: 35,2535           02370                                    SUBEXIT                               
020600,000670: 35,2536           03562                                    VPASS3                                
020601,000671: 35,2537           65315                           PDVL     PDDL                                  
020602,000672: 35,2540           03554                                    RPASS3                                
020603,000673: 35,2541           03503                                    INTIME                                
020604,000674: 35,2542           65325                           PDDL     PDDL                                  
020605,000675: 35,2543           03656                                    TPASS4                                
020606,000676: 35,2544           15332                                    ZEROVECS                              
020607,000677: 35,2545           45006                           PUSH     CALL                                  
020608,000678: 35,2546           72706                                    INTINT                                #  GET TARGET VECTOR
020609,000679: 35,2547           27415        S3435.25           STOVL    RTARG                                 
020610,000680: 35,2550           00007                                    VATT                                  
020611,000681: 35,2551           27640                           STOVL    VPASS4                                
020612,000682: 35,2552           03415                                    RTARG                                 
020613,000683:                                                                                                  #  COMPUTE PHI = PI + (ACOS(UNIT RA.UNIT RP) - PI) SIGN(RA*RP.U)
020614,000684: 35,2553           63256                           UNIT     PDVL                                  #  UNIT RP
020615,000685: 35,2554           03540                                    RACT3                                 
020616,000686: 35,2555           41456                           UNIT     PUSH                                  #  UNIT RA
020617,000687: 35,2556           50235                           VXV      DOT                                   
020618,000688: 35,2557           00001                                    0D                                    
020619,000689: 35,2560           02617                                    UNRM                                  #  RA*RP.U
020620,000690: 35,2561           77715                           PDVL                                           
020621,000691: 35,2562           72441                           DOT      SL1                                   #  UNIT RA.UNIT RP
020622,000692: 35,2563           00001                                    0D                                    
020623,000693: 35,2564           75326                           ACOS     SIGN                                  
020624,000694: 35,2565           43244                           BPL      DAD                                   
020625,000695: 35,2566           72570                                    NOPIE                                 
020626,000696: 35,2567           15340                                    DPPOSMAX                              #  REASONABLE TWO PI
020627,000697: 35,2570           16633        NOPIE              STODL    ACTCENT                               
020628,000698: 35,2571           03656                                    TPASS4                                
020629,000699: 35,2572           77625                           DSU                                            
020630,000700: 35,2573           03503                                    INTIME                                
020631,000701: 35,2574           03423                           STORE    DELLT4                                
020632,000702: 35,2575           40335                           SLOAD    SETPD                                 
020633,000703: 35,2576           33144                                    DECTWO                                
020634,000704: 35,2577           00001                                    0D                                    
020635,000705: 35,2600           63325                           PDDL     PDVL                                  
020636,000706: 35,2601           33147                                    EPSFOUR                               
020637,000707: 35,2602           03540                                    RACT3                                 
020638,000708: 35,2603           27570                           STOVL    RINIT                                 
020639,000709: 35,2604           03546                                    VACT3                                 
020640,000710: 35,2605           37576                           STCALL   VINIT                                 
020641,000711: 35,2606           22000                                    INITVEL                               
020642,000712: 35,2607           77624                           CALL                                           
020643,000713: 35,2610           72667                                    LOMAT                                 
020644,000714: 35,2611           64375                           VLOAD    MXV                                   

Page 468

020646,000716: 35,2612           03646                                    DELVEET3                              
020647,000717: 35,2613           00001                                    0D                                    
020648,000718: 35,2614           77772                           VSL1                                           
020649,000719: 35,2615           37405                           STCALL   DELVLVC                               
020650,000720: 35,2616           02370                                    SUBEXIT                               
020651,000721: 

Page 469

020653,000723:                                                                                                  #  ..... S34/35.3 .....
020654,000724: 
020655,000725: 35,2617           45020        S34/35.3           STQ      CALL                                  
020656,000726: 35,2620           01340                                    NORMEX                                
020657,000727: 35,2621           72667                                    LOMAT                                 #  GET MATRIX IN PUSH LIST
020658,000728: 35,2622           61375                           VLOAD    VXM                                   
020659,000729: 35,2623           03405                                    DELVLVC                               #  NEW DEL V TPI
020660,000730: 35,2624           00001                                    0D                                    
020661,000731: 35,2625           77772                           VSL1                                           
020662,000732: 35,2626           03646                           STORE    DELVEET3                              #  SAVE FOR TRANSFORM
020663,000733: 35,2627           63255                           VAD      PDVL                                  
020664,000734: 35,2630           03546                                    VACT3                                 #  NEW V REQ
020665,000735: 35,2631           03540                                    RACT3                                 
020666,000736: 35,2632           65325                           PDDL     PDDL                                  
020667,000737: 35,2633           03413                                    TIG                                   
020668,000738: 35,2634           03656                                    TPASS4                                
020669,000739: 35,2635           41525                           PDDL     PUSH                                  
020670,000740: 35,2636           15340                                    DPPOSMAX                              
020671,000741: 35,2637           77624                           CALL                                           #  INTEG. FOR NEW TARGET VEC
020672,000742: 35,2640           72706                                    INTINT                                
020673,000743: 35,2641           77775                           VLOAD                                          
020674,000744: 35,2642           00001                                    RATT                                  
020675,000745: 35,2643           03415                           STORE    RTARG                                 
020676,000746: 35,2644           41575        NOVRWRT            VLOAD    PUSH                                  
020677,000747: 35,2645           02625                                    ULOS                                  
020678,000748: 35,2646           57435                           VXV      VCOMP                                 
020679,000749: 35,2647           02617                                    UNRM                                  
020680,000750: 35,2650           41456                           UNIT     PUSH                                  
020681,000751: 35,2651           76435                           VXV      VSL1                                  
020682,000752: 35,2652           02625                                    ULOS                                  
020683,000753: 35,2653           77715                           PDVL                                           
020684,000754: 35,2654           64315                           PDVL     MXV                                   
020685,000755: 35,2655           03646                                    DELVEET3                              
020686,000756: 35,2656           00001                                    0D                                    
020687,000757: 35,2657           77772                           VSL1                                           
020688,000758: 35,2660           36611                           STCALL   DVLOS                                 
020689,000759: 35,2661           01340                                    NORMEX                                
020690,000760: 

Page 470

020692,000762:                                                                                                  #  ..... S34/35.4 .....
020693,000763: 
020694,000764: 35,2662           40220        S34/35.4           STQ      SETPD                                 #  NO ASTRONAUT OVERWRITE
020695,000765: 35,2663           01340                                    NORMEX                                
020696,000766: 35,2664           00001                                    0D                                    
020697,000767: 35,2665           77650                           GOTO                                           
020698,000768: 35,2666           72644                                    NOVRWRT                               
020699,000769: 

Page 471

020701,000771:                                                                                                  #  ..... LOMAT .....
020702,000772: 
020703,000773: 35,2667           57575        LOMAT              VLOAD    VCOMP                                 
020704,000774: 35,2670           02617                                    UNRM                                  
020705,000775: 35,2671           24007                           STOVL    6D                                    #  Y
020706,000776: 35,2672           03540                                    RACT3                                 
020707,000777: 35,2673           57456                           UNIT     VCOMP                                 
020708,000778: 35,2674           00015                           STORE    12D                                   
020709,000779: 35,2675           76435                           VXV      VSL1                                  
020710,000780: 35,2676           02617                                    UNRM                                  #  Z*-Y
020711,000781: 35,2677           00001                           STORE    0D                                    
020712,000782: 35,2700           43401                           SETPD    RVQ                                   
020713,000783: 35,2701           00023                                    18D                                   
020714,000784: 35,2702           65325        GOINT              PDDL     PDDL                                  #  DO
020715,000785: 35,2703           15332                                    ZEROVECS                              #        NOT
020716,000786: 35,2704           02364                                    NOMTPI                                
020717,000787: 35,2705           41406                           PUSH     PUSH                                  #                ORDER OR INSERT BEFORE INTINT
020718,000788: 35,2706           45020        INTINT             STQ      CALL                                  
020719,000789: 35,2707           02367                                    RTRN                                  
020720,000790: 35,2710           27371                                    INTSTALL                              
020721,000791: 35,2711           71214                           CLEAR    DLOAD                                 
020722,000792: 35,2712           01673                                    INTYPFLG                              
020723,000793: 35,2713           43054                           BZE      SET                                   
020724,000794: 35,2714           72716                                    +2                                    
020725,000795: 35,2715           01473                                    INTYPFLG                              
020726,000796: 35,2716           45545                           DLOAD    STADR                                 
020727,000797: 35,2717           63736                           STODL    TDEC1                                 
020728,000798: 35,2720           73014                           SET      LXA,2                                 
020729,000799: 35,2721           00063                                    MOONFLAG                              
020730,000800: 35,2722           03746                                    RTX2                                  
020731,000801: 35,2723           43014                           BON      CLEAR                                 
020732,000802: 35,2724           04303                                    CMOONFLG                              
020733,000803: 35,2725           72727                                    ALLSET                                
020734,000804: 35,2726           00263                                    MOONFLAG                              
020735,000805: 35,2727           25517        ALLSET             STOVL    TET                                   
020736,000806: 35,2730           77657                           VSR*                                           
020737,000807: 35,2731           57176                                    0,2                                   
020738,000808: 35,2732           25535                           STOVL    RCV                                   
020739,000809: 35,2733           77657                           VSR*                                           
020740,000810: 35,2734           57176                                    0,2                                   
020741,000811: 35,2735           35543                           STCALL   VCV                                   
020742,000812: 35,2736           27066                                    INTEGRVS                              
020743,000813: 35,2737           52175                           VLOAD    GOTO                                  
020744,000814: 35,2740           00001                                    RATT                                  
020745,000815: 35,2741           02367                                    RTRN                                  
020746,000816: 

Page 472

020748,000818:                                                                                                  #  ..... S34/35.5 .....
020749,000819: 
020750,000820:                                                                                                  #  SUBROUTINES USED
020751,000821:                                                                                                  #        BANKCALL
020752,000822:                                                                                                  #        GOFLASH
020753,000823:                                                                                                  #        GOTOPOOH
020754,000824:                                                                                                  #        S34/35.3
020755,000825:                                                                                                  #        S34/35.4
020756,000826:                                                                                                  #        VNPOOH
020757,000827: 
020758,000828: 35,2742           43020        S34/35.5           STQ      BON                                   
020759,000829: 35,2743           02370                                    SUBEXIT                               
020760,000830: 35,2744           01311                                    FINALFLG                              
020761,000831: 35,2745           72751                                    FLAGON                                
020762,000832: 35,2746           52014                           SET      GOTO                                  
020763,000833: 35,2747           00470                                    UPDATFLG                              
020764,000834: 35,2750           72775                                    FLAGOFF                               
020765,000835: 35,2751           77414        FLAGON             CLEAR    EXIT                                  
020766,000836: 35,2752           03274                                    NTARGFLG                              
020767,000837: 35,2753           33131                           CAF      V06N81                                
020768,000838: 35,2754           04555                           TC       BANKCALL                              
020769,000839: 35,2755           20624                           CADR     GOFLASH                               
020770,000840: 35,2756           04106                           TC       GOTOPOOH                              
020771,000841: 35,2757           02764                           TC       +5                                    
020772,000842: 35,2760           06006                           TC       INTPRET                               
020773,000843: 35,2761           77414                           SET      EXIT                                  
020774,000844: 35,2762           03074                                    NTARGFLG                              
020775,000845: 35,2763           02753                           TC       FLAGON     +2                         
020776,000846: 35,2764           06006                           TC       INTPRET                               
020777,000847: 35,2765           45014                           BOFF     CALL                                  
020778,000848: 35,2766           03354                                    NTARGFLG                              
020779,000849: 35,2767           72771                                    NOCHG                                 
020780,000850: 35,2770           72617                                    S34/35.3                              
020781,000851: 35,2771           77214        NOCHG              CLEAR    VLOAD                                 
020782,000852: 35,2772           01267                                    XDELVFLG                              
020783,000853: 35,2773           03646                                    DELVEET3                              
020784,000854: 35,2774           03646                           STORE    DELVSIN                               
020785,000855: 35,2775           77624        FLAGOFF            CALL                                           
020786,000856: 35,2776           72662                                    S34/35.4                              
020787,000857: 35,2777           77776                           EXIT                                           
020788,000858: 35,3000           33130                           CAF      V06N59                                
020789,000859: 35,3001           03114                           TC       VNPOOH                                
020790,000860: 35,3002           06006                           TC       INTPRET                               
020791,000861: 35,3003           77650                           GOTO                                           
020792,000862: 35,3004           02370                                    SUBEXIT                               
020793,000863: 

Page 473

020795,000865:                                                                                                  #  ..... VN1645 .....
020796,000866: 
020797,000867:                                                                                                  #  SUBROUTINES USED
020798,000868:                                                                                                  #        P3XORP7X
020799,000869:                                                                                                  #        GET+MGA
020800,000870:                                                                                                  #        BANKCALL
020801,000871:                                                                                                  #        DELAYJOB
020802,000872:                                                                                                  #        COMPTGO
020803,000873:                                                                                                  #        GOFLASHR
020804,000874:                                                                                                  #        GOTOPOOH
020805,000875:                                                                                                  #        FLAGUP
020806,000876: 
020807,000877: 35,3005           71220        VN1645             STQ      DLOAD                                 
020808,000878: 35,3006           02370                                    SUBEXIT                               
020809,000879: 35,3007           33145                                    DP-.01                                
020810,000880: 35,3010           03626                           STORE    +MGA                                  #  MGA = -.01
020811,000881: 35,3011           71214                           BOFF     DLOAD                                 
020812,000882: 35,3012           01351                                    FINALFLG                              
020813,000883: 35,3013           73033                                    GET45                                 
020814,000884: 35,3014           33145                                    DP-.01                                
020815,000885: 35,3015           77615                           DAD                                            
020816,000886: 35,3016           33145                                    DP-.01                                
020817,000887: 35,3017           03626                           STORE    +MGA                                  #  MGA = -.02
020818,000888: 35,3020           77414                           BOFF     EXIT                                  
020819,000889: 35,3021           01742                                    REFSMFLG                              
020820,000890: 35,3022           73033                                    GET45                                 
020821,000891: 35,3023           03106                           TC       P3XORP7X                              
020822,000892: 35,3024           03026                           TC       +2                                    #  P3X
020823,000893: 35,3025           03034                           TC       GET45      +1                         #  P7X
020824,000894: 35,3026           06006                           TC       INTPRET                               
020825,000895: 35,3027           41575                           VLOAD    PUSH                                  
020826,000896: 35,3030           03646                                    DELVSIN                               
020827,000897: 35,3031           77624                           CALL                                           #  COMPUTE MGA
020828,000898: 35,3032           10660                                    GET+MGA                               
020829,000899: 35,3033           77776        GET45              EXIT                                           
020830,000900: 35,3034           03564                           TC       COMPTGO                               #  INITIATE TASK TO UPDATE TTOGO
020831,000901: 35,3035           31770                           CA       SUBEXIT                               
020832,000902: 35,3036           55766                           TS       QSAVED                                
020833,000903: 35,3037           34734                           CAF      1SEC                                  
020834,000904: 35,3040           04555                           TC       BANKCALL                              
020835,000905: 35,3041           01732                           CADR     DELAYJOB                              
020836,000906: 35,3042           33132                           CAF      V16N45                                #  TRKMKCNT, TTOGO, +MGA
020837,000907: 35,3043           04555                           TC       BANKCALL                              
020838,000908: 35,3044           20624                           CADR     GOFLASH                               
020839,000909: 35,3045           03050                           TC       KILCLOCK                              #  TERMINATE
020840,000910: 35,3046           03053                           TC       N45PROC                               #  PROCEED
020841,000911: 35,3047           03063                           TC       CLUPDATE                              #  RECYCLE - RETURN FOR INITIAL COMPUTATION
020842,000912: 35,3050           30005        KILCLOCK           CA       Z                                     
020843,000913: 35,3051           54000                           TS       DISPDEX                               

Page 474

020845,000915: 35,3052           04106                           TC       GOTOPOOH                              
020846,000916: 35,3053           40076        N45PROC            CS       FLAGWRD2                              
020847,000917: 35,3054           74705                           MASK     BIT6                                  
020848,000918: 35,3055           00006                           EXTEND                                         
020849,000919: 35,3056           13050                           BZF      KILCLOCK                              #  FINALFLG IS SET - FLASH V37 - AWAIT NEW PGM
020850,000920: 35,3057           05301                           TC       PHASCHNG                              
020851,000921: 35,3060           04024                           OCT      04024                                 
020852,000922: 35,3061           05435                           TC       UPFLAG                                #  SET
020853,000923: 35,3062           00047                           ADRES    FINALFLG                              #  FINALFLG
020854,000924: 35,3063           30005        CLUPDATE           CA       Z                                     
020855,000925: 35,3064           54000                           TS       DISPDEX                               
020856,000926: 35,3065           05301                           TC       PHASCHNG                              
020857,000927: 35,3066           04024                           OCT      04024                                 
020858,000928: 35,3067           06006                           TC       INTPRET                               
020859,000929: 35,3070           52014                           CLEAR    GOTO                                  
020860,000930: 35,3071           00670                                    UPDATFLG                              
020861,000931: 35,3072           02366                                    QSAVED                                
020862,000932: 

Page 475

020864,000934:                                                                                                  #  ..... DISPLAYE .....
020865,000935: 
020866,000936:                                                                                                  #  SUBROUTINES USED
020867,000937:                                                                                                  #        BANKCALL
020868,000938:                                                                                                  #        GOFLASHR
020869,000939:                                                                                                  #        GOTOPOOH
020870,000940:                                                                                                  #        BLANKET
020871,000941:                                                                                                  #        ENDOFJOB
020872,000942: 
020873,000943: 35,3073           00006        DISPLAYE           EXTEND                                         
020874,000944: 35,3074           23340                           QXCH     NORMEX                                
020875,000945: 35,3075           33126                           CAF      V06N55                                
020876,000946: 35,3076           04555                           TCR      BANKCALL                              
020877,000947: 35,3077           20763                           CADR     GOFLASHR                              
020878,000948: 35,3100           14106                           TCF      GOTOPOOH                              
020879,000949: 35,3101           01340                           TC       NORMEX                                
020880,000950: 35,3102           13075                           TCF      -5                                    
020881,000951: 35,3103           34712                           CAF      BIT1                                  #  BLANK R1
020882,000952: 35,3104           05415                           TCR      BLANKET                               
020883,000953: 35,3105           15112                           TCF      ENDOFJOB                              
020884,000954: 

Page 476

020886,000956:                                                                                                  #  ..... P3XORP7X .....
020887,000957: 
020888,000958: 35,3106           37713        P3XORP7X           CAF      HIGH9                                 
020889,000959: 35,3107           71011                           MASK     MODREG                                
020890,000960: 35,3110           00006                           EXTEND                                         
020891,000961: 35,3111           13113                           BZF      +2                                    
020892,000962: 35,3112           24002                           INCR     Q                                     
020893,000963: 35,3113           00002                           RETURN                                         
020894,000964: 
020895,000965:                                                                                                  #  ..... VNPOOH .....
020896,000966: 
020897,000967:                                                                                                  #  SUBROUTINES USED
020898,000968:                                                                                                  #        BANKCALL
020899,000969:                                                                                                  #        GOFLASH
020900,000970:                                                                                                  #        GOTOPOOH
020901,000971: 
020902,000972: 35,3114           00006        VNPOOH             EXTEND                                         
020903,000973: 35,3115           23767                           QXCH     RTRN                                  
020904,000974: 35,3116           55765                           TS       VERBNOUN                              
020905,000975: 35,3117           31765                           CA       VERBNOUN                              
020906,000976: 35,3120           04555                           TCR      BANKCALL                              
020907,000977: 35,3121           20624                           CADR     GOFLASH                               
020908,000978: 35,3122           14106                           TCF      GOTOPOOH                              
020909,000979: 35,3123           01767                           TC       RTRN                                  
020910,000980: 35,3124           13117                           TCF      -5                                    
020911,000981: 

Page 477

020913,000983:                                                                                                  #  ..... CONSTANTS .....
020914,000984: 
020915,000985: 35,3125           01445        V06N37             VN       0637                                  
020916,000986: 35,3126           01467        V06N55             VN       0655                                  
020917,000987: 35,3127           01472        V06N58             VN       0658                                  
020918,000988: 35,3130           01473        V06N59             VN       0659                                  
020919,000989: 35,3131           01521        V06N81             VN       0681                                  
020920,000990: 35,3132           04055        V16N45             VN       1645                                  
020921,000991: 35,3133           14441 37325  TWOPI              2DEC     6.283185307 B-4                        
020922,000992: 35,3135           00001 20650  MAX250             2DEC     25         E3                         
020923,000993: 35,3137           12525 12525  THIRD              2DEC     .333333333                            
020924,000994: 35,3141           00004 21505  ELEPS              2DEC     .27777777  E-3                        
020925,000995: 35,3143           00002        DECTWO             OCT      2                                     
020926,000996: 35,3144           77777        DP-.01             OCT      77777                                 #  CONSTANTS
020927,000997: 35,3145           61337                           OCT      61337                                 #  ADJACENT      -.01 FOR MGA DSP
020928,000998: 35,3146           01252 25253  EPSFOUR            2DEC     .0416666666                            
020929,000999: 

Page 478

020931,001001:                                                                                                  #  ..... INITVEL .....
020932,001002:                                                                                                  #  MOD NO -1                     LOG SECTION - P34-P35, P74-P75
020933,001003:                                                                                                  #  MOD BY WHITE.P                DATE  21 NOV 67
020934,001004: 
020935,001005:                                                                                                  #  FUNCTIONAL DESCRIPTION
020936,001006:                                                                                                  #        THIS SUBROUTINE COMPUTES THE REQUIRED INITIAL VELOCITY VECTOR FOR
020937,001007:                                                                                                  #        A TRAJECTORY OF SPECIFIED TRANSFER TIME BETWEEN SPECIFIED INITIAL
020938,001008:                                                                                                  #        AND TARGET POSITIONS.  THE TRAJECTORY MAY BE EITHER CONIC OR
020939,001009:                                                                                                  #        PRECISION DEPENDING ON AN INPUT PARAMETER (NAMELY, NUMBER OF
020940,001010:                                                                                                  #        OFFSETS).  IN ADDITION, IN TH EPRECISION TRAJECTORY CASE, THE
020941,001011:                                                                                                  #        SUBROUTINE ALSO COMPUTES AN OFFSET TARGET VECTOR, TO BE USED
020942,001012:                                                                                                  #        DURING PURE-CONIC CROSS-PRODUCT STEERING.  THE OFFSET TARGET
020943,001013:                                                                                                  #        VECTOR IS THE TERMINAL POSITION VECTOR OF A CONIC TRAJECTORY WHICH
020944,001014:                                                                                                  #        HAS THE SAME INITIAL STATE AS A PRECISION TRAJECTORY WHOSE
020945,001015:                                                                                                  #        TERMINAL POSITION VECTOR IS THE SPECIFIED TARGET VECTOR.
020946,001016: 
020947,001017:                                                                                                  #        IN ORDER TO AVOID THE INHERENT SINGULARITIES IN THE 180 DEGREE
020948,001018:                                                                                                  #        TRANSFER CASE WHEN THE (TRUE OR OFFSET) TARGET VECTOR MAY BE
020949,001019:                                                                                                  #        SLIGHTLYOUT OF THE ORBITAL PLANE, THIS SUBROUTINE ROTATES THIS
020950,001020:                                                                                                  #        VECTOR INTO A PLANE DEFINED BY THE INPUT INITIAL POSITION VECTOR
020951,001021:                                                                                                  #        AND ANOTHER INPUT VECTOR (USUALLY THE INITIAL VELOCITY VECTOR),
020952,001022:                                                                                                  #        WHENEVER THE INPUT TARGET VECTOR LIES INSIDE A CONE WHOSE VERTEX
020953,001023:                                                                                                  #        IS THE ORIGIN OF COORDINATES, WHOSE AXIS IS THE 180 DEGREE
020954,001024:                                                                                                  #        TRANSFER DIRECTION, AND WHOSE CONE ANGLE IS SPECIFIED BY THE USER.
020955,001025: 
020956,001026:                                                                                                  #        THE LAMBERT SUBROUTINE IS UTILIZED FOR THE CONIC COMPUTATIONS AND
020957,001027:                                                                                                  #        THE COASTING INTEGRATION SUBROUTINE IS UTILIZED FOR THE PRECISION
020958,001028:                                                                                                  #        TRAJECTORY COMPUTATIONS.
020959,001029: 
020960,001030:                                                                                                  #  CALLING SEQUENCE
020961,001031:                                                                                                  #        L       CALL
020962,001032:                                                                                                  #        L+1             INITVEL
020963,001033:                                                                                                  #        L+2     (RETURN - ALWAYS)
020964,001034: 
020965,001035:                                                                                                  #  INPUT
020966,001036:                                                                                                  #        (1)     RINIT           INITIAL POSITION RADIUS VECTOR
020967,001037:                                                                                                  #        (2)     VINIT           INITIAL POSITION VELOCITY VECTOR
020968,001038:                                                                                                  #        (3)     RTARG           TARGET POSITION RADIUS VECTOR
020969,001039:                                                                                                  #        (4)     DELLT4          DESIRED TIME OF FLIGHT FROM RINIT TO RTARG
020970,001040:                                                                                                  #        (5)     INTIME          TIME OF RINIT
020971,001041:                                                                                                  #        (6)     0D              NUMBER OF ITERATIONS OF LAMBERT/INTEGRVS
020972,001042:                                                                                                  #        (7)     2D              ANGLE TO 180 DEGREES WHEN ROTATION STARTS
020973,001043:                                                                                                  #        (8)     RTX1            -2 FOR EARTH, -10D FOR LUNAR
020974,001044:                                                                                                  #        (9)     RTX2            COORDINATE SYSTEM ORIGIN - 0 FOR EARTH, 2 FOR LUNAR
020975,001045:                                                                                                  #        PUSHLOC SET AT 4D
020976,001046: 

Page 479

020978,001048:                                                                                                  #  OUTPUT
020979,001049:                                                                                                  #        (1)     RTARG           OFFSET TARGET POSITION VECTOR
020980,001050:                                                                                                  #        (2)     VIPRIME         MANEUVER VELOCITY REQUIRED
020981,001051:                                                                                                  #        (3)     VTPRIME         VELOCITY AT TARGET AFTER MANEUVER
020982,001052:                                                                                                  #        (4)     DELVEET3        DELTA VELOCITY REQUIRED FOR MANEUVER
020983,001053: 
020984,001054:                                                                                                  #  SUBROUTINES USED
020985,001055:                                                                                                  #        LAMBERT
020986,001056:                                                                                                  #        INTSTALL
020987,001057:                                                                                                  #        INTEGRVS
020988,001058: 
020989,001059: 11,2000                                           SETLOC   INTVEL                                
020990,001060: 11,2000                                           BANK                                           
020991,001061: 
020992,001062: 11,2000                                           COUNT    11/INITV                              
020993,001063: 11,2000           77614        INITVEL            SET                                            #  COGA GUESS NOT AVAILABLE
020994,001064: 11,2001           00475                                    GUESSW                                
020995,001065: 11,2002           44175        HAVEGUES           VLOAD    STQ                                   
020996,001066: 11,2003           03415                                    RTARG                                 
020997,001067: 11,2004           01340                                    NORMEX                                
020998,001068: 11,2005           03604                           STORE    RTARG1                                
020999,001069: 11,2006           46135                           SLOAD    BHIZ                                  
021000,001070: 11,2007           03747                                    RTX2                                  
021001,001071: 11,2010           22022                                    INITVEL1                              
021002,001072: 11,2011           72575                           VLOAD    VSL2                                  
021003,001073: 11,2012           03570                                    RINIT                                 #  B29
021004,001074: 11,2013           27570                           STOVL    RINIT                                 #  B27
021005,001075: 11,2014           03576                                    VINIT                                 #  B7
021006,001076: 11,2015           77752                           VSL2                                           
021007,001077: 11,2016           27576                           STOVL    VINIT                                 #  B5
021008,001078: 11,2017           03604                                    RTARG1                                
021009,001079: 11,2020           77752                           VSL2                                           
021010,001080: 11,2021           03604                           STORE    RTARG1                                
021011,001081: 
021012,001082:                                                                                                  #  INITIALIZATION
021013,001083: 
021014,001084: 11,2022           71331        INITVEL1           SSP      DLOAD                                 #  SET ITCTR TO -1,LOAD MPAC WITH E4 (PL 2D)
021015,001085: 11,2023           03505                                    ITCTR                                 
021016,001086: 11,2024           77776                                    0          -1                         
021017,001087: 11,2025           70546                           COSINE   SR1                                   #  CALCULATE COSINE (E4) (+2)
021018,001088: 11,2026           17630                           STODL    COZY4                                 #  SET COZY4 TO COSINE (E4) (PL 0D)
021019,001089: 11,2027           67154                           LXA,2    SXA,2                                 
021020,001090: 11,2030           00154                                    MPAC                                  
021021,001091: 11,2031           02703                                    VTARGTAG                              #  SET VTARGTAG TO 0D (SP)
021022,001092: 11,2032           77775                           VLOAD                                          
021023,001093: 11,2033           03570                                    RINIT                                 
021024,001094: 11,2034           26657                           STOVL    R1VEC                                 #  R1VEC EQ RINIT
021025,001095: 11,2035           03604                                    RTARG1                                

Page 480

021027,001097: 11,2036           16665                           STODL    R2VEC                                 #  R2VEC EQ RTARG
021028,001098: 11,2037           03423                                    DELLT4                                
021029,001099: 11,2040           02673                           STORE    TDESIRED                              #  TDESIRED EQ DELLT4
021030,001100: 11,2041           77201                           SETPD    VLOAD                                 
021031,001101: 11,2042           00001                                    0D                                    #  INITIALIZE PL TO 0D
021032,001102: 11,2043           03570                                    RINIT                                 #  MPAC EQ RINIT (+29)
021033,001103: 11,2044           41456                           UNIT     PUSH                                  #  UNIT(RI) (+1)         (PL 6D)
021034,001104: 11,2045           53435                           VXV      UNIT                                  
021035,001105: 11,2046           03576                                    VINIT                                 #  MPAC EQ UNIT(RI) X VI (+8)
021036,001106: 11,2047           26676                           STOVL    UN                                    
021037,001107: 11,2050           03604                                    RTARG1                                
021038,001108: 11,2051           50256                           UNIT     DOT                                   #  TEMP=URT.URI (+2)     (PL 0D)
021039,001109: 11,2052           43015                           DAD      CLEAR                                 
021040,001110: 11,2053           03630                                    COZY4                                 
021041,001111: 11,2054           03665                                    NORMSW                                
021042,001112: 11,2055           03630                           STORE    COZY4                                 
021043,001113: 11,2056           43044        INITVEL2           BPL      SET                                   
021044,001114: 11,2057           22101                                    INITVEL3                              #  UN CALCULATED IN LAMBERT
021045,001115: 11,2060           03465                                    NORMSW                                
021046,001116: 
021047,001117:                                                                                                  #  ROTATE RC INTO YC PLANE - SET UNIT NORMAL TO YC
021048,001118: 
021049,001119: 11,2061           41575                           VLOAD    PUSH                                  #                (PL 6D)
021050,001120: 11,2062           02665                                    R2VEC                                 #  RC TO 6D (+29)
021051,001121: 11,2063           63246                           ABVAL    PDVL                                  #  RC TO MPAC, ABVAL(RC) (+29) TO OD(PL 2D)
021052,001122: 11,2064           46206                           PUSH     VPROJ                                 #                (PL 8D)
021053,001123: 11,2065           02676                                    UN                                    
021054,001124: 11,2066           51352                           VSL2     BVSU                                  
021055,001125: 11,2067           74256                           UNIT     VXSC                                  #                (PL 0D)
021056,001126: 11,2070           77772                           VSL1                                           
021057,001127: 11,2071           02665                           STORE    R2VEC                                 
021058,001128: 11,2072           67351                           TLOAD    SLOAD                                 
021059,001129: 11,2073           11456                                    ZEROVEC                               
021060,001130: 11,2074           03505                                    ITCTR                                 
021061,001131: 11,2075           77244                           BPL      VLOAD                                 
021062,001132: 11,2076           22101                                    INITVEL3                              
021063,001133: 11,2077           02665                                    R2VEC                                 
021064,001134: 11,2100           03604                           STORE    RTARG1                                
021065,001135: 11,2101           63345        INITVEL3           DLOAD    PDVL                                  #                                (PL 2D)
021066,001136: 11,2102           27736                                    MUEARTH                               #  POSITIVE VALUE
021067,001137: 11,2103           02665                                    R2VEC                                 
021068,001138: 11,2104           63256                           UNIT     PDVL                                  #  2D = UNIT(R2VEC)              (PL 8D)
021069,001139: 11,2105           02657                                    R1VEC                                 
021070,001140: 11,2106           41456                           UNIT     PUSH                                  #  8D = UNIT(R1VEC)              (PL 14D)
021071,001141: 11,2107           57435                           VXV      VCOMP                                 #  -N = UNIT(R2VEC) X UNIT(R1VEC)
021072,001142: 11,2110           00003                                    2D                                    
021073,001143: 11,2111           77606                           PUSH                                           #                                (PL 20D)
021074,001144: 11,2112           71350                           LXA,1    DLOAD                                 
021075,001145: 11,2113           03745                                    RTX1                                  
021076,001146: 11,2114           00023                                    18D                                   
021077,001147: 11,2115           62040                           BMN      INCR,1                                

Page 481

021079,001149: 11,2116           22120                                    +2                                    
021080,001150: 11,2117           77767                           DEC      -8         B-14                       
021081,001151: 11,2120           67310                           INCR,1   SLOAD                                 
021082,001152: 11,2121           00012                                    10D                                   
021083,001153: 11,2122           00047                                    X1                                    
021084,001154: 11,2123           77230                           BHIZ     VLOAD                                 #                        (PL 14D)
021085,001155: 11,2124           22126                                    +2                                    
021086,001156: 11,2125           41476                           VCOMP    PUSH                                  #                        (PL 20 D)
021087,001157: 11,2126           77775                           VLOAD                                          #                        (PL 14D)
021088,001158: 11,2127           50235                           VXV      DOT                                   #                        (PL 2D)
021089,001159: 11,2130           71244                           BPL      DLOAD                                 #                        (PL 0D)
021090,001160: 11,2131           22133                                    INITVEL4                              
021091,001161: 11,2132           41476                           DCOMP    PUSH                                  #                        (PL 2D)
021092,001162: 11,2133           67154        INITVEL4           LXA,2    SXA,2                                 
021093,001163: 11,2134           00000                                    0D                                    
021094,001164: 11,2135           02674                                    GEOMSGN                               
021095,001165: 
021096,001166:                                                                                                  #  SET INPUTS UP FOR LAMBERT
021097,001167: 
021098,001168: 11,2136           45150                           LXA,1    CALL                                  
021099,001169: 11,2137           03745                                    RTX1                                  
021100,001170:                                                                                                  #   OPERATE THE LAMBERT CONIC ROUTINE (COASTFLT SUBROUTINE)
021101,001171: 11,2140           25215                                    LAMBERT                               
021102,001172: 
021103,001173:                                                                                                  #     DELETE THRU 4521
021104,001174:                                                                                                  #  ARRIVED AT SOLUTION IS GOOD ENOUGH ACCORDING TO SLIGHTLY WIDER BOUNDS.
021105,001175: 
021106,001176: 11,2141           77214                           CLEAR    VLOAD                                 
021107,001177: 11,2142           00675                                    GUESSW                                
021108,001178: 11,2143           02746                                    VVEC                                  
021109,001179: 
021110,001180:                                                                                                  #  STORE CALCULATED INITIAL VELOCITY REQUIRED IN VIPRIME
021111,001181: 
021112,001182: 11,2144           17612                           STODL    VIPRIME                               #  INITIAL VELOCITY REQUIRED (+7)
021113,001183: 
021114,001184:                                                                                                  #  IF NUMIT IS ZERO, CONTINUE AT INITVELB, OTHERWISE
021115,001185:                                                                                                  #  SET UP INPUTS FOR ENCKE INTEGRATION (INTEGRVS).
021116,001186: 
021117,001187: 11,2145           02704                                    VTARGTAG                              
021118,001188: 11,2146           45030                           BHIZ     CALL                                  
021119,001189: 11,2147           22224                                    INITVEL7                              
021120,001190: 11,2150           27371                                    INTSTALL                              
021121,001191: 11,2151           43135                           SLOAD    CLEAR                                 
021122,001192: 11,2152           03747                                    RTX2                                  
021123,001193: 11,2153           00263                                    MOONFLAG                              
021124,001194: 11,2154           43030                           BHIZ     SET                                   
021125,001195: 11,2155           22157                                    INITVEL5                              
021126,001196: 11,2156           00063                                    MOONFLAG                              
021127,001197: 11,2157           77775        INITVEL5           VLOAD                                          
021128,001198: 11,2160           03570                                    RINIT                                 
021129,001199: 11,2161           02657                           STORE    R1VEC                                 

Page 482

021131,001201: 11,2162           25535                           STOVL    RCV                                   
021132,001202: 11,2163           03612                                    VIPRIME                               
021133,001203: 11,2164           15543                           STODL    VCV                                   
021134,001204: 11,2165           03503                                    INTIME                                
021135,001205: 11,2166           01517                           STORE    TET                                   
021136,001206: 11,2167           43015                           DAD      CLEAR                                 
021137,001207: 11,2170           03423                                    DELLT4                                
021138,001208: 11,2171           01673                                    INTYPFLG                              
021139,001209: 11,2172           34041                           STCALL   TDEC1                                 
021140,001210: 11,2173           27066                                    INTEGRVS                              
021141,001211: 11,2174           77775                           VLOAD                                          
021142,001212: 11,2175           00025                                    VATT1                                 
021143,001213: 11,2176           02705                           STORE    VTARGET                               
021144,001214: 
021145,001215:                                                                                                  #  IF ITERATION COUNTER (ITCTR) EQ NO. ITERATIONS (NUMIT), CONTINUE AT
021146,001216:                                                                                                  #  INITVELC, OTHERWISE REITERATE LAMBERT AND ENCKE
021147,001217: 
021148,001218: 11,2177           63154                           LXA,2    INCR,2                                
021149,001219: 11,2200           03504                                    ITCTR                                 
021150,001220: 11,2201           00001                                    1D                                    #  INCREMENT ITCTR
021151,001221: 11,2202           55134                           SXA,2    XSU,2                                 
021152,001222: 11,2203           03504                                    ITCTR                                 
021153,001223: 11,2204           02703                                    VTARGTAG                              
021154,001224: 11,2205           46135                           SLOAD    BHIZ                                  #  IF SP(MPAC) EQ 0, CONTINUE AT INITVELC
021155,001225: 11,2206           00050                                    X2                                    
021156,001226: 11,2207           22221                                    INITVEL6                              
021157,001227: 
021158,001228:                                                                                                  #  OFFSET CONIC TARGET VECTOR
021159,001229: 
021160,001230: 11,2210           52375                           VLOAD    VSU                                   
021161,001231: 11,2211           03604                                    RTARG1                                
021162,001232: 11,2212           00017                                    RATT1                                 
021163,001233: 11,2213           77655                           VAD                                            
021164,001234: 11,2214           02665                                    R2VEC                                 
021165,001235: 11,2215           16665                           STODL    R2VEC                                 
021166,001236: 11,2216           03630                                    COZY4                                 
021167,001237: 11,2217           77650                           GOTO                                           
021168,001238: 11,2220           22056                                    INITVEL2                              #  CONTINUE ITERATING AT INITVEL2
021169,001239: 
021170,001240:                                                                                                  #  COMPUTE THE DELTA VELOCITY
021171,001241: 
021172,001242: 11,2221           77775        INITVEL6           VLOAD                                          
021173,001243: 11,2222           02665                                    R2VEC                                 
021174,001244: 11,2223           03604                           STORE    RTARG1                                
021175,001245: 11,2224           52375        INITVEL7           VLOAD    VSU                                   
021176,001246: 11,2225           03612                                    VIPRIME                               
021177,001247: 11,2226           03576                                    VINIT                                 
021178,001248: 11,2227           27646                           STOVL    DELVEET3                              #  DELVEET3 = VIPRIME-VINIT (+7)
021179,001249: 11,2230           02705                                    VTARGET                               
021180,001250: 11,2231           03620                           STORE    VTPRIME                               
021181,001251: 11,2232           46135                           SLOAD    BHIZ                                  
021182,001252: 11,2233           03747                                    RTX2                                  

Page 483

021184,001254: 11,2234           22251                                    INITVELX                              
021185,001255: 11,2235           70575                           VLOAD    VSR2                                  
021186,001256: 11,2236           03620                                    VTPRIME                               
021187,001257: 11,2237           27620                           STOVL    VTPRIME                               
021188,001258: 11,2240           03612                                    VIPRIME                               
021189,001259: 11,2241           77742                           VSR2                                           
021190,001260: 11,2242           27612                           STOVL    VIPRIME                               
021191,001261: 11,2243           03604                                    RTARG1                                
021192,001262: 11,2244           77742                           VSR2                                           
021193,001263: 11,2245           27604                           STOVL    RTARG1                                
021194,001264: 11,2246           03646                                    DELVEET3                              
021195,001265: 11,2247           77742                           VSR2                                           
021196,001266: 11,2250           03646                           STORE    DELVEET3                              
021197,001267: 11,2251           77201        INITVELX           SETPD    VLOAD                                 
021198,001268: 11,2252           00001                                    0D                                    
021199,001269: 11,2253           03604                                    RTARG1                                
021200,001270: 11,2254           37415                           STCALL   RTARG                                 
021201,001271: 11,2255           01340                                    NORMEX                                
021202,001272: 
021203,001273:                                                                                                  #  ..... END OF INITVEL ROUTINE .....
021204,001274: 

Page 484

021206,001276:                                                                                                  #  ..... MIDGIM .....
021207,001277:                                                                                                  #  MOD NO. 0, BY WILLMAN, SUBROUTINE RENDGUID, LOG P34-P35, P74-P75
021208,001278:                                                                                                  #  REVISION 03, 17 FEB 67
021209,001279: 
021210,001280:                                                                                                  #  IF THE ACTIVE VEHICLE IS DOING THE COMPUTATION, MIDGIM COMPUTES
021211,001281:                                                                                                  #  THE POSITIVE MIDDLE GIMBAL ANGLE OF THE ACTIVE VEHICLE TO THE INPUT
021212,001282:                                                                                                  #  DELTA VELOCITY VECTOR (0D IN PUSH LIST), OTHERWISE
021213,001283:                                                                                                  #  MIDGIM CONVERTS THE INPUT DELTA VELOCITY VECTOR FROM INERTIAL COORDIN-
021214,001284:                                                                                                  #  ATES TO LOCAL VERTICAL COORDINATES OF THE ACTIVE VEHICLE.
021215,001285: 
021216,001286:                                                                                                  #  .. INPUTS ..
021217,001287:                                                                                                  #        NAME    MEANING                                         UNITS/SCALING/MODE
021218,001288:                                                                                                  #        AVFLAG  INT FLAG - 0 IS CSM ACTIVE, 1 IS LEM ACTIVE                     BIT
021219,001289:                                                                                                  #       COMPUTER INT FLAG - 0 IS LEM COMPUTER, 1 IS CSM COMPUTER                 BIT
021220,001290:                                                                                                  #        RINIT   ACTIVE VEHICLE RADIUS VECTOR                    METERS/CSEC (+7) VT
021221,001291:                                                                                                  #        VINIT   ACTIVE VEHICLE VELOCITY VECTOR                  METERS/CSEC (+7) VT
021222,001292:                                                                                                  #        0D(PL)  ACTIVE VEHICLE DELTA VELOCITY VECTOR            METERS/CSEC (+7) VT
021223,001293: 
021224,001294:                                                                                                  #  .. OUTPUTS ..
021225,001295:                                                                                                  #     NAME       MEANING                                         UNITS/SCALING/MODE
021226,001296:                                                                                                  #     +MGA       + MIDDLE GIMBAL ANGLE                           REVOLUTIONS (+0) DP
021227,001297:                                                                                                  #     DELVLVC    DELTA VELOCITY VECTOR IN LV COORD.              METERS/CSEC (+7) VT
021228,001298:                                                                                                  #     MGLVFLAG   INT FLAG - 0 IS +MGA COMPUTED, 1 IS DELVLVC COMP.       -       BIT
021229,001299: 
021230,001300:                                                                                                  #  .. CALLING SEQUENCE ..
021231,001301:                                                                                                  #        L       CALL
021232,001302:                                                                                                  #        L+1             MIDGIM
021233,001303:                                                                                                  #        L+2     (RETURN - ALWAYS)
021234,001304: 
021235,001305:                                                                                                  #  .. NO SUBROUTINES CALLED ..
021236,001306: 
021237,001307:                                                                                                  #  .. DEBRIS - ERASEABLE TEMPORARY USAGE
021238,001308:                                                                                                  #        A,Q,L, PUSH LIST, MPAC.
021239,001309: 
021240,001310:                                                                                                  #  .. ALARMS - NONE ..
021241,001311: 

Page 485

021243,001313:                                                                                                  #  MIDDLE GIMBAL ANGLE COMPUTATION.
021244,001314: 04,2000                                           SETLOC   MIDDGIM                               
021245,001315: 04,2000                                           BANK                                           
021246,001316: 
021247,001317: 04,2651                                           COUNT*   $$/MIDG                               
021248,001318: 
021249,001319: 04,2651           20000 00000  HALFREV            2DEC     1          B-1                        
021250,001320: 
021251,001321: 04,2653           43014        MIDGIM             BON      BOFF                                  
021252,001322: 04,2654           01312                                    AVFLAG                                
021253,001323: 04,2655           10673                                    MIDGIM1                               
021254,001324: 04,2656           02747                                    COMPUTER                              
021255,001325: 04,2657           10676                                    GET.LVC                               
021256,001326: 
021257,001327:                                                                                                  #  COMPUTE +MGA IF AVFLAG AND COMPUTER HAVE OPPOSITE VALUES.
021258,001328: 
021259,001329: 04,2660           53575        GET+MGA            VLOAD    UNIT                                  #  (PL 0D) V (+7) TO MPAC, UNITIZE UV (+1)
021260,001330: 04,2661           72441                           DOT      SL1                                   #  DOT UV WITH Y(STABLE MEMBER) AND RESCALE
021261,001331: 04,2662           01744                                    REFSMMAT   +6                         #  FROM +2 TO +1 FOR ASIN ROUTINE
021262,001332: 04,2663           51136                           ARCSIN   BPL                                   
021263,001333: 04,2664           10670                                    SETMGA                                
021264,001334: 04,2665           43215                           DAD      DAD                                   #  CONVERT -MGA TO +MGA BY
021265,001335: 04,2666           10652                                    HALFREV                               #  ADDING ONE REVOLUTION
021266,001336: 04,2667           10652                                    HALFREV                               
021267,001337: 04,2670           03626        SETMGA             STORE    +MGA                                  
021268,001338: 04,2671           43414                           CLR      RVQ                                   #  CLEAR MGLVFLAG TO INDICATE +MGA CALC
021269,001339: 04,2672           02675                                    MGLVFLAG                              #  AND EXIT
021270,001340: 
021271,001341: 04,2673           77614        MIDGIM1            BOFF                                           
021272,001342: 04,2674           02747                                    COMPUTER                              
021273,001343: 04,2675           10660                                    GET+MGA                               
021274,001344: 
021275,001345:                                                                                                  #  COMPUTE DELVLVC IF AVFLAG AND COMPUTER HAVE SAME VALUES.
021276,001346: 
021277,001347: 04,2676           53575        GET.LVC            VLOAD    UNIT                                  #  (PL 6D) R (+29) IN MPAC, UNITIZE UR
021278,001348: 04,2677           03570                                    RINIT                                 
021279,001349: 04,2700           77676                           VCOMP                                          #  U(-R)
021280,001350: 04,2701           00023                           STORE    18D                                   #  U(-R) TO 18D
021281,001351: 04,2702           53435                           VXV      UNIT                                  #  U(-R)*V EQ V*U(R), U(V*R)
021282,001352: 04,2703           03576                                    VINIT                                 
021283,001353: 04,2704           00015                           STORE    12D                                   #  U(V*R) TO 12D
021284,001354: 04,2705           53435                           VXV      UNIT                                  #  U(V*R)*U(-R), U((V*R)*(-R))
021285,001355: 04,2706           00023                                    18D                                   
021286,001356: 04,2707           24007                           STOVL    6D                                    #  TRANSFORMATION MATRIX IS IN 6D (+1)
021287,001357: 04,2710           00001                                    0D                                    #  DELTA V (+7) IN 0D
021288,001358: 04,2711           76521                           MXV      VSL1                                  #  CONVERT FROM INER COOR TO LV COOR (+8)
021289,001359: 04,2712           00007                                    6D                                    #  AND SCALE +7 IN MPAC
021290,001360: 04,2713           03405                           STORE    DELVLVC                               #  STORE IN DELVLVC (+7)
021291,001361: 04,2714           43414                           SET      RVQ                                   #  SET MGLVFLAG TO INDICATE LVC CALC
021292,001362: 04,2715           02475                                    MGLVFLAG                              #  AND EXIT
021293,001363: 
021294,001364:                                                                                                  #  ..... END OF MIDGIM ROUTINE .....
021295,001365: 

Page 486

021297,001367: 04,2716           77160        SELECTMU           AXC,1    AXT,2                                 
021298,001368: 04,2717           00002                                    2D                                    
021299,001369: 04,2720           00000                                    0D                                    
021300,001370: 04,2721           77614                           BOFF                                           
021301,001371: 04,2722           04343                                    CMOONFLG                              
021302,001372: 04,2723           10727                                    SETMUER                               
021303,001373: 04,2724           77160                           AXC,1    AXT,2                                 
021304,001374: 04,2725           00012                                    10D                                   
021305,001375: 04,2726           00002                                    2D                                    
021306,001376: 04,2727           66143        SETMUER            DLOAD*   SXA,1                                 
021307,001377: 04,2730           11635                                    MUTABLE    +4,1                       
021308,001378: 04,2731           03745                                    RTX1                                  
021309,001379: 04,2732           23752                           STODL*   RTSR1/MU                              
021310,001380: 04,2733           11627                                    MUTABLE    -2,1                       
021311,001381: 04,2734           54214                           BOFF     SR                                    
021312,001382: 04,2735           04343                                    CMOONFLG                              
021313,001383: 04,2736           10740                                    RTRNMU                                
021314,001384: 04,2737           20607                                    6D                                    
021315,001385: 04,2740           03750        RTRNMU             STORE    RTMU                                  
021316,001386: 04,2741           43134                           SXA,2    CLEAR                                 
021317,001387: 04,2742           03746                                    RTX2                                  
021318,001388: 04,2743           01271                                    FINALFLG                              
021319,001389: 04,2744           77650                           GOTO                                           
021320,001390: 04,2745           73005                                    VN1645                                
021321,001391: 

Page 487

021323,001393:                                                                                                  #  ..... PERIAPO .....
021324,001394:                                                                                                  #  MOD NO -1                     LOG SECTION - P34-P35, P74-P75
021325,001395:                                                                                                  #  MOD BY WHITE.P                DATE 18 JAN 68
021326,001396: 
021327,001397:                                                                                                  #  FUNCTIONAL DESCRIPTION
021328,001398:                                                                                                  #        THIS SUBROUTINE COMPUTES THE TWO BODY APOCENTER AND PERICENTER
021329,001399:                                                                                                  #        ALTITUDES GIVEN THE POSITION AND VELOCITY VECTORS FOR A POINT ON
021330,001400:                                                                                                  #        THE TRAJECTORY AND THE PRIMARY BODY.
021331,001401: 
021332,001402:                                                                                                  #        SETRAD IS CALLED TO DETERMINE THE RADIUS OF THE PRIMARY BODY.
021333,001403: 
021334,001404:                                                                                                  #        APSIDES IS CALLED TO SOLVE FOR THE TWO BODY RADII OF APOCENTER AND
021335,001405:                                                                                                  #        PERICENTER AND THE ECCENTRICITY OF THE TRAJECTORY.
021336,001406: 
021337,001407:                                                                                                  #  CALLING SEQUENCE
021338,001408:                                                                                                  #        L       CALL
021339,001409:                                                                                                  #        L+1             PERIAPO
021340,001410:                                                                                                  #        L+2     (RETURN - ALWAYS)
021341,001411: 
021342,001412:                                                                                                  #  INPUT
021343,001413:                                                                                                  #        (1)     RVEC    POSITION VECTOR IN METERS
021344,001414:                                                                                                  #                        SCALE FACTOR - EARTH +29, MOON +27
021345,001415:                                                                                                  #        (2)     VVEC    VELOCITY VECTOR IN METERS/CENTISECOND
021346,001416:                                                                                                  #                        SCALE FACTOR - EARTH +7, MOON +5
021347,001417:                                                                                                  #        (3)     X1      PRIMARY BODY INDICATOR
021348,001418:                                                                                                  #                        EARTH -2, MOON -10
021349,001419: 
021350,001420:                                                                                                  #  OUTPUT
021351,001421:                                                                                                  #        (1)     2D      APOCENTER RADIUS IN METERS
021352,001422:                                                                                                  #                        SCALE FACTOR - EARTH +29, MOON +27
021353,001423:                                                                                                  #        (2)     4D      APOCENTER ALTITUDE IN METERS
021354,001424:                                                                                                  #                        SCALE FACTOR - EARTH +29, MOON P27
021355,001425:                                                                                                  #        (3)     6D      PERICENTER RADIUS IN METERS
021356,001426:                                                                                                  #                        SCALE FACTOR - EARTH +29, MOON +27
021357,001427:                                                                                                  #        (4)     8D      PERICENTER ALTITUDE IN METERS
021358,001428:                                                                                                  #                        SCALE FACTOR - EARTH +29, MOON +27
021359,001429:                                                                                                  #        (5)     ECC     ECCENTRICITY OF CONIC TRAJECTORY
021360,001430:                                                                                                  #                        SCALE FACTOR - +3
021361,001431:                                                                                                  #        (6)     XXXALT  RADIUS OF THE PRIMARY BODY IN METERS
021362,001432:                                                                                                  #                        SCALE FACTOR - EARTH +29, MOON +27
021363,001433:                                                                                                  #        (7)     PUSHLOC EQUALS 10D
021364,001434: 
021365,001435:                                                                                                  #  SUBROUTINES USED
021366,001436:                                                                                                  #        SETRAD

Page 488

021368,001438:                                                                                                  #        APSIDES
021369,001439: 
021370,001440: 22,2000                                           SETLOC   APOPERI                               
021371,001441: 22,2000                                           BANK                                           
021372,001442: 
021373,001443: 22,3310                                           COUNT*   $$/PERAP                              
021374,001444: 
021375,001445: 22,3310           00302 17755  RPAD               2DEC     6373338    B-29                       #  STANDARD RADIUS OF PAD 37-B.
021376,001446:                                                                                                  #  = 20 909 901.57 FT
021377,001447: 
021378,001448: 22,3312           53754        PERIAPO1           LXA,2    VSR*                                  
021379,001449: 22,3313           03746                                    RTX2                                  
021380,001450: 22,3314           57176                                    0,2                                   
021381,001451: 22,3315           26746                           STOVL    VVEC                                  
021382,001452: 22,3316           53750                           LXA,1    VSR*                                  
021383,001453: 22,3317           03745                                    RTX1                                  
021384,001454: 22,3320           57176                                    0,2                                   
021385,001455: 22,3321           02657                           STORE    RVEC                                  
021386,001456: 22,3322           45020        PERIAPO            STQ      CALL                                  
021387,001457: 22,3323           01340                                    NORMEX                                
021388,001458: 22,3324           45340                                    SETRAD                                
021389,001459: 22,3325           37456                           STCALL   XXXALT                                
021390,001460: 22,3326           25671                                    APSIDES                               
021391,001461: 22,3327           41401                           SETPD    PUSH                                  #  2D = APOCENTER RADIUS         B29 OR B27
021392,001462: 22,3330           00003                                    2D                                    
021393,001463: 22,3331           65225                           DSU      PDDL                                  #  4D = APOGEE ALTITUDE          B29 OR B27
021394,001464: 22,3332           03456                                    XXXALT                                
021395,001465: 22,3333           00001                                    0D                                    
021396,001466: 22,3334           45206                           PUSH     DSU                                   #  6D = PERICENTER RADIUS        B29 OR B27
021397,001467: 22,3335           03456                                    XXXALT                                
021398,001468: 22,3336           52006                           PUSH     GOTO                                  #  8D = PERIGEE ALTITUDE         B29 OR B27
021399,001469: 22,3337           01340                                    NORMEX                                

Page 489

021401,001471:                                                                                                  #        SETRAD
021402,001472: 
021403,001473: 22,3340           41545        SETRAD             DLOAD    PUSH                                  
021404,001474: 22,3341           05311                                    RPAD                                  
021405,001475: 22,3342           63130                           SXA,1    INCR,2                                
021406,001476: 22,3343           00047                                    X2                                    
021407,001477: 22,3344           00002                                    2D                                    
021408,001478: 22,3345           46135                           SLOAD    BHIZ                                  
021409,001479: 22,3346           00050                                    X2                                    
021410,001480: 22,3347           45353                                    SETRADX                               
021411,001481: 22,3350           51575                           VLOAD    ABVAL                                 
021412,001482: 22,3351           02026                                    RLS                                   
021413,001483: 22,3352           77725                           PDDL                                           
021414,001484: 22,3353           43545        SETRADX            DLOAD    RVQ                                   
021415,001485: 

Page 490

021417,001487:                                                                                                  #        PRECSET
021418,001488: 
021419,001489: 22,3354           77620        PRECSET            STQ                                            
021420,001490: 22,3355           01340                                    NORMEX                                
021421,001491: 22,3356           36635                           STCALL   TDEC2                                 
021422,001492: 22,3357           27036                                    LEMPREC                               
021423,001493: 22,3360           77624                           CALL                                           
021424,001494: 22,3361           45372                                    LEMSTORE                              
021425,001495: 22,3362           77745                           DLOAD                                          
021426,001496: 22,3363           02635                                    TDEC2                                 
021427,001497: 22,3364           34041                           STCALL   TDEC1                                 
021428,001498: 22,3365           27022                                    CSMPREC                               
021429,001499: 22,3366           77624                           CALL                                           
021430,001500: 22,3367           45402                                    CSMSTORE                              
021431,001501: 22,3370           77650                           GOTO                                           
021432,001502: 22,3371           01340                                    NORMEX                                
021433,001503: 22,3372           43175        LEMSTORE           VLOAD    BOFF                                  
021434,001504: 22,3373           00001                                    RATT                                  
021435,001505: 22,3374           01352                                    AVFLAG                                
021436,001506: 22,3375           45406                                    PASSIVE                               
021437,001507: 22,3376           27540        ACTIVE             STOVL    RACT3                                 
021438,001508: 22,3377           00007                                    VATT                                  
021439,001509: 22,3400           03546                           STORE    VACT3                                 
021440,001510: 22,3401           77616                           RVQ                                            
021441,001511: 22,3402           43175        CSMSTORE           VLOAD    BOFF                                  
021442,001512: 22,3403           00001                                    RATT                                  
021443,001513: 22,3404           01352                                    AVFLAG                                
021444,001514: 22,3405           45376                                    ACTIVE                                
021445,001515: 22,3406           27554        PASSIVE            STOVL    RPASS3                                
021446,001516: 22,3407           00007                                    VATT                                  
021447,001517: 22,3410           03562                           STORE    VPASS3                                
021448,001518: 22,3411           77616                           RVQ                                            
021449,001519: 

Page 491

021451,001521:                                                                                                  #        VECSHIFT
021452,001522: 
021453,001523: 22,3412           53754        VECSHIFT           LXA,2    VSR*                                  
021454,001524: 22,3413           03746                                    RTX2                                  
021455,001525: 22,3414           57176                                    0,2                                   
021456,001526: 22,3415           63350                           LXA,1    PDVL                                  
021457,001527: 22,3416           03745                                    RTX1                                  
021458,001528: 22,3417           63257                           VSR*     PDVL                                  
021459,001529: 22,3420           57176                                    0,2                                   
021460,001530: 22,3421           77616                           RVQ                                            
021461,001531: 

Page 492

021463,001533:                                                                                                  #        SHIFTR1
021464,001534: 
021465,001535: 22,3422           53754        SHIFTR1            LXA,2    SL*                                   
021466,001536: 22,3423           03746                                    RTX2                                  
021467,001537: 22,3424           57576                                    0,2                                   
021468,001538: 22,3425           77616                           RVQ                                            
021469,001539: 

Page 493

021471,001541:                                                                                                  #  PROGRAM DESCRIPTION
021472,001542: 
021473,001543:                                                                                                  #  SUBROUTINE NAME       R36     OUT-OF-PLANE RENDEZVOUS ROUTINE
021474,001544:                                                                                                  #  MOD NO. 0             DATE 22 DECEMBER 67
021475,001545:                                                                                                  #  MOD BY N.M.NEVILLE    LOG SECTION EXTENDED VERBS
021476,001546: 
021477,001547:                                                                                                  #  FUNCTIONAL DESCRIPTION
021478,001548: 
021479,001549:                                                                                                  #  TO DISPLAY AT ASTRONAUT REQUEST LGC CALCULATED RENDEZVOUS
021480,001550:                                                                                                  #  OUT-OF-PLANE PARAMETERS (Y, YDOT, PSI).  (REQUESTED BY DSKY).
021481,001551: 
021482,001552:                                                                                                  #  CALLING SEQUENCE
021483,001553:                                                                                                  #        ASTRONAUT REQUEST THROUGH DSKY V 90 E
021484,001554: 
021485,001555:                                                                                                  #  SUBROUTINES CALLED
021486,001556:                                                                                                  #        EXDSPRET
021487,001557:                                                                                                  #        GOMARKF
021488,001558:                                                                                                  #        CSMPREC
021489,001559:                                                                                                  #        LEMPREC
021490,001560:                                                                                                  #        SGNAGREE
021491,001561:                                                                                                  #        LOADTIME
021492,001562: 
021493,001563:                                                                                                  #  NORMAL EXIT MODES
021494,001564:                                                                                                  #        ASTRONAUT REQUEST THROUGH DSKY TO TERMINATE PROGRAM V 34 E
021495,001565: 
021496,001566:                                                                                                  #  ALARM OR ABORT EXIT MODES
021497,001567:                                                                                                  #        NONE
021498,001568: 
021499,001569:                                                                                                  #  OUTPUT
021500,001570:                                                                                                  #        DECIMAL DISPLAY OF TIME, Y, YDOT AND PSI
021501,001571: 
021502,001572:                                                                                                  #        DISPLAYED VALUES Y, YDOT, AND PSI, ARE STORED IN ERASABLE
021503,001573:                                                                                                  #        REGISTERS RANGE, RRATE AND RTHETA RESPECTIVELY.
021504,001574: 
021505,001575:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED
021506,001576:                                                                                                  #        CSM AND LEM STATE VECTORS
021507,001577: 
021508,001578:                                                                                                  #  DEBRIS
021509,001579:                                                                                                  #        CENTRALS A,Q,L
021510,001580:                                                                                                  #        OTHER  THOSE USED BY THE ABOVE LISTED SUBROUTINES
021511,001581: 
021512,001582: 20,2000                                           BANK     20                                    
021513,001583: 04,2000                                           SETLOC   R36LM                                 
021514,001584: 04,2000                                           BANK                                           

Page 494

021516,001586: 04,2746  E4,1726                                  EBANK=   RPASS36                               
021517,001587: 04,2746                                           COUNT*   $$/R36                                
021518,001588: 
021519,001589: 04,2746           22007        R36                ZL                                             
021520,001590: 04,2747           34714                           CAF      ZERO                                  #  SET TIME OF EVENT TO ZERO FOR FIRST
021521,001591: 04,2750           53052                           DXCH     DSPTEMX                               #  DISPLAY
021522,001592: 04,2751           33101                           CAF      V06N16N                               
021523,001593: 04,2752           04555                           TC       BANKCALL                              
021524,001594: 04,2753           20465                           CADR     GOMARKF                               
021525,001595: 04,2754           15423                           TCF      ENDEXT                                #  TERMINATE
021526,001596: 04,2755           12757                           TCF      +2                                    #  PROCEED
021527,001597: 04,2756           12751                           TCF      -5                                    #  RECYCLE FOR ASTRONAUT INPUT TIME
021528,001598: 04,2757           53052                           DXCH     DSPTEMX                               
021529,001599: 04,2760           00006                           EXTEND                                         
021530,001600: 04,2761           13070                           BZF      LREGCHK                               #  A-REG ZERO GOTO CHECK L-REG FOR ZERO
021531,001601: 04,2762           52155        ASTROTIM           DXCH     MPAC                                  #  A-REG NON-ZERO, TIME = ASTRO INPUT TIME
021532,001602: 04,2763           06006                           TC       INTPRET                               
021533,001603: 04,2764           77634                           RTB                                            
021534,001604: 04,2765           45713                                    DPMODE                                
021535,001605: 04,2766           34041        R36INT             STCALL   TDEC1                                 
021536,001606: 04,2767           27036                                    OTHPREC                               
021537,001607: 04,2770           63375                           VLOAD    PDVL                                  
021538,001608: 04,2771           00007                                    VATT                                  
021539,001609: 04,2772           00001                                    RATT                                  #  -
021540,001610: 04,2773           02327                           STORE    RPASS36                               #  R
021541,001611: 04,2774           63256                           UNIT     PDVL                                  #  P
021542,001612: 04,2775           53435                           VXV      UNIT                                  #  -
021543,001613: 04,2776           77626                           STADR                                          
021544,001614: 04,2777           61442                           STODL    UNP36                                 #  U
021545,001615: 04,3000           00015                                    TAT                                   
021546,001616: 04,3001           34041                           STCALL   TDEC1                                 
021547,001617: 04,3002           27022                                    THISPREC                              
021548,001618: 04,3003           63375                           VLOAD    PDVL                                  #                   -
021549,001619: 04,3004           00007                                    VATT                                  #  VELOCITY VECTOR  V    00D
021550,001620: 04,3005           00001                                    RATT                                  #                    A
021551,001621: 04,3006           77725                           PDDL                                           
021552,001622: 04,3007           00015                                    TAT                                   #  SAVE TIME IN LOCATION 30D FOR REDISPLAY
021553,001623: 04,3010           24037                           STOVL    30D                                   #                   -
021554,001624: 04,3011           41406                           PUSH     PUSH                                  #  POSITION VECTOR  R    IN  06D AND 12D
021555,001625: 04,3012           63245                           BVSU     PDVL                                  #                    A   -   -
021556,001626: 04,3013           02327                                    RPASS36                               #  LINE OF SIGHT VECTOR  R - R       12D
021557,001627: 04,3014           72441                           DOT      SL1                                   #                         P   A
021558,001628: 04,3015           02335                                    UNP36                                 #      -   -
021559,001629: 04,3016           26321                           STOVL    RANGE                                 #  Y = U . R
021560,001630: 04,3017           00001                                    00D                                   #           A
021561,001631: 04,3020           72441                           DOT      SL1                                   
021562,001632: 04,3021           02335                                    UNP36                                 #  .   -   -
021563,001633: 04,3022           26323                           STOVL    RRATE                                 #  Y = U . V
021564,001634: 04,3023           00007                                    06D                                   #  -        A  -

Page 495

021566,001636: 04,3024           41456                           UNIT     PUSH                                  #  U  = UNIT ( R  )              18D
021567,001637: 04,3025           47235                           VXV      VXV                                   #   RA          A
021568,001638: 04,3026           00001                                    00D                                   #   -    -     -     -
021569,001639: 04,3027           00023                                    18D                                   #  (U  X V ) X U   = U
021570,001640: 04,3030           53552                           VSL2     UNIT                                  #    RA   A     RA    A
021571,001641: 04,3031           77656                           UNIT                                           
021572,001642: 04,3032           24001                           STOVL    00D                                   #  UNIT HORIZONTAL IN FORWARD DIR. 00D
021573,001643: 04,3033           00023                                    18D                                   
021574,001644: 04,3034           74241                           DOT      VXSC                                  #  -
021575,001645: 04,3035           00015                                    12D                                   #  U
021576,001646: 04,3036           77752                           VSL2                                           #   L
021577,001647: 04,3037           53445                           BVSU     UNIT                                  
021578,001648: 04,3040           77656                           UNIT                                           
021579,001649: 04,3041           50206                           PUSH     DOT                                   #  LOS PROJECTED INTO HORIZONTAL  12D
021580,001650: 04,3042           00001                                    00D                                   #  PLANE
021581,001651: 04,3043           65552                           SL1      ARCCOS                                #               -   -
021582,001652: 04,3044           26325                           STOVL    RTHETA                                #  PSI = ARCCOS(U . U )
021583,001653: 04,3045           50235                           VXV      DOT                                   #                A   L
021584,001654: 04,3046           00001                                    00D                                   
021585,001655: 04,3047           71244                           BPL      DLOAD                                 
021586,001656: 04,3050           11055                                    R36TAG2                               
021587,001657: 04,3051           11467                                    LODPMAX                               
021588,001658: 04,3052           77625                           DSU                                            
021589,001659: 04,3053           02325                                    RTHETA                                
021590,001660: 04,3054           02325                           STORE    RTHETA                                
021591,001661: 04,3055           47145        R36TAG2            DLOAD    RTB                                   
021592,001662: 04,3056           00037                                    30D                                   
021593,001663: 04,3057           45541                                    SGNAGREE                              
021594,001664: 04,3060           01052                           STORE    DSPTEMX                               
021595,001665: 04,3061           77776                           EXIT                                           
021596,001666: 04,3062           33102                           CAF      V06N90N                               #  DISPLAY Y, YDOT, AND PSI
021597,001667: 04,3063           04555                           TC       BANKCALL                              
021598,001668: 04,3064           20465                           CADR     GOMARKF                               
021599,001669: 04,3065           15423                           TCF      ENDEXT                                #  TERMINATE
021600,001670: 04,3066           15423                           TCF      ENDEXT                                #  PROCEED, END OF PROGRAM
021601,001671: 04,3067           12751                           TCF      R36        +3                         #  REDISPLAY OUTPUT
021602,001672: 04,3070           56001        LREGCHK            XCH      L                                     
021603,001673: 04,3071           00006                           EXTEND                                         
021604,001674: 04,3072           13075                           BZF      ENTTIM2                               #  L-REG ZERO, SET TIME = PRESENT TIME
021605,001675: 04,3073           56001                           XCH      L                                     #  L-REG NON ZERO, TIME = ASTRO INPUT TIME
021606,001676: 04,3074           12762                           TCF      ASTROTIM                              
021607,001677: 04,3075           06006        ENTTIM2            TC       INTPRET                               
021608,001678: 04,3076           52034                           RTB      GOTO                                  
021609,001679: 04,3077           45505                                    LOADTIME                              
021610,001680: 04,3100           10766                                    R36INT                                
021611,001681: 04,3101           01420        V06N16N            VN       00616                                 
021612,001682: 04,3102           01532        V06N90N            VN       00690                                 

End of include-file P34-P35,_P74-P75.agc.  Parent file is MAIN.agc