Source Code

These source-code files are part of a reconstructed copy of LM131 revision 1, the final release of the Apollo 13 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The source reconstruction began with source code of Luminary 131 previously transcribed from a digitized copy of that program. A dump of the flight spare core rope memory module B5, part number 2010802-171, serial number RAY 411, was obtained. This module is the only module different between Luminary 131 and LM131 revision 1. The dump was disassembled and all changes were incorporated into these source files. Note that page numbers in the reconstructed code match those on the Luminary 131 printout, although the changed code would likely have changed page numbers for a real LM131 revision 1 listing.

Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository.

027884,000002:                                                                                                  ## Copyright:   Public domain.
027885,000003:                                                                                                  ## Filename:    P34-P35,_P74-P75.agc
027886,000004:                                                                                                  ## Purpose:     A section of LM131 revision 1.
027887,000005:                                                                                                  ##              It is part of the reconstructed source code for the final
027888,000006:                                                                                                  ##              release of the flight software for the Lunar Module's (LM)
027889,000007:                                                                                                  ##              Apollo Guidance Computer (AGC) for Apollo 13. The code has
027890,000008:                                                                                                  ##              been reconstructed from a listing of Luminary 131 and a dump
027891,000009:                                                                                                  ##              of a core rope memory module B5, part number 2010802-171,
027892,000010:                                                                                                  ##              which is the only module different between LM131 revision 1
027893,000011:                                                                                                  ##              and Luminary 131. The executable generated from this source
027894,000012:                                                                                                  ##              has been verified against the module dump, so while the names,
027895,000013:                                                                                                  ##              comments, and ordering may not be exactly correct, the
027896,000014:                                                                                                  ##              resulting binary is.
027897,000015:                                                                                                  ## Reference:   pp. 660-704
027898,000016:                                                                                                  ## Assembler:   yaYUL
027899,000017:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
027900,000018:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
027901,000019:                                                                                                  ## Mod history: 2022-10-28 MAS  Created from Luminary 131.
027902,000020: 

Page 660

027904,000022:                                                                                                  #  TRANSFER PHASE INITIATION (TPI) PROGRAMS (P34 AND P74)
027905,000023:                                                                                                  #  MOD NO -1                     LOG SECTION - P32-P35, P72-P75
027906,000024:                                                                                                  #  MOD BY WHITE.P                DATE 1 JUNE 67
027907,000025: 
027908,000026:                                                                                                  #  PURPOSE
027909,000027:                                                                                                  #        (1)     TO CALCULATE THE REQUIRED DELTA V AND OTHER INITIAL CONDITIONS
027910,000028:                                                                                                  #                REQUIRED BY THE ACTIVE VEHICLE FOR EXECUTION OF THE TRANSFER
027911,000029:                                                                                                  #                PHASE INITIATION (TPI) MANEUVER, GIVEN -
027912,000030:                                                                                                  #                (A)     TIME OF IGNITION TIG (TPI) OR THE ELEVATION ANGLE (E) OF
027913,000031:                                                                                                  #                        THE ACTIVE/PASSIVE VEHICLE LOS AT TIG (TPI).
027914,000032:                                                                                                  #                (B)     CENTRAL ANGLE OF TRANSFER (CENTANG) FROM TIG (TPI) TO
027915,000033:                                                                                                  #                        INTERCEPT TIME (TIG (TPF)).
027916,000034:                                                                                                  #        (2)     TO CALCULATE TIG (TPI) GIVEN E OR E GIVEN TIG (TPI).
027917,000035:                                                                                                  #        (3)     TO CALCULATE THESE PARAMETERS BASED UPON MANEUVER DATA
027918,000036:                                                                                                  #                APPROVED AND KEYED INTO THE DSKY BY THE ASTRONAUT.
027919,000037:                                                                                                  #        (4)     TO DISPLAY TO THE ASTRONAUT AND THE GROUND CERTAIN DEPENDENT
027920,000038:                                                                                                  #                VARIABLES ASSOCIATED WITH THE MANEUVER FOR APPROVAL BY THE
027921,000039:                                                                                                  #                ASTRONAUT/GROUND.
027922,000040:                                                                                                  #        (5)     TO STORE THE TPI TARGET PARAMETERS FOR USE BY THE DESIRED
027923,000041:                                                                                                  #                THRUSTING PROGRAM.
027924,000042: 
027925,000043:                                                                                                  #  ASSUMPTIONS
027926,000044:                                                                                                  #        (1)     LM ONLY - THIS PROGRAM IS BASED UPON PREVIOUS COMPLETION OF
027927,000045:                                                                                                  #                THE CONSTANT DELTA ALTITUDE (CDH) PROGRAM (P33/P73).
027928,000046:                                                                                                  #                THEREFORE -
027929,000047:                                                                                                  #                (A)     AT A SELECTED TPI TIME (NOW IN STORAGE) THE LINE OF SIGHT
027930,000048:                                                                                                  #                        BETWEEN THE ACTIVE AND PASSIVE VEHICLES WAS SELECTED TO BE
027931,000049:                                                                                                  #                        A PRESCRIBED ANGLE (E) (NOW IN STORAGE) FROM THE
027932,000050:                                                                                                  #                        HORIZONTAL PLANE DEFINED BY THE ACTIVE VEHICLE POSITION.
027933,000051:                                                                                                  #                (B)     THE TIME BETWEEN CDH IGNITION AND TPI IGNITION WAS
027934,000052:                                                                                                  #                        COMPUTED TO BE GREATER THAN 10 MINUTES.
027935,000053:                                                                                                  #                (C)     THE VARIATION OF THE ALTITUDE DIFFERENCE BETWEEN THE
027936,000054:                                                                                                  #                        ORBITS WAS MINIMIZED.
027937,000055:                                                                                                  #                (D)     THE PERICENTER ALTITUDES OF ORBITS FOLLOWING CSI AND
027938,000056:                                                                                                  #                        CDH WERE COMPUTED TO BE GREATER THAN 35,000 FT FOR LUNAR

Page 661

027940,000058:                                                                                                  #                        ORBIT OR 85 NM FOR EARTH ORBIT.
027941,000059:                                                                                                  #                (E)     THE CSI AND CDH MANEUVERS WERE ASSUMED TO BE PARALLEL TO
027942,000060:                                                                                                  #                        THE PLANE OF THE PASSIVE VEHICLE ORBIT.  HOWEVER, CREW
027943,000061:                                                                                                  #                        MODIFICATION OF DELTA V (LV) COMPONENTS MAY HAVE RESULTED
027944,000062:                                                                                                  #                        IN AN OUT-OF-PLANE MANEUVER.
027945,000063:                                                                                                  #        (2)     STATE VECTOR UPDATED BY P27 ARE DISALLOWED DURING AUTOMATIC
027946,000064:                                                                                                  #                STATE VECTOR UPDATING INITIATED BY P20 (SEE ASSUMPTION (4)).
027947,000065:                                                                                                  #        (3)     THIS PROGRAM MUST BE DONE OVER A TRACKING STATION FOR REAL
027948,000066:                                                                                                  #                TIME GROUND PARTICIPATION IN DATA INPUT AND OUTPUT.  COMPUTED
027949,000067:                                                                                                  #                VARIABLES MAY BE STORED FOR LATER VERIFICATION BY THE GROUND.
027950,000068:                                                                                                  #                THESE STORAGE CAPABILITIES ARE LIMITED ONLY TO THE PARAMETERS
027951,000069:                                                                                                  #                FOR ONE THRUSTING MANEUVER AT A TIME EXCEPT FOR CONCENTRIC
027952,000070:                                                                                                  #                FLIGHT PLAN MANEUVER SEQUENCES.
027953,000071:                                                                                                  #        (4)     THE RENDEZVOUS RADAR MAY OR MAY NOT BE USED TO UPDATE THE LM
027954,000072:                                                                                                  #                OR CSM STATE VECTORS FOR THIS PROGRAM.  IF RADAR USE IS
027955,000073:                                                                                                  #                DESIRED THE RADAR WAS TURNED ON AND LOCKED ON THE CSM BY
027956,000074:                                                                                                  #                PREVIOUS SELECTION OF P20.  RADAR SIGHTING MARKS WILL BE MADE
027957,000075:                                                                                                  #                AUTOMATICALLY APPROXIMATELY ONCE A MINUTE WHEN ENABLED BY THE
027958,000076:                                                                                                  #                TRACK AND UPDATE FLAGS (SEE P20).  THE RENDEZVOUS TRACKING
027959,000077:                                                                                                  #                MARK COUNTER IS ZEROED BY THE SELECTION OF P20 AND AFTER EACH
027960,000078:                                                                                                  #                THRUSTING MANEUVER.
027961,000079:                                                                                                  #        (5)     THE ISS NEED NOT BE ON TO COMPLETE THIS PROGRAM.
027962,000080:                                                                                                  #        (6)     THE OPERATION OF THE PROGRAM UTILIZES THE FOLLOWING FLAGS -
027963,000081: 
027964,000082:                                                                                                  #                        ACTIVE VEHICLE FLAG - DESIGNATES THE VEHICLE WHICH IS
027965,000083:                                                                                                  #                        DOING RENDEZVOUS THRUSTING MANEUVERS TO THE PROGRAM WHICH
027966,000084:                                                                                                  #                        CALCULATES THE MANEUVER PARAMETERS.  SET AT THE START OF
027967,000085:                                                                                                  #                        EACH RENDEZVOUS PRE-THRUSTING PROGRAM.
027968,000086: 
027969,000087:                                                                                                  #                        FINAL FLAG - SELECTS FINAL PROGRAM DISPLAYS AFTER CREW HAS
027970,000088:                                                                                                  #                        SELECTED THE FINAL MANEUVER COMPUTATION CYCLE.
027971,000089: 
027972,000090:                                                                                                  #                        EXTERNAL DELTA V FLAG - DESIGNATES THE TYPE OF STEERING
027973,000091:                                                                                                  #                        REQUIRED FOR EXECUTION OF THIS MANEUVER BY THE THRUSTING
027974,000092:                                                                                                  #                        PROGRAM SELECTED AFTER COMPLETION OF THIS PROGRAM.
027975,000093: 
027976,000094:                                                                                                  #        (7)     ONCE THE PARAMETWRS REQUIRED FOR COMPUTION OF THE MANEUVER
027977,000095:                                                                                                  #                HAVE BEEN COMPLETELY SPECIFIED, THE VALUE OF THE ACTIVE
027978,000096:                                                                                                  #                VEHICLE CENTRAL ANGLE OF TRANSFER IS COMPUTED AND STORED.
027979,000097:                                                                                                  #                THIS NUMBER WILL BE AVAILABLE FOR DISPLAY TO THE ASTRONAUT
027980,000098:                                                                                                  #                THROUGH THE USE OF V06N52.
027981,000099: 
027982,000100:                                                                                                  #                THE ASTRONAUT WILL CALL THIS DISPLAY TO VERIFY THAT THE
027983,000101:                                                                                                  #                CENTRAL ANGLE OF TRANSFER OF THE ACTIVE VEHICLE IS NOT WITHIN

Page 662

027985,000103:                                                                                                  #                170 TO 190 DEGREES.  IF THE ANGLE IS WITHIN THIS ZONE THE
027986,000104:                                                                                                  #                ASTRONAUT SHOULD REASSESS THE INPUT TARGETING PARAMETERS BASED
027987,000105:                                                                                                  #                UPON DELTA V AND EXPECTED MANEUVER TIME.
027988,000106:                                                                                                  #        (8)     THIS PROGRAM IS SELECTED BY THE ASTRONAUT BY DSKY ENTRY -
027989,000107: 
027990,000108:                                                                                                  #                        P34 IF THIS VEHICLE IS ACTIVE VEHICLE.
027991,000109: 
027992,000110:                                                                                                  #                        P74 IF THIS VEHICLE IS PASSIVE VEHICLE.
027993,000111: 
027994,000112:                                                                                                  #  INPUT
027995,000113:                                                                                                  #        (1)     TTPI    TIME OF THE TPI MANEUVER
027996,000114:                                                                                                  #        (2)     ELEV    DESIRED LOS ANGLE AT TPI
027997,000115:                                                                                                  #        (3)     CENTANG ORBITAL CENTRAL ANGLE OF THE PASSIVE VEHICLE DURING
027998,000116:                                                                                                  #                        TRANSFER FROM TPI TO TIME OF INTERCEPT
027999,000117: 
028000,000118:                                                                                                  #  OUTPUT
028001,000119:                                                                                                  #        (1)     TRKMKCNT        NUMBER OF MARKS
028002,000120:                                                                                                  #        (2)     TTOGO           TIME TO GO
028003,000121:                                                                                                  #        (3)     +MGA            MIDDLE GIMBAL ANGLE
028004,000122:                                                                                                  #        (4)     TTPI            COMPUTED TIME OF TPI MANEUVER
028005,000123:                                                                                                  #                 OR
028006,000124:                                                                                                  #                ELEV            COMPUTED LOS ANGLE AT TPI
028007,000125:                                                                                                  #        (5)     POSTTPI         PERIGEE ALTITUDE AFTER THE TPI MANEUVER
028008,000126:                                                                                                  #        (6)     DELVTPI         MAGNITUDE OF DELTA V AT TPI
028009,000127:                                                                                                  #        (7)     DELVTPF         MAGNITUDE OF DELTA V AT INTERCEPT
028010,000128:                                                                                                  #        (8)     DVLOS           DELTA VELOCITY AT TPI - LINE OF SIGHT
028011,000129:                                                                                                  #        (9)     DELVLVC         DELTA VELOCITY AT TPI - LOCAL VERTICAL COORDINATES
028012,000130: 
028013,000131:                                                                                                  #  DOWNLINK
028014,000132:                                                                                                  #        (1)     TTPI            TIME OF THE TPI MANEUVER
028015,000133:                                                                                                  #        (2)     TIG             TIME OF THE TPI MANEUVER
028016,000134:                                                                                                  #        (3)     ELEV            DESIRED LOS ANGLE AT TPI
028017,000135:                                                                                                  #        (4)     CENTANG         ORBITAL CENTRAL ANGLE OF THE PASSIVE VEHICLE DURING
028018,000136:                                                                                                  #                                TRANSFER FROM TPI TO TIME OF INTERCEPT
028019,000137:                                                                                                  #        (5)     DELVEET3        DELTA VELOCITY AT TPI - REFERENCE COORDINATES
028020,000138:                                                                                                  #        (6)     TPASS4          TIME OF INTERCEPT
028021,000139: 
028022,000140:                                                                                                  #  COMMUNICATION TO THRUSTING PROGRAMS
028023,000141:                                                                                                  #        (1)     TIG             TIME OF THE TPI MANEUVER
028024,000142:                                                                                                  #        (2)     RTARG           OFFSET TARGET POSITION
028025,000143:                                                                                                  #        (3)     TPASS4          TIME OF INTERCEPT
028026,000144:                                                                                                  #        (4)     XDELVFLG        RESET TO INDICATE LAMBERT (AIMPOINT) VG COMPUTATION
028027,000145: 
028028,000146:                                                                                                  #  SUBROUTINES USED
028029,000147:                                                                                                  #        AVFLAGA

Page 663

028031,000149:                                                                                                  #        AVFLAGP
028032,000150:                                                                                                  #        VNPOOH
028033,000151:                                                                                                  #        DISPLAYE
028034,000152:                                                                                                  #        SELECTMU
028035,000153:                                                                                                  #        PRECSET
028036,000154:                                                                                                  #        S33/34.1
028037,000155:                                                                                                  #        ALARM
028038,000156:                                                                                                  #        BANKCALL
028039,000157:                                                                                                  #        GOFLASH
028040,000158:                                                                                                  #        GOTOPOOH
028041,000159:                                                                                                  #        TIMETHET
028042,000160:                                                                                                  #        S34/35.2
028043,000161:                                                                                                  #        PERIAPO1
028044,000162:                                                                                                  #        SHIFTR1
028045,000163:                                                                                                  #        S34/35.5
028046,000164:                                                                                                  #        VN1645
028047,000165: 
028048,000166: 35,2000                                           SETLOC   CSI/CDH                               
028049,000167: 35,2000                                           BANK                                           
028050,000168: 35,2455  E7,1470                                  EBANK=   SUBEXIT                               
028051,000169: 35,2455                                           COUNT*   $$/P3474                              
028052,000170: 35,2455           02354        P34                TC       AVFLAGA                               
028053,000171: 35,2456           02460                           TC       P34/P74A                              
028054,000172: 35,2457           02361        P74                TC       AVFLAGP                               
028055,000173: 35,2460           02366        P34/P74A           TC       P20FLGON                              #  SET UPDATFLG, TRACKFLG
028056,000174: 35,2461           33632                           CAF      V06N37                                #  TTPI
028057,000175: 35,2462           03621                           TC       VNPOOH                                
028058,000176: 35,2463           00006                           EXTEND                                         
028059,000177: 35,2464           33655                           DCA      130DEG                                
028060,000178: 35,2465           53621                           DXCH     CENTANG                               
028061,000179: 35,2466           32424                           CAF      P30ZERO                               
028062,000180: 35,2467           55466                           TS       NN                                    
028063,000181: 35,2470           03603                           TC       DISPLAYE                              #  ELEV AND CENTANG
028064,000182: 35,2471           06042                           TC       INTPRET                               
028065,000183: 35,2472           71214                           CLEAR    DLOAD                                 
028066,000184: 35,2473           01270                                    ETPIFLAG                              
028067,000185: 35,2474           03636                                    TTPI                                  
028068,000186: 35,2475           17442                           STODL    TIG                                   
028069,000187: 35,2476           02257                                    ELEV                                  
028070,000188: 35,2477           43054                           BZE      SET                                   
028071,000189: 35,2500           72502                                    P34/P74B                              
028072,000190: 35,2501           01070                                    ETPIFLAG                              
028073,000191: 35,2502           77624        P34/P74B           CALL                                           
028074,000192: 35,2503           20000                                    SELECTMU                              
028075,000193: 35,2504                        DELELO             EQUALS   26D                                   
028076,000194: 35,2504           43145        P34/P74C           DLOAD    SET                                   
028077,000195: 35,2505           06524                                    ZEROVECS                              
028078,000196: 35,2506           03460                                    ITSWICH                               
028079,000197: 35,2507           43014                           BON      CLEAR                                 
028080,000198: 35,2510           01310                                    ETPIFLAG                              

Page 664

028082,000200: 35,2511           72513                                    SWCHSET                               
028083,000201: 35,2512           03660                                    ITSWICH                               
028084,000202: 35,2513           02317        SWCHSET            STORE    NOMTPI                                
028085,000203: 35,2514           43345        INTLOOP            DLOAD    DAD                                   
028086,000204: 35,2515           03636                                    TTPI                                  
028087,000205: 35,2516           02317                                    NOMTPI                                
028088,000206: 35,2517           34041                           STCALL   TDEC1                                 
028089,000207: 35,2520           46403                                    PRECSET                               
028090,000208: 35,2521           77624                           CALL                                           
028091,000209: 35,2522           72674                                    S33/34.1                              
028092,000210: 35,2523           77454                           BZE      EXIT                                  
028093,000211: 35,2524           72535                                    SWCHCLR                               
028094,000212: 35,2525           05567                           TC       ALARM                                 
028095,000213: 35,2526           00611                           OCT      611                                   
028096,000214: 35,2527           35006                           CAF      V05N09                                
028097,000215: 35,2530           04616                           TC       BANKCALL                              
028098,000216: 35,2531           20477                           CADR     GOFLASH                               
028099,000217: 35,2532           06001                           TC       GOTOPOOH                              
028100,000218: 35,2533           02460                           TC       P34/P74A                              #  PROCEED
028101,000219: 35,2534           02525                           TC       -7                                    #  V32
028102,000220: 
028103,000221: 35,2535           43014        SWCHCLR            BONCLR   BON                                   
028104,000222: 35,2536           03600                                    ITSWICH                               
028105,000223: 35,2537           72514                                    INTLOOP                               
028106,000224: 35,2540           01310                                    ETPIFLAG                              
028107,000225: 35,2541           72545                                    P34/P74D                              #  DISPLAY TTPI
028108,000226: 35,2542           77776                           EXIT                                           
028109,000227: 35,2543           03603                           TC       DISPLAYE                              #  DISPLAY ELEV AND CENTANG
028110,000228: 35,2544           02550                           TC       P34/P74E                              
028111,000229: 35,2545           77776        P34/P74D           EXIT                                           
028112,000230: 35,2546           33632                           CAF      V06N37                                #  TTPI
028113,000231: 35,2547           03621                           TC       VNPOOH                                
028114,000232: 35,2550           06042        P34/P74E           TC       INTPRET                               
028115,000233: 35,2551           71201                           SETPD    DLOAD                                 
028116,000234: 35,2552           00001                                    0D                                    
028117,000235: 35,2553           02777                                    RTX1                                  
028118,000236: 35,2554           14047                           STODL    X1                                    
028119,000237: 35,2555           03621                                    CENTANG                               
028120,000238: 35,2556           71406                           PUSH     COS                                   
028121,000239: 35,2557           16732                           STODL    CSTH                                  
028122,000240: 35,2560           77756                           SIN                                            
028123,000241: 35,2561           26730                           STOVL    SNTH                                  
028124,000242: 35,2562           03552                                    RPASS3                                
028125,000243: 35,2563           77657                           VSR*                                           
028126,000244: 35,2564           57176                                    0,2                                   
028127,000245: 35,2565           26655                           STOVL    RVEC                                  
028128,000246: 35,2566           03560                                    VPASS3                                
028129,000247: 35,2567           43057                           VSR*     SET                                   
028130,000248: 35,2570           57176                                    0,2                                   
028131,000249: 35,2571           03466                                    RVSW                                  

Page 665

028133,000251: 35,2572           36744                           STCALL   VVEC                                  
028134,000252: 35,2573           24732                                    TIMETHET                              
028135,000253: 35,2574           77745                           DLOAD                                          
028136,000254: 35,2575           03636                                    TTPI                                  
028137,000255: 35,2576           03610                           STORE    INTIME                                #  FOR INITVEL
028138,000256: 35,2577           77615                           DAD                                            
028139,000257: 35,2600           00037                                    T                                     #  RENDEZVOUS TIME
028140,000258: 35,2601           37631                           STCALL   TPASS4                                #  FOR INITVEL
028141,000259: 35,2602           73216                                    S34/35.2                              
028142,000260: 35,2603           51575                           VLOAD    ABVAL                                 
028143,000261: 35,2604           02366                                    DELVEET3                              
028144,000262: 35,2605           27576                           STOVL    DELVTPI                               
028145,000263: 35,2606           03506                                    VPASS4                                
028146,000264: 35,2607           51451                           VSU      ABVAL                                 
028147,000265: 35,2610           03566                                    VTPRIME                               
028148,000266: 35,2611           26350                           STOVL    DELVTPF                               
028149,000267: 35,2612           03536                                    RACT3                                 
028150,000268: 35,2613           45115                           PDVL     CALL                                  
028151,000269: 35,2614           02337                                    VIPRIME                               
028152,000270: 35,2615           46341                                    PERIAPO1                              
028153,000271: 35,2616           77624                           CALL                                           
028154,000272: 35,2617           46451                                    SHIFTR1                               
028155,000273: 35,2620           17606                           STODL    POSTTPI                               
028156,000274: 35,2621           03636                                    TTPI                                  
028157,000275: 35,2622           03442                           STORE    TIG                                   
028158,000276: 35,2623           77776                           EXIT                                           
028159,000277: 35,2624           33634                           CAF      V06N58                                
028160,000278: 35,2625           03621                           TC       VNPOOH                                
028161,000279: 35,2626           06042                           TC       INTPRET                               
028162,000280: 35,2627           77624                           CALL                                           
028163,000281: 35,2630           73432                                    S34/35.5                              
028164,000282: 35,2631           77624                           CALL                                           
028165,000283: 35,2632           73515                                    VN1645                                
028166,000284: 35,2633           77650                           GOTO                                           
028167,000285: 35,2634           72504                                    P34/P74C                              

Page 666

028169,000287:                                                                                                  #  RENDEZVOUS MID-COURSE MANEUVER PROGRAMS (P35 AND P75)
028170,000288:                                                                                                  #  MOD NO -1                     LOG SECTION - P32-P35, P72-P75
028171,000289:                                                                                                  #  MOD BY WHITE.P                DATE   1 JUNE 67
028172,000290: 
028173,000291:                                                                                                  #  PURPOSE
028174,000292:                                                                                                  #        (1)     TO CALCULATE THE REQUIRED DELTA V AND OTHER INITIAL CONDITIONS
028175,000293:                                                                                                  #                REQUIRED BY THE ACTIVE VEHICLE FOR EXECUTION OF THE NEXT
028176,000294:                                                                                                  #                MIDCOURSE CORRECTION OF THE TRANSFER PHASE OF AN ACTIVE
028177,000295:                                                                                                  #                VEHICLE RENDEZVOUS.
028178,000296:                                                                                                  #        (2)     TO DISPLAY TO THE ASTRONAUT AND THE GROUND CERTAIN DEPENDENT
028179,000297:                                                                                                  #                VARIABLES ASSOCIATED WITH THE MANEUVER FOR APPROVAL BY THE
028180,000298:                                                                                                  #                ASTRONAUT/GROUND.
028181,000299:                                                                                                  #        (3)     TO STORE THE TPM TARGET PARAMETERS FOR USE BY THE DESIRED
028182,000300:                                                                                                  #                THRUSTING PROGRAM.
028183,000301: 
028184,000302:                                                                                                  #  ASSUMPTIONS
028185,000303:                                                                                                  #        (1)     THE ISS NEED NOT BE ON TO COMPLETE THIS PROGRAM.
028186,000304:                                                                                                  #        (2)     STATE VECTOR UPDATES BY P27 ARE DISALLOWED DURING AUTOMATIC
028187,000305:                                                                                                  #                STATE VECTOR UPDATING INITIATED BY P20 (SEE ASSUMPTION (3)).
028188,000306:                                                                                                  #        (3)     THE RENDEZVOUS RADAR IS ON AND IS LOCKED ON THE CSM.  THIS WAS
028189,000307:                                                                                                  #                DONE DURING PREVIOUS SELECTION OF P20.  RADAR SIGHTING MARKS
028190,000308:                                                                                                  #                WILL BE MADE AUTOMATICALLY APPROXIMATELY ONCE A MINUTE WHEN
028191,000309:                                                                                                  #                ENABLED BY THE TRACK AND UPDATE FLAGS (SEE P20).  THE
028192,000310:                                                                                                  #                RENDEZVOUS TRACKING MARK COUNTER IS ZEROED BY THE SELECTION OF
028193,000311:                                                                                                  #                P20 AND AFTER EACH THRUSTING MANEUVER.
028194,000312:                                                                                                  #        (4)     THE OPERATION OF THE PROGRAM UTILIZES THE FOLLOWING FLAGS -
028195,000313: 
028196,000314:                                                                                                  #                        ACTIVE VEHICLE FLAG - DESIGNATES THE VEHICLE WHICH IS
028197,000315:                                                                                                  #                        DOING RENDEZVOUS THRUSTING MANEUVERS TO THE PROGRAM WHICH
028198,000316:                                                                                                  #                        CALCULATES THE MANEUVER PARAMETERS.  SET AT THE START OF
028199,000317:                                                                                                  #                        EACH RENDEZVOUS PRE-THRUSTING PROGRAM.
028200,000318: 
028201,000319:                                                                                                  #                        FINAL FLAG - SELECTS FINAL PROGRAM DISPLAYS AFTER CREW HAS
028202,000320:                                                                                                  #                        SELECTED THE FINAL MANEUVER COMPUTATION CYCLE.
028203,000321: 
028204,000322:                                                                                                  #                        EXTERNAL DELTA V FLAG - DESIGNATES THE TYPE OF STEERING
028205,000323:                                                                                                  #                        REQUIRED FOR EXECUTION OF THIS MANEUVER BY THE THRUSTING
028206,000324:                                                                                                  #                        PROGRAM SELECTED AFTER COMPLETION OF THIS PROGRAM.
028207,000325: 
028208,000326:                                                                                                  #        (5)     THE TIME OF INTERCEPT (T(INT)) WAS DEFINED BY PREVIOUS
028209,000327:                                                                                                  #                COMPLETION OF THE TRANSFER PHASE INITIATION (TPI) PROGRAM
028210,000328:                                                                                                  #                (P34/P74) AND IS PRESENTLY AVAILABLE IN STORAGE.

Page 667

028212,000330:                                                                                                  #        (6)     ONCE THE PARAMETERS REQUIRED FOR COMPUTION OF THE MANEUVER
028213,000331:                                                                                                  #                HAVE BEEN COMPLETELY SPECIFIED, THE VALUE OF THE ACTIVE
028214,000332:                                                                                                  #                VEHICLE CENTRAL ANGLE OF TRANSFER IS COMPUTED AND STORED.
028215,000333:                                                                                                  #                THIS NUMBER WILL BE AVAILABLE FOR DISPLAY TO THE ASTRONAUT
028216,000334:                                                                                                  #                THROUGH THE USE OF V06N52.
028217,000335: 
028218,000336:                                                                                                  #                THE ASTRONAUT WILL CALL THIS DISPLAY TO VERIFY THAT THE
028219,000337:                                                                                                  #                CENTRAL ANGLE OF TRANSFER OF THE ACTIVE VEHICLE IS NOT WITHIN
028220,000338:                                                                                                  #                170 TO 190 DEGREES.  IF THE ANGLE IS WITHIN THIS ZONE THE
028221,000339:                                                                                                  #                ASTRONAUT SHOULD REASSESS THE INPUT TARGETING PARAMETERS BASED
028222,000340:                                                                                                  #                UPON DELTA V AND EXPECTED MANEUVER TIME.
028223,000341:                                                                                                  #        (7)     THIS PROGRAM IS SELECTED BY THE ASTRONAUT BY DSKY ENTRY -
028224,000342: 
028225,000343:                                                                                                  #                        P35 IF THIS VEHICLE IS ACTIVE VEHICLE.
028226,000344: 
028227,000345:                                                                                                  #                        P75 IF THIS VEHICLE IS PASSIVE VEHICLE.
028228,000346: 
028229,000347:                                                                                                  #  INPUT
028230,000348:                                                                                                  #        (1)     TPASS4          TIME OF INTERCEPT - SAVED FROM P34/P74
028231,000349: 
028232,000350:                                                                                                  #  OUTPUT
028233,000351:                                                                                                  #        (1)     TRKMKCNT        NUMBER OF MARKS
028234,000352:                                                                                                  #        (2)     TTOGO           TIME TO GO
028235,000353:                                                                                                  #        (3)     +MGA            MIDDLE GIMBAL ANGLE
028236,000354:                                                                                                  #        (4)     DVLOS           DELTA VELOCITY AT MID - LINE OF SIGHT
028237,000355:                                                                                                  #        (5)     DELVLVC         DELTA VELOCITY AT MID - LOCAL VERTICAL COORDINATES
028238,000356: 
028239,000357:                                                                                                  #  DOWNLINK
028240,000358:                                                                                                  #        (1)     TIG             TIME OF THE TPM MANEUVER
028241,000359:                                                                                                  #        (2)     DELVEET3        DELTA VELOCITY AT TPM - REFERENCE COORDINATES
028242,000360:                                                                                                  #        (3)     TPASS4          TIME OF INTERCEPT
028243,000361: 
028244,000362:                                                                                                  #  COMMUNICATION TO THRUSTING PROGRAMS
028245,000363:                                                                                                  #        (1)     TIG             TIME OF THE TPM MANEUVER
028246,000364:                                                                                                  #        (2)     RTARG           OFFSET TARGET POSITION
028247,000365:                                                                                                  #        (3)     TPASS4          TIME OF INTERCEPT
028248,000366:                                                                                                  #        (4)     XDELVFLG        RESET TO INDICATE LAMBERT (AIMPOINT) VG COMPUTATION
028249,000367: 
028250,000368:                                                                                                  #  SUBROUTINES USED
028251,000369:                                                                                                  #        AVFLAGA
028252,000370:                                                                                                  #        AVFLAGP
028253,000371:                                                                                                  #        LOADTIME
028254,000372:                                                                                                  #        SELECTMU
028255,000373:                                                                                                  #        PRECSET
028256,000374:                                                                                                  #        S34/35.1
028257,000375:                                                                                                  #        S34/35.2

Page 668

028259,000377:                                                                                                  #        S34/35.5
028260,000378:                                                                                                  #        VN1645
028261,000379: 
028262,000380: 35,2635                                           COUNT*   $$/P3575                              
028263,000381: 35,2635  E7,1575                                  EBANK=   KT                                    
028264,000382: 
028265,000383: 35,2635           02354        P35                TC       AVFLAGA                               
028266,000384: 35,2636           00006                           EXTEND                                         
028267,000385: 35,2637           31401                           DCA      ATIGINC                               
028268,000386: 35,2640           02644                           TC       P35/P75A                              
028269,000387: 35,2641           02361        P75                TC       AVFLAGP                               
028270,000388: 35,2642           00006                           EXTEND                                         
028271,000389: 35,2643           31403                           DCA      PTIGINC                               
028272,000390: 35,2644           53576        P35/P75A           DXCH     KT                                    
028273,000391: 35,2645           02366                           TC       P20FLGON                              #  SET UPDATFLG, TRACKFLG
028274,000392: 35,2646           06042                           TC       INTPRET                               
028275,000393: 35,2647           77624                           CALL                                           
028276,000394: 35,2650           20000                                    SELECTMU                              
028277,000395: 35,2651           77634        P35/P75B           RTB                                            
028278,000396: 35,2652           21574                                    LOADTIME                              
028279,000397: 35,2653           03612                           STORE    TSTRT                                 
028280,000398: 35,2654           77615                           DAD                                            
028281,000399: 35,2655           03576                                    KT                                    
028282,000400: 35,2656           03442                           STORE    TIG                                   
028283,000401: 35,2657           03610                           STORE    INTIME                                #  FOR INITVEL
028284,000402: 35,2660           34041                           STCALL   TDEC1                                 
028285,000403: 35,2661           46403                                    PRECSET                               #  ADVANCE BOTH VEHICLES
028286,000404: 35,2662           77624                           CALL                                           
028287,000405: 35,2663           73204                                    S34/35.1                              #  GET NORM AND LOS FOR TRANSFORM
028288,000406: 35,2664           77624                           CALL                                           
028289,000407: 35,2665           73216                                    S34/35.2                              #  GET DELTA V(LV)
028290,000408: 35,2666           77624                           CALL                                           
028291,000409: 35,2667           73432                                    S34/35.5                              
028292,000410: 35,2670           77624                           CALL                                           
028293,000411: 35,2671           73515                                    VN1645                                
028294,000412: 35,2672           77650                           GOTO                                           
028295,000413: 35,2673           72651                                    P35/P75B                              

Page 669

028297,000415:                                                                                                  #  ..... S33/34.1 .....
028298,000416: 
028299,000417: 35,2674           66220        S33/34.1           STQ      SSP                                   
028300,000418: 35,2675           03463                                    NORMEX                                
028301,000419: 35,2676           03614                                    TITER                                 
028302,000420: 35,2677           40000                           OCT      40000                                 
028303,000421: 35,2700           40345                           DLOAD    SETPD                                 
028304,000422: 35,2701           33643                                    MAX250                                
028305,000423: 35,2702           00001                                    0D                                    
028306,000424: 35,2703           27574                           STOVL    SECMAX                                
028307,000425: 35,2704           03536                                    RACT3                                 
028308,000426: 35,2705           27500                           STOVL    RAPREC                                
028309,000427: 35,2706           03544                                    VACT3                                 
028310,000428: 35,2707           27506                           STOVL    VAPREC                                
028311,000429: 35,2710           03552                                    RPASS3                                
028312,000430: 35,2711           27522                           STOVL    RPPREC                                
028313,000431: 35,2712           03560                                    VPASS3                                
028314,000432: 35,2713           03530                           STORE    VPPREC                                
028315,000433: 35,2714           77624        ELCALC             CALL                                           
028316,000434: 35,2715           73204                                    S34/35.1                              #  NORMAL AND LOS
028317,000435: 35,2716           63235                           VXV      PDVL                                  
028318,000436: 35,2717           03536                                    RACT3                                 #  (RA*VA)*RA 0D
028319,000437: 35,2720           53515                           PDVL     UNIT                                  #  ULOS AT 6D
028320,000438: 35,2721           03536                                    RACT3                                 
028321,000439: 35,2722           46315                           PDVL     VPROJ                                 #  XCHNJ AND UP
028322,000440: 35,2723           51352                           VSL2     BVSU                                  
028323,000441: 35,2724           02311                                    ULOS                                  
028324,000442: 35,2725           63256                           UNIT     PDVL                                  #  UP AT 0D
028325,000443: 35,2726           63241                           DOT      PDVL                                  #  UP.UN*RA AT 0D
028326,000444: 35,2727           00001                                    0D                                    #  UP IN MPAC
028327,000445: 35,2730           75241                           DOT      SIGN                                  
028328,000446: 35,2731           02311                                    ULOS                                  
028329,000447: 35,2732           65552                           SL1      ACOS                                  
028330,000448: 35,2733           50315                           PDVL     DOT                                   #  EA AT 0D
028331,000449: 35,2734           02311                                    ULOS                                  
028332,000450: 35,2735           03536                                    RACT3                                 
028333,000451: 35,2736           71244                           BPL      DLOAD                                 
028334,000452: 35,2737           72742                                    TESTY                                 
028335,000453: 35,2740           06532                                    DPPOSMAX                              
028336,000454: 35,2741           41425                           DSU      PUSH                                  
028337,000455: 35,2742           71214        TESTY              BOFF     DLOAD                                 
028338,000456: 35,2743           03740                                    ITSWICH                               
028339,000457: 35,2744           73171                                    ELEX                                  
028340,000458: 35,2745           03576                                    DELEL                                 
028341,000459: 35,2746           14033                           STODL    DELELO                                
028342,000460: 35,2747           77625                           DSU                                            
028343,000461: 35,2750           02257                                    ELEV                                  
028344,000462: 35,2751           03576                           STORE    DELEL                                 
028345,000463: 35,2752           45246                           ABS      DSU                                   
028346,000464: 35,2753           33647                                    ELEPS                                 

Page 670

028348,000466: 35,2754           77640                           BMN                                            
028349,000467: 35,2755           73201                                    TIMEX                                 #  COMMERCIALS EVERYWHERE
028350,000468: 35,2756           70535        FIGTIME            SLOAD    SR1                                   
028351,000469: 35,2757           03614                                    TITER                                 
028352,000470: 35,2760           72030                           BHIZ     LXA,1                                 
028353,000471: 35,2761           03463                                    NORMEX                                #  TOO MANY ITERATIONS
028354,000472: 35,2762           00154                                    MPAC                                  
028355,000473: 35,2763           77330                           SXA,1    VLOAD                                 
028356,000474: 35,2764           03613                                    TITER                                 
028357,000475: 35,2765           03552                                    RPASS3                                
028358,000476: 35,2766           65256                           UNIT     PDDL                                  
028359,000477: 35,2767           00045                                    36D                                   
028360,000478: 35,2770           53515                           PDVL     UNIT                                  
028361,000479: 35,2771           03536                                    RACT3                                 
028362,000480: 35,2772           77725                           PDDL                                           
028363,000481: 35,2773           41525                           PDDL     PUSH                                  
028364,000482: 35,2774           00045                                    36D                                   
028365,000483: 35,2775           77621                           BDSU                                           
028366,000484: 35,2776           00015                                    12D                                   
028367,000485: 35,2777           14037                           STODL    30D                                   #  RP-RA MAGNITUDES
028368,000486: 35,3000           06522                                    DPHALF                                
028369,000487: 35,3001           41425                           DSU      PUSH                                  
028370,000488: 35,3002           02257                                    ELEV                                  
028371,000489: 35,3003           50165                           SIGN     BMN                                   
028372,000490: 35,3004           00037                                    30D                                   
028373,000491: 35,3005           03463                                    NORMEX                                
028374,000492: 35,3006           71545                           DLOAD    COS                                   
028375,000493: 35,3007           56205                           DMP      DDV                                   
028376,000494: 35,3010           00017                                    14D                                   
028377,000495: 35,3011           00015                                    12D                                   
028378,000496: 35,3012           77676                           DCOMP                                          #  SINCE COS(180-A)=-COS A
028379,000497: 35,3013           00035                           STORE    28D                                   
028380,000498: 35,3014           44246                           ABS      BDSU                                  
028381,000499: 35,3015           06522                                    DPHALF                                
028382,000500: 35,3016           77240                           BMN      VLOAD                                 
028383,000501: 35,3017           03463                                    NORMEX                                
028384,000502: 35,3020           02261                                    UNRM                                  
028385,000503: 35,3021           53435                           VXV      UNIT                                  
028386,000504: 35,3022           00007                                    6D                                    #  UN*RA
028387,000505: 35,3023           41241                           DOT      DMP                                   
028388,000506: 35,3024           03544                                    VACT3                                 
028389,000507: 35,3025           00015                                    12D                                   
028390,000508: 35,3026           47315                           PDVL     VXV                                   
028391,000509: 35,3027           00001                                    0D                                    
028392,000510: 35,3030           03560                                    VPASS3                                
028393,000511: 35,3031           53435                           VXV      UNIT                                  
028394,000512: 35,3032           00001                                    0D                                    #  (RP*VP)*RP
028395,000513: 35,3033           41241                           DOT      DMP                                   
028396,000514: 35,3034           03560                                    VPASS3                                
028397,000515: 35,3035           00017                                    14D                                   

Page 671

028399,000517: 35,3036           77621                           BDSU                                           
028400,000518: 35,3037           63301                           NORM     PDVL                                  #  NORMALIZED WA-WP 12D
028401,000519: 35,3040           00047                                    X1                                    
028402,000520: 35,3041           00007                                    6D                                    
028403,000521: 35,3042           50235                           VXV      DOT                                   
028404,000522: 35,3043           00001                                    0D                                    
028405,000523: 35,3044           02261                                    UNRM                                  #  RA*RP.UN 14D
028406,000524: 35,3045           50315                           PDVL     DOT                                   
028407,000525: 35,3046           00001                                    0D                                    
028408,000526: 35,3047           00007                                    6D                                    
028409,000527: 35,3050           65552                           SL1      ACOS                                  
028410,000528: 35,3051           77765                           SIGN                                           
028411,000529: 35,3052           43225                           DSU      DAD                                   #  ALPHA PI
028412,000530: 35,3053           06522                                    DPHALF                                
028413,000531: 35,3054           02257                                    ELEV                                  
028414,000532: 35,3055           65525                           PDDL     ACOS                                  
028415,000533: 35,3056           00035                                    28D                                   
028416,000534: 35,3057           75221                           BDSU     SIGN                                  
028417,000535: 35,3060           06522                                    DPHALF                                
028418,000536: 35,3061           00037                                    30D                                   #  CONTAINS RP-RA
028419,000537: 35,3062           77615                           DAD                                            
028420,000538: 35,3063           56205                           DMP      DDV                                   
028421,000539: 35,3064           33641                                    TWOPI                                 
028422,000540: 35,3065           77605                           DMP                                            
028423,000541: 35,3066           41257                           SL*      DMP                                   
028424,000542: 35,3067           20176                                    0          -3,1                       
028425,000543: 35,3070           51406                           PUSH     ABS                                   
028426,000544: 35,3071           50025                           DSU      BMN                                   
028427,000545: 35,3072           03574                                    SECMAX                                
028428,000546: 35,3073           73077                                    OKMAX                                 
028429,000547: 35,3074           75345                           DLOAD    SIGN                                  #  REPLACE TIME WITH MAX TIME SIGNED
028430,000548: 35,3075           03574                                    SECMAX                                
028431,000549: 35,3076           77606                           PUSH                                           
028432,000550: 35,3077           51135        OKMAX              SLOAD    BPL                                   #  TEST FIRST ITERATION
028433,000551: 35,3100           03614                                    TITER                                 
028434,000552: 35,3101           73107                                    REPETE                                
028435,000553: 35,3102           71331                           SSP      DLOAD                                 
028436,000554: 35,3103           03614                                    TITER                                 
028437,000555: 35,3104           37777                           OCT      37777                                 
028438,000556: 35,3105           77650                           GOTO                                           
028439,000557: 35,3106           73145                                    STORDELT                              
028440,000558: 35,3107           41345        REPETE             DLOAD    DMP                                   
028441,000559: 35,3110           03576                                    DELEL                                 
028442,000560: 35,3111           00033                                    DELELO                                
028443,000561: 35,3112           71244                           BPL      DLOAD                                 
028444,000562: 35,3113           73123                                    NEXTES                                
028445,000563: 35,3114           03574                                    SECMAX                                
028446,000564: 35,3115           77605                           DMP                                            
028447,000565: 35,3116           33645                                    THIRD                                 
028448,000566: 35,3117           17574                           STODL    SECMAX                                

Page 672

028450,000568: 35,3120           70446                           ABS      SR1                                   #  CROSSED OVER SOLUTION
028451,000569: 35,3121           52076                           DCOMP    GOTO                                  #  DT=(-SIGN(DTO)//DT//)/2
028452,000570: 35,3122           73133                                    RESIGN                                
028453,000571: 35,3123           51545        NEXTES             DLOAD    ABS                                   
028454,000572: 35,3124           03576                                    DELEL                                 
028455,000573: 35,3125           51525                           PDDL     ABS                                   
028456,000574: 35,3126           00033                                    DELELO                                
028457,000575: 35,3127           77625                           DSU                                            
028458,000576: 35,3130           71240                           BMN      DLOAD                                 
028459,000577: 35,3131           73136                                    REVERS                                #  WRONG DIRECTION
028460,000578: 35,3132           77646                           ABS                                            
028461,000579: 35,3133           52165        RESIGN             SIGN     GOTO                                  
028462,000580: 35,3134           03606                                    DELTEEO                               
028463,000581: 35,3135           73145                                    STORDELT                              
028464,000582: 35,3136           57545        REVERS             DLOAD    DCOMP                                 
028465,000583: 35,3137           03606                                    DELTEEO                               
028466,000584: 35,3140           70406                           PUSH     SR1                                   
028467,000585: 35,3141           03606                           STORE    DELTEEO                               
028468,000586: 35,3142           77615                           DAD                                            
028469,000587: 35,3143           77650                           GOTO                                           
028470,000588: 35,3144           73146                                    ADTIME                                
028471,000589: 35,3145           03606        STORDELT           STORE    DELTEEO                               
028472,000590: 35,3146           77615        ADTIME             DAD                                            
028473,000591: 35,3147           02317                                    NOMTPI                                #  SUM OF DELTA T:S
028474,000592: 35,3150           02317                           STORE    NOMTPI                                
028475,000593: 35,3151           63375                           VLOAD    PDVL                                  
028476,000594: 35,3152           03506                                    VAPREC                                
028477,000595: 35,3153           03500                                    RAPREC                                
028478,000596: 35,3154           77624                           CALL                                           
028479,000597: 35,3155           73372                                    GOINT                                 
028480,000598: 35,3156           77624                           CALL                                           
028481,000599: 35,3157           46425                                    ACTIVE                                #  STORE NEW RACT3 VACT3
028482,000600: 35,3160           63375                           VLOAD    PDVL                                  
028483,000601: 35,3161           03530                                    VPPREC                                
028484,000602: 35,3162           03522                                    RPPREC                                
028485,000603: 35,3163           77624                           CALL                                           
028486,000604: 35,3164           73372                                    GOINT                                 
028487,000605: 35,3165           77624                           CALL                                           
028488,000606: 35,3166           46435                                    PASSIVE                               #  STORE NEW RPASS3 VPASS3
028489,000607: 35,3167           77650                           GOTO                                           
028490,000608: 35,3170           72714                                    ELCALC                                
028491,000609: 35,3171           43345        ELEX               DLOAD    DAD                                   
028492,000610: 35,3172           03636                                    TTPI                                  
028493,000611: 35,3173           02317                                    NOMTPI                                
028494,000612: 35,3174           17636                           STODL    TTPI                                  
028495,000613: 35,3175           77614                           BON                                            
028496,000614: 35,3176           01310                                    ETPIFLAG                              
028497,000615: 35,3177           73201                                    TIMEX                                 
028498,000616: 35,3200           02257                           STORE    ELEV                                  
028499,000617: 35,3201           52145        TIMEX              DLOAD    GOTO                                  

Page 673

028501,000619: 35,3202           06524                                    ZEROVECS                              
028502,000620: 35,3203           03463                                    NORMEX                                
028503,000621: 

Page 674

028505,000623:                                                                                                  #  ..... S34/35.1 .....
028506,000624: 
028507,000625:                                                                                                  #  COMPUTE UNIT NORMAL AND LINE OF SIGHT VECTORS GIVEN THE ACTIVE AND
028508,000626:                                                                                                  #  PASSIVE POS AND VEL AT TIME T3
028509,000627: 
028510,000628: 35,3204           52375        S34/35.1           VLOAD    VSU                                   
028511,000629: 35,3205           03552                                    RPASS3                                
028512,000630: 35,3206           03536                                    RACT3                                 
028513,000631: 35,3207           41456                           UNIT     PUSH                                  
028514,000632: 35,3210           26311                           STOVL    ULOS                                  
028515,000633: 35,3211           03536                                    RACT3                                 
028516,000634: 35,3212           53435                           VXV      UNIT                                  
028517,000635: 35,3213           03544                                    VACT3                                 
028518,000636: 35,3214           02261                           STORE    UNRM                                  
028519,000637: 35,3215           77616                           RVQ                                            
028520,000638: 

Page 675

028522,000640:                                                                                                  #  ..... S34/35.2 .....
028523,000641: 
028524,000642:                                                                                                  #  ADVANCE PASSIVE VEH TO RENDEZVOUS TIME AND GET REQ VEL FROM LAMBERT
028525,000643: 
028526,000644: 35,3216           77220        S34/35.2           STQ      VLOAD                                 
028527,000645: 35,3217           03470                                    SUBEXIT                               
028528,000646: 35,3220           03560                                    VPASS3                                
028529,000647: 35,3221           65315                           PDVL     PDDL                                  
028530,000648: 35,3222           03552                                    RPASS3                                
028531,000649: 35,3223           03610                                    INTIME                                
028532,000650: 35,3224           65325                           PDDL     PDDL                                  
028533,000651: 35,3225           03631                                    TPASS4                                
028534,000652: 35,3226           33641                                    TWOPI                                 #  CONIC
028535,000653: 35,3227           46125                           PDDL     BHIZ                                  
028536,000654: 35,3230           03467                                    NN                                    
028537,000655: 35,3231           73235                                    S3435.23                              
028538,000656: 35,3232           77745                           DLOAD                                          
028539,000657: 35,3233           41545                           DLOAD    PUSH                                  
028540,000658: 35,3234           06524                                    ZEROVECS                              #  PRECISION
028541,000659: 35,3235           77624        S3435.23           CALL                                           
028542,000660: 35,3236           73376                                    INTINT                                #  GET TARGET VECTOR
028543,000661: 35,3237           27444        S3435.25           STOVL    RTARG                                 
028544,000662: 35,3240           00007                                    VATT                                  
028545,000663: 35,3241           27506                           STOVL    VPASS4                                
028546,000664: 35,3242           03444                                    RTARG                                 
028547,000665:                                                                                                  #  COMPUTE PHI = PI + (ACOS(UNIT RA.UNIT RP) - PI) SIGN(RA*RP.U)
028548,000666: 35,3243           63256                           UNIT     PDVL                                  #  UNIT RP
028549,000667: 35,3244           03536                                    RACT3                                 
028550,000668: 35,3245           41456                           UNIT     PUSH                                  #  UNIT RA
028551,000669: 35,3246           50235                           VXV      DOT                                   
028552,000670: 35,3247           00001                                    0D                                    
028553,000671: 35,3250           02261                                    UNRM                                  #  RA*RP.U
028554,000672: 35,3251           77715                           PDVL                                           
028555,000673: 35,3252           72441                           DOT      SL1                                   #  UNIT RA.UNIT RP
028556,000674: 35,3253           00001                                    0D                                    
028557,000675: 35,3254           75326                           ACOS     SIGN                                  
028558,000676: 35,3255           43244                           BPL      DAD                                   
028559,000677: 35,3256           73260                                    NOPIE                                 
028560,000678: 35,3257           06532                                    DPPOSMAX                              #  REASONABLE TWO PI
028561,000679: 35,3260           15756        NOPIE              STODL    ACTCENT                               
028562,000680: 35,3261           03631                                    TPASS4                                
028563,000681: 35,3262           77625                           DSU                                            
028564,000682: 35,3263           03610                                    INTIME                                
028565,000683: 35,3264           03452                           STORE    DELLT4                                
028566,000684: 35,3265           40335                           SLOAD    SETPD                                 
028567,000685: 35,3266           03467                                    NN                                    #  NUMBER OF OFFSETS
028568,000686: 35,3267           00001                                    0D                                    
028569,000687: 35,3270           63325                           PDDL     PDVL                                  
028570,000688: 35,3271           33653                                    EPSFOUR                               
028571,000689: 35,3272           03536                                    RACT3                                 
028572,000690: 35,3273           26323                           STOVL    RINIT                                 

Page 676

028574,000692: 35,3274           03544                                    VACT3                                 
028575,000693: 35,3275           36331                           STCALL   VINIT                                 
028576,000694: 35,3276           22000                                    INITVEL                               
028577,000695: 35,3277           77624                           CALL                                           
028578,000696: 35,3300           73357                                    LOMAT                                 
028579,000697: 35,3301           64375                           VLOAD    MXV                                   
028580,000698: 35,3302           02366                                    DELVEET3                              
028581,000699: 35,3303           00001                                    0D                                    
028582,000700: 35,3304           77772                           VSL1                                           
028583,000701: 35,3305           37434                           STCALL   DELVLVC                               
028584,000702: 35,3306           03470                                    SUBEXIT                               
028585,000703: 

Page 677

028587,000705:                                                                                                  #  ..... S34/35.3 .....
028588,000706: 
028589,000707: 35,3307           45020        S34/35.3           STQ      CALL                                  
028590,000708: 35,3310           03463                                    NORMEX                                
028591,000709: 35,3311           73357                                    LOMAT                                 #  GET MATRIX IN PUSH LIST
028592,000710: 35,3312           61375                           VLOAD    VXM                                   
028593,000711: 35,3313           03434                                    DELVLVC                               #  NEW DEL V TPI
028594,000712: 35,3314           00001                                    0D                                    
028595,000713: 35,3315           77772                           VSL1                                           
028596,000714: 35,3316           02366                           STORE    DELVEET3                              #  SAVE FOR TRANSFORM
028597,000715: 35,3317           63255                           VAD      PDVL                                  
028598,000716: 35,3320           03544                                    VACT3                                 #  NEW V REQ
028599,000717: 35,3321           03536                                    RACT3                                 
028600,000718: 35,3322           65325                           PDDL     PDDL                                  
028601,000719: 35,3323           03442                                    TIG                                   
028602,000720: 35,3324           03631                                    TPASS4                                
028603,000721: 35,3325           41525                           PDDL     PUSH                                  
028604,000722: 35,3326           06532                                    DPPOSMAX                              
028605,000723: 35,3327           77624                           CALL                                           #  INTEG. FOR NEW TARGET VEC
028606,000724: 35,3330           73376                                    INTINT                                
028607,000725: 35,3331           77775                           VLOAD                                          
028608,000726: 35,3332           00001                                    RATT                                  
028609,000727: 35,3333           03444                           STORE    RTARG                                 
028610,000728: 35,3334           41575        NOVRWRT            VLOAD    PUSH                                  
028611,000729: 35,3335           02311                                    ULOS                                  
028612,000730: 35,3336           57435                           VXV      VCOMP                                 
028613,000731: 35,3337           02261                                    UNRM                                  
028614,000732: 35,3340           41456                           UNIT     PUSH                                  
028615,000733: 35,3341           76435                           VXV      VSL1                                  
028616,000734: 35,3342           02311                                    ULOS                                  
028617,000735: 35,3343           77715                           PDVL                                           
028618,000736: 35,3344           64315                           PDVL     MXV                                   
028619,000737: 35,3345           02366                                    DELVEET3                              
028620,000738: 35,3346           00001                                    0D                                    
028621,000739: 35,3347           77772                           VSL1                                           
028622,000740: 35,3350           36303                           STCALL   DVLOS                                 
028623,000741: 35,3351           03463                                    NORMEX                                
028624,000742: 

Page 678

028626,000744:                                                                                                  #  ..... S34/35.4 .....
028627,000745: 
028628,000746: 35,3352           40220        S34/35.4           STQ      SETPD                                 #  NO ASTRONAUT OVERWRITE
028629,000747: 35,3353           03463                                    NORMEX                                
028630,000748: 35,3354           00001                                    0D                                    
028631,000749: 35,3355           77650                           GOTO                                           
028632,000750: 35,3356           73334                                    NOVRWRT                               
028633,000751: 

Page 679

028635,000753:                                                                                                  #  ..... LOMAT .....
028636,000754: 
028637,000755: 35,3357           57575        LOMAT              VLOAD    VCOMP                                 
028638,000756: 35,3360           02261                                    UNRM                                  
028639,000757: 35,3361           24007                           STOVL    6D                                    #  Y
028640,000758: 35,3362           03536                                    RACT3                                 
028641,000759: 35,3363           57456                           UNIT     VCOMP                                 
028642,000760: 35,3364           00015                           STORE    12D                                   
028643,000761: 35,3365           76435                           VXV      VSL1                                  
028644,000762: 35,3366           02261                                    UNRM                                  #  Z*-Y
028645,000763: 35,3367           00001                           STORE    0D                                    
028646,000764: 35,3370           43401                           SETPD    RVQ                                   
028647,000765: 35,3371           00023                                    18D                                   
028648,000766: 35,3372           65325        GOINT              PDDL     PDDL                                  #  DO
028649,000767: 35,3373           06524                                    ZEROVECS                              #        NOT
028650,000768: 35,3374           02317                                    NOMTPI                                
028651,000769: 35,3375           41406                           PUSH     PUSH                                  #                ORDER OR INSERT BEFORE INTINT
028652,000770: 35,3376           45020        INTINT             STQ      CALL                                  
028653,000771: 35,3377           03465                                    RTRN                                  
028654,000772: 35,3400           27410                                    INTSTALL                              
028655,000773: 35,3401           71214                           CLEAR    DLOAD                                 
028656,000774: 35,3402           01673                                    INTYPFLG                              
028657,000775: 35,3403           43054                           BZE      SET                                   
028658,000776: 35,3404           73406                                    +2                                    
028659,000777: 35,3405           01473                                    INTYPFLG                              
028660,000778: 35,3406           45545                           DLOAD    STADR                                 
028661,000779: 35,3407           63736                           STODL    TDEC1                                 
028662,000780: 35,3410           73014                           SET      LXA,2                                 
028663,000781: 35,3411           00063                                    MOONFLAG                              
028664,000782: 35,3412           02777                                    RTX2                                  
028665,000783: 35,3413           43014                           BON      CLEAR                                 
028666,000784: 35,3414           04303                                    CMOONFLG                              
028667,000785: 35,3415           73417                                    ALLSET                                
028668,000786: 35,3416           00263                                    MOONFLAG                              
028669,000787: 35,3417           25517        ALLSET             STOVL    TET                                   
028670,000788: 35,3420           77657                           VSR*                                           
028671,000789: 35,3421           57176                                    0,2                                   
028672,000790: 35,3422           25535                           STOVL    RCV                                   
028673,000791: 35,3423           77657                           VSR*                                           
028674,000792: 35,3424           57176                                    0,2                                   
028675,000793: 35,3425           35543                           STCALL   VCV                                   
028676,000794: 35,3426           27106                                    INTEGRVS                              
028677,000795: 35,3427           52175                           VLOAD    GOTO                                  
028678,000796: 35,3430           00001                                    RATT                                  
028679,000797: 35,3431           03465                                    RTRN                                  
028680,000798: 

Page 680

028682,000800:                                                                                                  #  ..... S34/35.5 .....
028683,000801: 
028684,000802:                                                                                                  #  SUBROUTINES USED
028685,000803:                                                                                                  #        BANKCALL
028686,000804:                                                                                                  #        GOFLASH
028687,000805:                                                                                                  #        GOTOPOOH
028688,000806:                                                                                                  #        S34/35.3
028689,000807:                                                                                                  #        S34/35.4
028690,000808:                                                                                                  #        VNPOOH
028691,000809: 
028692,000810: 35,3432           43020        S34/35.5           STQ      BON                                   
028693,000811: 35,3433           03470                                    SUBEXIT                               
028694,000812: 35,3434           01311                                    FINALFLG                              
028695,000813: 35,3435           73441                                    FLAGON                                
028696,000814: 35,3436           52014                           SET      GOTO                                  
028697,000815: 35,3437           00470                                    UPDATFLG                              
028698,000816: 35,3440           73505                                    FLAGOFF                               
028699,000817: 35,3441           77214        FLAGON             CLEAR    VLOAD                                 
028700,000818: 35,3442           03274                                    NTARGFLG                              
028701,000819: 35,3443           03434                                    DELVLVC                               
028702,000820: 35,3444           01236                           STORE    GDT/2                                 
028703,000821: 35,3445           77776                           EXIT                                           
028704,000822: 35,3446           33636                 +5        CAF      V06N81                                
028705,000823: 35,3447           04616                           TC       BANKCALL                              
028706,000824: 35,3450           20477                           CADR     GOFLASH                               
028707,000825: 35,3451           06001                           TC       GOTOPOOH                              
028708,000826: 35,3452           03454                           TC       +2                                    #  PRO
028709,000827: 35,3453           03446                           TC       FLAGON     +5                         #  LOAD
028710,000828: 35,3454           35016                 +2        CA       EBANK7                                
028711,000829: 35,3455           54003                           TS       EBANK                                 #  TO BE SURE
028712,000830: 
028713,000831: 35,3456           22007                           ZL                                             
028714,000832: 35,3457           34756                           CA       FIVE                                  
028715,000833: 35,3460           54002        NTARGCHK           TS       Q                                     
028716,000834: 35,3461           50002                           INDEX    Q                                     
028717,000835: 35,3462           41433                           CS       DELVLVC                               
028718,000836: 35,3463           50002                           INDEX    Q                                     
028719,000837: 35,3464           61235                           AD       GDT/2                                 
028720,000838: 35,3465           26001                           ADS      L                                     
028721,000839: 35,3466           10002                           CCS      Q                                     
028722,000840: 35,3467           13460                           TCF      NTARGCHK                              
028723,000841: 35,3470           22000                           LXCH     A                                     
028724,000842: 35,3471           00006                           EXTEND                                         
028725,000843: 35,3472           13475                           BZF      +3                                    
028726,000844: 35,3473           05504                           TC       UPFLAG                                
028727,000845: 35,3474           00146                           ADRES    NTARGFLG                              
028728,000846: 
028729,000847: 35,3475           06042                           TC       INTPRET                               
028730,000848: 35,3476           45014                           BOFF     CALL                                  
028731,000849: 35,3477           03354                                    NTARGFLG                              

Page 681

028733,000851: 35,3500           73502                                    NOCHG                                 
028734,000852: 35,3501           73307                                    S34/35.3                              
028735,000853: 35,3502           77775        NOCHG              VLOAD                                          
028736,000854: 35,3503           02366                                    DELVEET3                              
028737,000855: 35,3504           03656                           STORE    DELVSIN                               
028738,000856: 35,3505           77624        FLAGOFF            CALL                                           
028739,000857: 35,3506           73352                                    S34/35.4                              
028740,000858: 35,3507           77776                           EXIT                                           
028741,000859: 35,3510           33635                           CAF      V06N59                                
028742,000860: 35,3511           03621                           TC       VNPOOH                                
028743,000861: 35,3512           06042                           TC       INTPRET                               
028744,000862: 35,3513           77650                           GOTO                                           
028745,000863: 35,3514           03470                                    SUBEXIT                               
028746,000864: 

Page 682

028748,000866:                                                                                                  #  ..... VN1645 .....
028749,000867: 
028750,000868:                                                                                                  #  SUBROUTINES USED
028751,000869:                                                                                                  #        P3XORP7X
028752,000870:                                                                                                  #        GET+MGA
028753,000871:                                                                                                  #        BANKCALL
028754,000872:                                                                                                  #        DELAYJOB
028755,000873:                                                                                                  #        COMPTGO
028756,000874:                                                                                                  #        GOFLASHR
028757,000875:                                                                                                  #        GOTOPOOH
028758,000876:                                                                                                  #        FLAGUP
028759,000877: 
028760,000878: 35,3515           71220        VN1645             STQ      DLOAD                                 
028761,000879: 35,3516           03470                                    SUBEXIT                               
028762,000880: 35,3517           33651                                    DP-.01                                
028763,000881: 35,3520           02253                           STORE    +MGA                                  #  MGA = -.01
028764,000882: 35,3521           71214                           BOFF     DLOAD                                 
028765,000883: 35,3522           01351                                    FINALFLG                              
028766,000884: 35,3523           73543                                    GET45                                 
028767,000885: 35,3524           33651                                    DP-.01                                
028768,000886: 35,3525           77615                           DAD                                            
028769,000887: 35,3526           33651                                    DP-.01                                
028770,000888: 35,3527           02253                           STORE    +MGA                                  #  MGA = -.02
028771,000889: 35,3530           77414                           BOFF     EXIT                                  
028772,000890: 35,3531           01742                                    REFSMFLG                              
028773,000891: 35,3532           73543                                    GET45                                 
028774,000892: 35,3533           03613                           TC       P3XORP7X                              
028775,000893: 35,3534           03536                           TC       +2                                    #  P3X
028776,000894: 35,3535           03544                           TC       GET45      +1                         #  P7X
028777,000895: 35,3536           06042                           TC       INTPRET                               
028778,000896: 35,3537           41575                           VLOAD    PUSH                                  
028779,000897: 35,3540           03656                                    DELVSIN                               
028780,000898: 35,3541           77624                           CALL                                           #  COMPUTE MGA
028781,000899: 35,3542           15725                                    GET+MGA                               
028782,000900: 35,3543           77776        GET45              EXIT                                           
028783,000901: 35,3544           02437                           TC       COMPTGO                               #  INITIATE TASK TO UPDATE TTOGO
028784,000902: 35,3545           31470                           CA       SUBEXIT                               
028785,000903: 35,3546           55464                           TS       QSAVED                                
028786,000904: 35,3547           34777                           CAF      1SEC                                  
028787,000905: 35,3550           04616                           TC       BANKCALL                              
028788,000906: 35,3551           01736                           CADR     DELAYJOB                              
028789,000907: 35,3552           33637                           CAF      V16N45                                #  TRKMKCNT, TTOGO, +MGA
028790,000908: 35,3553           04616                           TC       BANKCALL                              
028791,000909: 35,3554           20477                           CADR     GOFLASH                               
028792,000910: 35,3555           03560                           TC       KILCLOCK                              #  TERMINATE
028793,000911: 35,3556           03563                           TC       N45PROC                               #  PROCEED
028794,000912: 35,3557           03573                           TC       CLUPDATE                              #  RECYCLE - RETURN FOR INITIAL COMPUTATION
028795,000913: 35,3560           30005        KILCLOCK           CA       Z                                     
028796,000914: 35,3561           55162                           TS       DISPDEX                               

Page 683

028798,000916: 35,3562           06001                           TC       GOTOPOOH                              
028799,000917: 35,3563           40076        N45PROC            CS       FLAGWRD2                              
028800,000918: 35,3564           74746                           MASK     BIT6                                  
028801,000919: 35,3565           00006                           EXTEND                                         
028802,000920: 35,3566           13560                           BZF      KILCLOCK                              #  FINALFLG IS SET - FLASH V37 - AWAIT NEW PGM
028803,000921: 35,3567           05353                           TC       PHASCHNG                              
028804,000922: 35,3570           04024                           OCT      04024                                 
028805,000923: 35,3571           05504                           TC       UPFLAG                                #  SET
028806,000924: 35,3572           00047                           ADRES    FINALFLG                              #  FINALFLG
028807,000925: 35,3573           30005        CLUPDATE           CA       Z                                     
028808,000926: 35,3574           55162                           TS       DISPDEX                               
028809,000927: 35,3575           05353                           TC       PHASCHNG                              
028810,000928: 35,3576           04024                           OCT      04024                                 
028811,000929: 35,3577           06042                           TC       INTPRET                               
028812,000930: 35,3600           52014                           CLEAR    GOTO                                  
028813,000931: 35,3601           00670                                    UPDATFLG                              
028814,000932: 35,3602           03464                                    QSAVED                                
028815,000933: 

Page 684

028817,000935:                                                                                                  #  ..... DISPLAYE .....
028818,000936: 
028819,000937:                                                                                                  #  SUBROUTINES USED
028820,000938:                                                                                                  #        BANKCALL
028821,000939:                                                                                                  #        GOFLASHR
028822,000940:                                                                                                  #        GOTOPOOH
028823,000941:                                                                                                  #        BLANKET
028824,000942:                                                                                                  #        ENDOFJOB
028825,000943: 
028826,000944: 35,3603           00006        DISPLAYE           EXTEND                                         
028827,000945: 35,3604           23463                           QXCH     NORMEX                                
028828,000946: 35,3605           33633                           CAF      V06N55                                
028829,000947: 35,3606           04616                           TCR      BANKCALL                              
028830,000948: 35,3607           20477                           CADR     GOFLASH                               
028831,000949: 35,3610           16001                           TCF      GOTOPOOH                              
028832,000950: 35,3611           01463                           TC       NORMEX                                
028833,000951: 35,3612           13605                           TCF      -5                                    
028834,000952: 

Page 685

028836,000954:                                                                                                  #  ..... P3XORP7X .....
028837,000955: 
028838,000956: 35,3613           37747        P3XORP7X           CAF      HIGH9                                 
028839,000957: 35,3614           71010                           MASK     MODREG                                
028840,000958: 35,3615           00006                           EXTEND                                         
028841,000959: 35,3616           13620                           BZF      +2                                    
028842,000960: 35,3617           24002                           INCR     Q                                     
028843,000961: 35,3620           00002                           RETURN                                         
028844,000962: 
028845,000963:                                                                                                  #  ..... VNPOOH .....
028846,000964: 
028847,000965:                                                                                                  #  SUBROUTINES USED
028848,000966:                                                                                                  #        BANKCALL
028849,000967:                                                                                                  #        GOFLASH
028850,000968:                                                                                                  #        GOTOPOOH
028851,000969: 
028852,000970: 35,3621           00006        VNPOOH             EXTEND                                         
028853,000971: 35,3622           23465                           QXCH     RTRN                                  
028854,000972: 35,3623           55615                           TS       VERBNOUN                              
028855,000973: 35,3624           31615                           CA       VERBNOUN                              
028856,000974: 35,3625           04616                           TCR      BANKCALL                              
028857,000975: 35,3626           20477                           CADR     GOFLASH                               
028858,000976: 35,3627           16001                           TCF      GOTOPOOH                              
028859,000977: 35,3630           01465                           TC       RTRN                                  
028860,000978: 35,3631           13624                           TCF      -5                                    
028861,000979: 

Page 686

028863,000981:                                                                                                  #  ..... CONSTANTS .....
028864,000982: 
028865,000983: 35,3632           01445        V06N37             VN       0637                                  
028866,000984: 35,3633           01467        V06N55             VN       0655                                  
028867,000985: 35,3634           01472        V06N58             VN       0658                                  
028868,000986: 35,3635           01473        V06N59             VN       0659                                  
028869,000987: 35,3636           01521        V06N81             VN       0681                                  
028870,000988: 35,3637           04055        V16N45             VN       1645                                  
028871,000989: 35,3640           14441 37325  TWOPI              2DEC     6.283185307 B-4                        
028872,000990: 35,3642           00001 20650  MAX250             2DEC     25         E3                         
028873,000991: 35,3644           12525 12525  THIRD              2DEC     .333333333                            
028874,000992: 35,3646           00004 21505  ELEPS              2DEC     .27777777  E-3                        
028875,000993: 35,3650           77777        DP-.01             OCT      77777                                 #  CONSTANTS
028876,000994: 35,3651           61337                           OCT      61337                                 #  ADJACENT      -.01 FOR MGA DSP
028877,000995: 35,3652           01252 25253  EPSFOUR            2DEC     .0416666666                            
028878,000996: 35,3654           13434 16162  130DEG             2DEC     .3611111111                            
028879,000997: 

Page 687

028881,000999:                                                                                                  #  ..... INITVEL .....
028882,001000:                                                                                                  #  MOD NO -1                     LOG SECTION - P34-P35, P74-P75
028883,001001:                                                                                                  #  MOD BY WHITE.P                DATE   21 NOV 67
028884,001002: 
028885,001003:                                                                                                  #  FUNCTIONAL DESCRIPTION
028886,001004:                                                                                                  #        THIS SUBROUTINE COMPUTES THE REQUIRED INITIAL VELOCITY VECTOR FOR
028887,001005:                                                                                                  #        A TRAJECTORY OF SPECIFIED TRANSFER TIME BETWEEN SPECIFIED INITIAL
028888,001006:                                                                                                  #        AND TARGET POSITIONS.  THE TRAJECTORY MAY BE EITHER CONIC OR
028889,001007:                                                                                                  #        PRECISION DEPENDING ON AN INPUT PARAMETER (NAMELY, NUMBER OF
028890,001008:                                                                                                  #        OFFSETS).  IN ADDITION, IN TH EPRECISION TRAJECTORY CASE, THE
028891,001009:                                                                                                  #        SUBROUTINE ALSO COMPUTES AN OFFSET TARGET VECTOR, TO BE USED
028892,001010:                                                                                                  #        DURING PURE-CONIC CROSS-PRODUCT STEERING.  THE OFFSET TARGET
028893,001011:                                                                                                  #        VECTOR IS THE TERMINAL POSITION VECTOR OF A CONIC TRAJECTORY WHICH
028894,001012:                                                                                                  #        HAS THE SAME INITIAL STATE AS A PRECISION TRAJECTORY WHOSE
028895,001013:                                                                                                  #        TERMINAL POSITION VECTOR IS THE SPECIFIED TARGET VECTOR.
028896,001014: 
028897,001015:                                                                                                  #        IN ORDER TO AVOID THE INHERENT SINGULARITIES IN THE 180 DEGREE
028898,001016:                                                                                                  #        TRANSFER CASE WHEN THE (TRUE OR OFFSET) TARGET VECTOR MAY BE
028899,001017:                                                                                                  #        SLIGHTLYOUT OF THE ORBITAL PLANE, THIS SUBROUTINE ROTATES THIS
028900,001018:                                                                                                  #        VECTOR INTO A PLANE DEFINED BY THE INPUT INITIAL POSITION VECTOR
028901,001019:                                                                                                  #        AND ANOTHER INPUT VECTOR (USUALLY THE INITIAL VELOCITY VECTOR),
028902,001020:                                                                                                  #        WHENEVER THE INPUT TARGET VECTOR LIES INSIDE A CONE WHOSE VERTEX
028903,001021:                                                                                                  #        IS THE ORIGIN OF COORDINATES, WHOSE AXIS IS THE 180 DEGREE
028904,001022:                                                                                                  #        TRANSFER DIRECTION, AND WHOSE CONE ANGLE IS SPECIFIED BY THE USER.
028905,001023: 
028906,001024:                                                                                                  #        THE LAMBERT SUBROUTINE IS UTILIZED FOR THE CONIC COMPUTATIONS AND
028907,001025:                                                                                                  #        THE COASTING INTEGRATION SUBROUTINE IS UTILIZED FOR THE PRECISION
028908,001026:                                                                                                  #        TRAJECTORY COMPUTATIONS.
028909,001027: 
028910,001028:                                                                                                  #  CALLING SEQUENCE
028911,001029:                                                                                                  #        L       CALL
028912,001030:                                                                                                  #        L+1             INITVEL
028913,001031:                                                                                                  #        L+2     (RETURN - ALWAYS)
028914,001032: 
028915,001033:                                                                                                  #  INPUT
028916,001034:                                                                                                  #        (1)     RINIT           INITIAL POSITION RADIUS VECTOR
028917,001035:                                                                                                  #        (2)     VINIT           INITIAL POSITION VELOCITY VECTOR
028918,001036:                                                                                                  #        (3)     RTARG           TARGET POSITION RADIUS VECTOR
028919,001037:                                                                                                  #        (4)     DELLT4          DESIRED TIME OF FLIGHT FROM RINIT TO RTARG
028920,001038:                                                                                                  #        (5)     INTIME          TIME OF RINIT
028921,001039:                                                                                                  #        (6)     0D              NUMBER OF ITERATIONS OF LAMBERT/INTEGRVS
028922,001040:                                                                                                  #        (7)     2D              ANGLE TO 180 DEGREES WHEN ROTATION STARTS
028923,001041:                                                                                                  #        (8)     RTX1            -2 FOR EARTH, -10D FOR LUNAR
028924,001042:                                                                                                  #        (9)     RTX2            COORDINATE SYSTEM ORIGIN - 0 FOR EARTH, 2 FOR LUNAR
028925,001043:                                                                                                  #        PUSHLOC SET AT 4D
028926,001044: 

Page 688

028928,001046:                                                                                                  #  OUTPUT
028929,001047:                                                                                                  #        (1)     RTARG           OFFSET TARGET POSITION VECTOR
028930,001048:                                                                                                  #        (2)     VIPRIME         MANEUVER VELOCITY REQUIRED
028931,001049:                                                                                                  #        (3)     VTPRIME         VELOCITY AT TARGET AFTER MANEUVER
028932,001050:                                                                                                  #        (4)     DELVEET3        DELTA VELOCITY REQUIRED FOR MANEUVER
028933,001051: 
028934,001052:                                                                                                  #  SUBROUTINES USED
028935,001053:                                                                                                  #        LAMBERT
028936,001054:                                                                                                  #        INTSTALL
028937,001055:                                                                                                  #        INTEGRVS
028938,001056: 
028939,001057: 11,2000                                           SETLOC   INTVEL                                
028940,001058: 11,2000                                           BANK                                           
028941,001059: 
028942,001060: 11,2000                                           COUNT*   $$/INITV                              
028943,001061: 11,2000           77614        INITVEL            SET                                            #  COGA GUESS NOT AVAILABLE
028944,001062: 11,2001           00475                                    GUESSW                                
028945,001063: 11,2002           44175        HAVEGUES           VLOAD    STQ                                   
028946,001064: 11,2003           03444                                    RTARG                                 
028947,001065: 11,2004           03463                                    NORMEX                                
028948,001066: 11,2005           03472                           STORE    RTARG1                                
028949,001067: 11,2006           77646                           ABVAL                                          
028950,001068: 11,2007           03723                           STORE    RTMAG                                 
028951,001069: 11,2010           46135                           SLOAD    BHIZ                                  
028952,001070: 11,2011           03000                                    RTX2                                  
028953,001071: 11,2012           22026                                    INITVEL1                              
028954,001072: 11,2013           72575                           VLOAD    VSL2                                  
028955,001073: 11,2014           02323                                    RINIT                                 #  B29
028956,001074: 11,2015           26323                           STOVL    RINIT                                 #  B27
028957,001075: 11,2016           02331                                    VINIT                                 #  B7
028958,001076: 11,2017           77752                           VSL2                                           
028959,001077: 11,2020           26331                           STOVL    VINIT                                 #  B5
028960,001078: 11,2021           03472                                    RTARG1                                
028961,001079: 11,2022           77752                           VSL2                                           
028962,001080: 11,2023           03472                           STORE    RTARG1                                
028963,001081: 11,2024           77646                           ABVAL                                          
028964,001082: 11,2025           03723                           STORE    RTMAG                                 
028965,001083: 
028966,001084:                                                                                                  #  INITIALIZATION
028967,001085: 
028968,001086: 11,2026           71331        INITVEL1           SSP      DLOAD                                 #  SET ITCTR TO -1,LOAD MPAC WITH E4 (PL 2D)
028969,001087: 11,2027           03617                                    ITCTR                                 
028970,001088: 11,2030           77776                                    0          -1                         
028971,001089: 11,2031           70546                           COSINE   SR1                                   #  CALCULATE COSINE (E4) (+2)
028972,001090: 11,2032           17667                           STODL    COZY4                                 #  SET COZY4 TO COSINE (E4) (PL 0D)
028973,001091: 11,2033           67154                           LXA,2    SXA,2                                 
028974,001092: 11,2034           00154                                    MPAC                                  
028975,001093: 11,2035           02701                                    VTARGTAG                              #  SET VTARGTAG TO 0D (SP)
028976,001094: 11,2036           77775                           VLOAD                                          

Page 689

028978,001096: 11,2037           02323                                    RINIT                                 
028979,001097: 11,2040           26655                           STOVL    R1VEC                                 #  R1VEC EQ RINIT
028980,001098: 11,2041           03472                                    RTARG1                                
028981,001099: 11,2042           16663                           STODL    R2VEC                                 #  R2VEC EQ RTARG
028982,001100: 11,2043           03452                                    DELLT4                                
028983,001101: 11,2044           02671                           STORE    TDESIRED                              #  TDESIRED EQ DELLT4
028984,001102: 11,2045           77201                           SETPD    VLOAD                                 
028985,001103: 11,2046           00001                                    0D                                    #  INITIALIZE PL TO 0D
028986,001104: 11,2047           02323                                    RINIT                                 #  MPAC EQ RINIT (+29)
028987,001105: 11,2050           41456                           UNIT     PUSH                                  #  UNIT(RI) (+1)         (PL 6D)
028988,001106: 11,2051           53435                           VXV      UNIT                                  
028989,001107: 11,2052           02331                                    VINIT                                 #  MPAC EQ UNIT(RI) X VI (+8)
028990,001108: 11,2053           26674                           STOVL    UN                                    
028991,001109: 11,2054           03472                                    RTARG1                                
028992,001110: 11,2055           50256                           UNIT     DOT                                   #  TEMP=URT.URI (+2)     (PL 0D)
028993,001111: 11,2056           43015                           DAD      CLEAR                                 
028994,001112: 11,2057           03667                                    COZY4                                 
028995,001113: 11,2060           03665                                    NORMSW                                
028996,001114: 11,2061           03667                           STORE    COZY4                                 
028997,001115: 11,2062           43044        INITVEL2           BPL      SET                                   
028998,001116: 11,2063           22105                                    INITVEL3                              #  UN CALCULATED IN LAMBERT
028999,001117: 11,2064           03465                                    NORMSW                                
029000,001118: 
029001,001119:                                                                                                  #  ROTATE RC INTO YC PLANE - SET UNIT NORMAL TO YC
029002,001120: 
029003,001121: 11,2065           41575                           VLOAD    PUSH                                  #                (PL 6D)
029004,001122: 11,2066           02663                                    R2VEC                                 #  RC TO 6D (+29)
029005,001123: 11,2067           63246                           ABVAL    PDVL                                  #  RC TO MPAC, ABVAL(RC) (+29) TO OD(PL 2D)
029006,001124: 11,2070           46206                           PUSH     VPROJ                                 #                (PL 8D)
029007,001125: 11,2071           02674                                    UN                                    
029008,001126: 11,2072           51352                           VSL2     BVSU                                  
029009,001127: 11,2073           74256                           UNIT     VXSC                                  #                (PL 0D)
029010,001128: 11,2074           77772                           VSL1                                           
029011,001129: 11,2075           02663                           STORE    R2VEC                                 
029012,001130: 11,2076           67351                           TLOAD    SLOAD                                 
029013,001131: 11,2077           24007                                    ZEROVEC                               
029014,001132: 11,2100           03617                                    ITCTR                                 
029015,001133: 11,2101           77244                           BPL      VLOAD                                 
029016,001134: 11,2102           22105                                    INITVEL3                              
029017,001135: 11,2103           02663                                    R2VEC                                 
029018,001136: 11,2104           03472                           STORE    RTARG1                                
029019,001137: 11,2105           63345        INITVEL3           DLOAD    PDVL                                  #                                (PL 2D)
029020,001138: 11,2106           26007                                    MUEARTH                               #  POSITIVE VALUE
029021,001139: 11,2107           02663                                    R2VEC                                 
029022,001140: 11,2110           63256                           UNIT     PDVL                                  #  2D = UNIT(R2VEC)              (PL 8D)
029023,001141: 11,2111           02655                                    R1VEC                                 
029024,001142: 11,2112           41456                           UNIT     PUSH                                  #  8D = UNIT(R1VEC)              (PL 14D)
029025,001143: 11,2113           57435                           VXV      VCOMP                                 #  -N = UNIT(R2VEC) X UNIT(R1VEC)
029026,001144: 11,2114           00003                                    2D                                    
029027,001145: 11,2115           77606                           PUSH                                           #                                (PL 20D)
029028,001146: 11,2116           71350                           LXA,1    DLOAD                                 

Page 690

029030,001148: 11,2117           02776                                    RTX1                                  
029031,001149: 11,2120           00023                                    18D                                   
029032,001150: 11,2121           62040                           BMN      INCR,1                                
029033,001151: 11,2122           22124                                    +2                                    
029034,001152: 11,2123           77767                           DEC      -8         B-14                       
029035,001153: 11,2124           67310                           INCR,1   SLOAD                                 
029036,001154: 11,2125           00012                                    10D                                   
029037,001155: 11,2126           00047                                    X1                                    
029038,001156: 11,2127           77230                           BHIZ     VLOAD                                 #                        (PL 14D)
029039,001157: 11,2130           22132                                    +2                                    
029040,001158: 11,2131           41476                           VCOMP    PUSH                                  #                        (PL 20 D)
029041,001159: 11,2132           77775                           VLOAD                                          #                        (PL 14D)
029042,001160: 11,2133           50235                           VXV      DOT                                   #                        (PL 2D)
029043,001161: 11,2134           71244                           BPL      DLOAD                                 #                        (PL 0D)
029044,001162: 11,2135           22137                                    INITVEL4                              
029045,001163: 11,2136           41476                           DCOMP    PUSH                                  #                        (PL 2D)
029046,001164: 11,2137           67154        INITVEL4           LXA,2    SXA,2                                 
029047,001165: 11,2140           00000                                    0D                                    
029048,001166: 11,2141           02672                                    GEOMSGN                               
029049,001167: 
029050,001168:                                                                                                  #  SET INPUTS UP FOR LAMBERT
029051,001169: 
029052,001170: 11,2142           66350                           LXA,1    SSP                                   
029053,001171: 11,2143           02776                                    RTX1                                  
029054,001172: 11,2144           00027                                    ITERCTR                               
029055,001173: 11,2145           00024                                    20D                                   
029056,001174: 
029057,001175:                                                                                                  #   OPERATE THE LAMBERT CONIC ROUTINE (COASTFLT SUBROUTINE)
029058,001176: 
029059,001177: 11,2146           77624                           CALL                                           
029060,001178: 11,2147           25212                                    LAMBERT                               
029061,001179: 
029062,001180:                                                                                                  #  ARRIVED AT SOLUTION IS GOOD ENOUGH ACCORDING TO SLIGHTLY WIDER BOUNDS.
029063,001181: 
029064,001182: 11,2150           77214                           CLEAR    VLOAD                                 
029065,001183: 11,2151           00675                                    GUESSW                                
029066,001184: 11,2152           02744                                    VVEC                                  
029067,001185: 
029068,001186:                                                                                                  #  STORE CALCULATED INITIAL VELOCITY REQUIRED IN VIPRIME
029069,001187: 
029070,001188: 11,2153           16337                           STODL    VIPRIME                               #  INITIAL VELOCITY REQUIRED (+7)
029071,001189: 
029072,001190:                                                                                                  #  IF NUMIT IS ZERO, CONTINUE AT INITVELB, OTHERWISE
029073,001191:                                                                                                  #  SET UP INPUTS FOR ENCKE INTEGRATION (INTEGRVS).
029074,001192: 
029075,001193: 11,2154           02702                                    VTARGTAG                              
029076,001194: 11,2155           45030                           BHIZ     CALL                                  
029077,001195: 11,2156           22233                                    INITVEL7                              
029078,001196: 11,2157           27410                                    INTSTALL                              
029079,001197: 11,2160           43135                           SLOAD    CLEAR                                 
029080,001198: 11,2161           03000                                    RTX2                                  
029081,001199: 11,2162           00263                                    MOONFLAG                              
029082,001200: 11,2163           43030                           BHIZ     SET                                   

Page 691

029084,001202: 11,2164           22166                                    INITVEL5                              
029085,001203: 11,2165           00063                                    MOONFLAG                              
029086,001204: 11,2166           77775        INITVEL5           VLOAD                                          
029087,001205: 11,2167           02323                                    RINIT                                 
029088,001206: 11,2170           02655                           STORE    R1VEC                                 
029089,001207: 11,2171           25535                           STOVL    RCV                                   
029090,001208: 11,2172           02337                                    VIPRIME                               
029091,001209: 11,2173           15543                           STODL    VCV                                   
029092,001210: 11,2174           03610                                    INTIME                                
029093,001211: 11,2175           01517                           STORE    TET                                   
029094,001212: 11,2176           43015                           DAD      CLEAR                                 
029095,001213: 11,2177           03452                                    DELLT4                                
029096,001214: 11,2200           01673                                    INTYPFLG                              
029097,001215: 11,2201           34041                           STCALL   TDEC1                                 
029098,001216: 11,2202           27106                                    INTEGRVS                              
029099,001217: 11,2203           77775                           VLOAD                                          
029100,001218: 11,2204           00025                                    VATT1                                 
029101,001219: 11,2205           02703                           STORE    VTARGET                               
029102,001220: 
029103,001221:                                                                                                  #  IF ITERATION COUNTER (ITCTR) EQ NO. ITERATIONS (NUMIT), CONTINUE AT
029104,001222:                                                                                                  #  INITVELC, OTHERWISE REITERATE LAMBERT AND ENCKE
029105,001223: 
029106,001224: 11,2206           63154                           LXA,2    INCR,2                                
029107,001225: 11,2207           03616                                    ITCTR                                 
029108,001226: 11,2210           00001                                    1D                                    #  INCREMENT ITCTR
029109,001227: 11,2211           55134                           SXA,2    XSU,2                                 
029110,001228: 11,2212           03616                                    ITCTR                                 
029111,001229: 11,2213           02701                                    VTARGTAG                              
029112,001230: 11,2214           46135                           SLOAD    BHIZ                                  #  IF SP(MPAC) EQ 0, CONTINUE AT INITVELC
029113,001231: 11,2215           00050                                    X2                                    
029114,001232: 11,2216           22230                                    INITVEL6                              
029115,001233: 
029116,001234:                                                                                                  #  OFFSET CONIC TARGET VECTOR
029117,001235: 
029118,001236: 11,2217           52375                           VLOAD    VSU                                   
029119,001237: 11,2220           03472                                    RTARG1                                
029120,001238: 11,2221           00017                                    RATT1                                 
029121,001239: 11,2222           77655                           VAD                                            
029122,001240: 11,2223           02663                                    R2VEC                                 
029123,001241: 11,2224           16663                           STODL    R2VEC                                 
029124,001242: 11,2225           03667                                    COZY4                                 
029125,001243: 11,2226           77650                           GOTO                                           
029126,001244: 11,2227           22062                                    INITVEL2                              #  CONTINUE ITERATING AT INITVEL2
029127,001245: 
029128,001246:                                                                                                  #  COMPUTE THE DELTA VELOCITY
029129,001247: 
029130,001248: 11,2230           77775        INITVEL6           VLOAD                                          
029131,001249: 11,2231           02663                                    R2VEC                                 
029132,001250: 11,2232           03472                           STORE    RTARG1                                
029133,001251: 11,2233           52375        INITVEL7           VLOAD    VSU                                   
029134,001252: 11,2234           02337                                    VIPRIME                               
029135,001253: 11,2235           02331                                    VINIT                                 

Page 692

029137,001255: 11,2236           26366                           STOVL    DELVEET3                              #  DELVEET3 = VIPRIME-VINIT (+7)
029138,001256: 11,2237           02703                                    VTARGET                               
029139,001257: 11,2240           03566                           STORE    VTPRIME                               
029140,001258: 11,2241           46135                           SLOAD    BHIZ                                  
029141,001259: 11,2242           03000                                    RTX2                                  
029142,001260: 11,2243           22260                                    INITVELX                              
029143,001261: 11,2244           70575                           VLOAD    VSR2                                  
029144,001262: 11,2245           03566                                    VTPRIME                               
029145,001263: 11,2246           27566                           STOVL    VTPRIME                               
029146,001264: 11,2247           02337                                    VIPRIME                               
029147,001265: 11,2250           77742                           VSR2                                           
029148,001266: 11,2251           26337                           STOVL    VIPRIME                               
029149,001267: 11,2252           03472                                    RTARG1                                
029150,001268: 11,2253           77742                           VSR2                                           
029151,001269: 11,2254           27472                           STOVL    RTARG1                                
029152,001270: 11,2255           02366                                    DELVEET3                              
029153,001271: 11,2256           77742                           VSR2                                           
029154,001272: 11,2257           02366                           STORE    DELVEET3                              
029155,001273: 11,2260           70750        INITVELX           LXA,1    DLOAD*                                
029156,001274: 11,2261           02776                                    RTX1                                  
029157,001275: 11,2262           10003                                    MUTABLE    -2,1                       
029158,001276: 11,2263           41206                           PUSH     DMP                                   
029159,001277: 11,2264           02742                                    R1A                                   
029160,001278: 11,2265           56342                           SR1      DDV                                   
029161,001279: 11,2266           00041                                    R1                                    
029162,001280: 11,2267           17721                           STODL    MU/A                                  
029163,001281: 11,2270           77661                           SR                                             
029164,001282: 11,2271           20607                                    6                                     
029165,001283: 11,2272           03717                           STORE    MUASTEER                              
029166,001284: 11,2273           77201                           SETPD    VLOAD                                 
029167,001285: 11,2274           00001                                    0D                                    
029168,001286: 11,2275           03472                                    RTARG1                                
029169,001287: 11,2276           03444                           STORE    RTARG                                 
029170,001288: 11,2277           52014                           CLEAR    GOTO                                  
029171,001289: 11,2300           01267                                    XDELVFLG                              
029172,001290: 11,2301           03463                                    NORMEX                                
029173,001291: 
029174,001292:                                                                                                  #  ..... END OF INITVEL ROUTINE .....
029175,001293: 

Page 693

029177,001295:                                                                                                  #  ..... MIDGIM .....
029178,001296:                                                                                                  #  MOD NO. 0, BY WILLMAN, SUBROUTINE RENDGUID, LOG P34-P35, P74-P75
029179,001297:                                                                                                  #  REVISION 03, 17 FEB 67
029180,001298: 
029181,001299:                                                                                                  #  IF THE ACTIVE VEHICLE IS DOING THE COMPUTATION, MIDGIM COMPUTES
029182,001300:                                                                                                  #  THE POSITIVE MIDDLE GIMBAL ANGLE OF THE ACTIVE VEHICLE TO THE INPUT
029183,001301:                                                                                                  #  DELTA VELOCITY VECTOR (0D IN PUSH LIST), OTHERWISE
029184,001302:                                                                                                  #  MIDGIM CONVERTS THE INPUT DELTA VELOCITY VECTOR FROM INERTIAL COORDIN-
029185,001303:                                                                                                  #  ATES TO LOCAL VERTICAL COORDINATES OF THE ACTIVE VEHICLE.
029186,001304: 
029187,001305:                                                                                                  #  .. INPUTS ..
029188,001306:                                                                                                  #        NAME    MEANING                                         UNITS/SCALING/MODE
029189,001307:                                                                                                  #        AVFLAG  INT FLAG - 0 IS CSM ACTIVE, 1 IS LEM ACTIVE     BIT
029190,001308:                                                                                                  #        RINIT   ACTIVE VEHICLE RADIUS VECTOR                    METERS/CSEC (+7) VT
029191,001309:                                                                                                  #        VINIT   ACTIVE VEHICLE VELOCITY VECTOR                  METERS/CSEC (+7) VT
029192,001310:                                                                                                  #        0D(PL)  ACTIVE VEHICLE DELTA VELOCITY VECTOR            METERS/CSEC (+7) VT
029193,001311: 
029194,001312:                                                                                                  #  .. OUTPUTS ..
029195,001313:                                                                                                  #     NAME       MEANING                                         UNITS/SCALING/MODE
029196,001314:                                                                                                  #     +MGA       + MIDDLE GIMBAL ANGLE                           REVOLUTIONS (+0) DP
029197,001315:                                                                                                  #     DELVLVC    DELTA VELOCITY VECTOR IN LV COORD.              METERS/CSEC (+7) VT
029198,001316:                                                                                                  #     MGLVFLAG   INT FLAG - 0 IS +MGA COMPUTED, 1 IS DELVLVC COMP.   -   BIT
029199,001317: 
029200,001318:                                                                                                  #  .. CALLING SEQUENCE ..
029201,001319:                                                                                                  #        L       CALL
029202,001320:                                                                                                  #        L+1             MIDGIM
029203,001321:                                                                                                  #        L+2     (RETURN - ALWAYS)
029204,001322: 
029205,001323:                                                                                                  #  .. NO SUBROUTINES CALLED ..
029206,001324: 
029207,001325:                                                                                                  #  .. DEBRIS - ERASEABLE TEMPORARY USAGE
029208,001326:                                                                                                  #        A,Q,L, PUSH LIST, MPAC.
029209,001327: 
029210,001328:                                                                                                  #  .. ALARMS - NONE ..
029211,001329: 

Page 694

029213,001331:                                                                                                  #  MIDDLE GIMBAL ANGLE COMPUTATION.
029214,001332: 
029215,001333: 06,2000                                           SETLOC   MIDDGIM                               
029216,001334: 06,2000                                           BANK                                           
029217,001335: 
029218,001336: 06,3723                                           COUNT*   $$/MIDG                               
029219,001337: 
029220,001338: 06,3723           20000 00000  HALFREV            2DEC     1          B-1                        
029221,001339: 
029222,001340: 06,3725           53575        GET+MGA            VLOAD    UNIT                                  #  (PL 0D) V (+7) TO MPAC, UNITIZE UV (+1)
029223,001341: 06,3726           77656                           UNIT                                           
029224,001342: 06,3727           72441                           DOT      SL1                                   #  DOT UV WITH Y(STABLE MEMBER) AND RESCALE
029225,001343: 06,3730           01742                                    REFSMMAT   +6                         #  FROM +2 TO +1 FOR ASIN ROUTINE
029226,001344: 06,3731           51136                           ARCSIN   BPL                                   
029227,001345: 06,3732           15736                                    SETMGA                                
029228,001346: 06,3733           43215                           DAD      DAD                                   #  CONVERT -MGA TO +MGA BY
029229,001347: 06,3734           15724                                    HALFREV                               #  ADDING ONE REVOLUTION
029230,001348: 06,3735           15724                                    HALFREV                               
029231,001349: 06,3736           02253        SETMGA             STORE    +MGA                                  
029232,001350: 06,3737           43414                           CLR      RVQ                                   #  CLEAR MGLVFLAG TO INDICATE +MGA CALC
029233,001351: 06,3740           02675                                    MGLVFLAG                              #  AND EXIT
029234,001352: 06,3741           53575        GET.LVC            VLOAD    UNIT                                  #  (PL 6D) R (+29) IN MPAC, UNITIZE UR
029235,001353: 06,3742           02323                                    RINIT                                 
029236,001354: 06,3743           77676                           VCOMP                                          #  U(-R)
029237,001355: 06,3744           00023                           STORE    18D                                   #  U(-R) TO 18D
029238,001356: 06,3745           53435                           VXV      UNIT                                  #  U(-R)*V EQ V*U(R), U(V*R)
029239,001357: 06,3746           02331                                    VINIT                                 
029240,001358: 06,3747           00015                           STORE    12D                                   #  U(V*R) TO 12D
029241,001359: 06,3750           53435                           VXV      UNIT                                  #  U(V*R)*U(-R), U((V*R)*(-R))
029242,001360: 06,3751           00023                                    18D                                   
029243,001361: 06,3752           24007                           STOVL    6D                                    #  TRANSFORMATION MATRIX IS IN 6D (+1)
029244,001362: 06,3753           00001                                    0D                                    #  DELTA V (+7) IN 0D
029245,001363: 06,3754           76521                           MXV      VSL1                                  #  CONVERT FROM INER COOR TO LV COOR (+8)
029246,001364: 06,3755           00007                                    6D                                    #  AND SCALE +7 IN MPAC
029247,001365: 06,3756           03434                           STORE    DELVLVC                               #  STORE IN DELVLVC (+7)
029248,001366: 06,3757           43414                           SET      RVQ                                   #  SET MGLVFLAG TO INDICATE LVC CALC
029249,001367: 06,3760           02475                                    MGLVFLAG                              #  AND EXIT
029250,001368: 
029251,001369:                                                                                                  #  ..... END OF MIDGIM ROUTINE .....
029252,001370: 

Page 695

029254,001372: 10,2000                                           BANK     10                                    
029255,001373: 10,2000                                           SETLOC   SLCTMU                                
029256,001374: 10,2000                                           BANK                                           
029257,001375: 10,2000                                           COUNT*   $$/MIDG                               
029258,001376: 
029259,001377: 10,2000           77160        SELECTMU           AXC,1    AXT,2                                 
029260,001378: 10,2001           00002                                    2D                                    
029261,001379: 10,2002           00000                                    0D                                    
029262,001380: 10,2003           77614                           BOFF                                           
029263,001381: 10,2004           04343                                    CMOONFLG                              
029264,001382: 10,2005           20011                                    SETMUER                               
029265,001383: 10,2006           77160                           AXC,1    AXT,2                                 
029266,001384: 10,2007           00012                                    10D                                   
029267,001385: 10,2010           00002                                    2D                                    
029268,001386: 10,2011           66143        SETMUER            DLOAD*   SXA,1                                 
029269,001387: 10,2012           10011                                    MUTABLE    +4,1                       
029270,001388: 10,2013           02776                                    RTX1                                  
029271,001389: 10,2014           22317                           STODL*   RTSR1/MU                              
029272,001390: 10,2015           10003                                    MUTABLE    -2,1                       
029273,001391: 10,2016           54214                           BOFF     SR                                    
029274,001392: 10,2017           04343                                    CMOONFLG                              
029275,001393: 10,2020           20022                                    RTRNMU                                
029276,001394: 10,2021           20607                                    6D                                    
029277,001395: 10,2022           02321        RTRNMU             STORE    RTMU                                  
029278,001396: 10,2023           43134                           SXA,2    CLEAR                                 
029279,001397: 10,2024           02777                                    RTX2                                  
029280,001398: 10,2025           01271                                    FINALFLG                              
029281,001399: 10,2026           77650                           GOTO                                           
029282,001400: 10,2027           73515                                    VN1645                                
029283,001401: 

Page 696

029285,001403:                                                                                                  #  ..... PERIAPO .....
029286,001404:                                                                                                  #  MOD NO -1                     LOG SECTION - P34-P35, P74-P75
029287,001405:                                                                                                  #  MOD BY WHITE.P                DATE 18 JAN 68
029288,001406: 
029289,001407:                                                                                                  #  FUNCTIONAL DESCRIPTION
029290,001408:                                                                                                  #        THIS SUBROUTINE COMPUTES THE TWO BODY APOCENTER AND PERICENTER
029291,001409:                                                                                                  #        ALTITUDES GIVEN THE POSITION AND VELOCITY VECTORS FOR A POINT ON
029292,001410:                                                                                                  #        THE TRAJECTORY AND THE PRIMARY BODY.
029293,001411: 
029294,001412:                                                                                                  #        SETRAD IS CALLED TO DETERMINE THE RADIUS OF THE PRIMARY BODY.
029295,001413: 
029296,001414:                                                                                                  #        APSIDES IS CALLED TO SOLVE FOR THE TWO BODY RADII OF APOCENTER AND
029297,001415:                                                                                                  #        PERICENTER AND THE ECCENTRICITY OF THE TRAJECTORY.
029298,001416: 
029299,001417:                                                                                                  #  CALLING SEQUENCE
029300,001418:                                                                                                  #        L       CALL
029301,001419:                                                                                                  #        L+1             PERIAPO
029302,001420:                                                                                                  #        L+2     (RETURN - ALWAYS)
029303,001421: 
029304,001422:                                                                                                  #  INPUT
029305,001423:                                                                                                  #        (1)     RVEC    POSITION VECTOR IN METERS
029306,001424:                                                                                                  #                        SCALE FACTOR - EARTH +29, MOON +27
029307,001425:                                                                                                  #        (2)     VVEC    VELOCITY VECTOR IN METERS/CENTISECOND
029308,001426:                                                                                                  #                        SCALE FACTOR - EARTH +7, MOON +5
029309,001427:                                                                                                  #        (3)     X1      PRIMARY BODY INDICATOR
029310,001428:                                                                                                  #                        EARTH -2, MOON -10
029311,001429: 
029312,001430:                                                                                                  #  OUTPUT
029313,001431:                                                                                                  #        (1)     2D      APOCENTER RADIUS IN METERS
029314,001432:                                                                                                  #                        SCALE FACTOR - EARTH +29, MOON +27
029315,001433:                                                                                                  #        (2)     4D      APOCENTER ALTITUDE IN METERS
029316,001434:                                                                                                  #                        SCALE FACTOR - EARTH +29, MOON P27
029317,001435:                                                                                                  #        (3)     6D      PERICENTER RADIUS IN METERS
029318,001436:                                                                                                  #                        SCALE FACTOR - EARTH +29, MOON +27
029319,001437:                                                                                                  #        (4)     8D      PERICENTER ALTITUDE IN METERS
029320,001438:                                                                                                  #                        SCALE FACTOR - EARTH +29, MOON +27
029321,001439:                                                                                                  #        (5)     ECC     ECCENTRICITY OF CONIC TRAJECTORY
029322,001440:                                                                                                  #                        SCALE FACTOR - +3
029323,001441:                                                                                                  #        (6)     XXXALT  RADIUS OF THE PRIMARY BODY IN METERS
029324,001442:                                                                                                  #                        SCALE FACTOR - EARTH +29, MOON +27
029325,001443:                                                                                                  #        (7)     PUSHLOC EQUALS 10D
029326,001444: 
029327,001445:                                                                                                  #  SUBROUTINES USED
029328,001446:                                                                                                  #        SETRAD

Page 697

029330,001448:                                                                                                  #        APSIDES
029331,001449: 
029332,001450: 23,2000                                           SETLOC   APOPERI                               
029333,001451: 23,2000                                           BANK                                           
029334,001452: 
029335,001453: 23,2337                                           COUNT*   $$/PERAP                              
029336,001454: 
029337,001455: 23,2337           00302 17755  RPAD               2DEC     6373338    B-29                       #  STANDARD RADIUS OF PAD 37-B.
029338,001456:                                                                                                  #  = 20 909 901.57 FT
029339,001457: 
029340,001458: 23,2341           53754        PERIAPO1           LXA,2    VSR*                                  
029341,001459: 23,2342           02777                                    RTX2                                  
029342,001460: 23,2343           57176                                    0,2                                   
029343,001461: 23,2344           26744                           STOVL    VVEC                                  
029344,001462: 23,2345           53750                           LXA,1    VSR*                                  
029345,001463: 23,2346           02776                                    RTX1                                  
029346,001464: 23,2347           57176                                    0,2                                   
029347,001465: 23,2350           02655                           STORE    RVEC                                  
029348,001466: 23,2351           45020        PERIAPO            STQ      CALL                                  
029349,001467: 23,2352           03463                                    NORMEX                                
029350,001468: 23,2353           46367                                    SETRAD                                
029351,001469: 23,2354           37671                           STCALL   XXXALT                                
029352,001470: 23,2355           25704                                    APSIDES                               
029353,001471: 23,2356           41401                           SETPD    PUSH                                  #  2D = APOCENTER RADIUS         B29 OR B27
029354,001472: 23,2357           00003                                    2D                                    
029355,001473: 23,2360           65225                           DSU      PDDL                                  #  4D = APOGEE ALTITUDE          B29 OR B27
029356,001474: 23,2361           03671                                    XXXALT                                
029357,001475: 23,2362           00001                                    0D                                    
029358,001476: 23,2363           45206                           PUSH     DSU                                   #  6D = PERICENTER RADIUS        B29 OR B27
029359,001477: 23,2364           03671                                    XXXALT                                
029360,001478: 23,2365           52006                           PUSH     GOTO                                  #  8D = PERIGEE ALTITUDE         B29 OR B27
029361,001479: 23,2366           03463                                    NORMEX                                
029362,001480: 

Page 698

029364,001482:                                                                                                  #  SETRAD
029365,001483: 
029366,001484: 23,2367           41545        SETRAD             DLOAD    PUSH                                  
029367,001485: 23,2370           06340                                    RPAD                                  
029368,001486: 23,2371           63130                           SXA,1    INCR,2                                
029369,001487: 23,2372           00047                                    X2                                    
029370,001488: 23,2373           00002                                    2D                                    
029371,001489: 23,2374           46135                           SLOAD    BHIZ                                  
029372,001490: 23,2375           00050                                    X2                                    
029373,001491: 23,2376           46402                                    SETRADX                               
029374,001492: 23,2377           51575                           VLOAD    ABVAL                                 
029375,001493: 23,2400           02023                                    RLS                                   
029376,001494: 23,2401           77725                           PDDL                                           
029377,001495: 23,2402           43545        SETRADX            DLOAD    RVQ                                   
029378,001496: 

Page 699

029380,001498:                                                                                                  #  PRECSET
029381,001499: 
029382,001500: 23,2403           77620        PRECSET            STQ                                            
029383,001501: 23,2404           03463                                    NORMEX                                
029384,001502: 23,2405           37574                           STCALL   TDEC2                                 
029385,001503: 23,2406           27056                                    LEMPREC                               
029386,001504: 23,2407           77624                           CALL                                           
029387,001505: 23,2410           46421                                    LEMSTORE                              
029388,001506: 23,2411           77745                           DLOAD                                          
029389,001507: 23,2412           03574                                    TDEC2                                 
029390,001508: 23,2413           34041                           STCALL   TDEC1                                 
029391,001509: 23,2414           27042                                    CSMPREC                               
029392,001510: 23,2415           77624                           CALL                                           
029393,001511: 23,2416           46431                                    CSMSTORE                              
029394,001512: 23,2417           77650                           GOTO                                           
029395,001513: 23,2420           03463                                    NORMEX                                
029396,001514: 23,2421           43175        LEMSTORE           VLOAD    BOFF                                  
029397,001515: 23,2422           00001                                    RATT                                  
029398,001516: 23,2423           01352                                    AVFLAG                                
029399,001517: 23,2424           46435                                    PASSIVE                               
029400,001518: 23,2425           27536        ACTIVE             STOVL    RACT3                                 
029401,001519: 23,2426           00007                                    VATT                                  
029402,001520: 23,2427           03544                           STORE    VACT3                                 
029403,001521: 23,2430           77616                           RVQ                                            
029404,001522: 23,2431           43175        CSMSTORE           VLOAD    BOFF                                  
029405,001523: 23,2432           00001                                    RATT                                  
029406,001524: 23,2433           01352                                    AVFLAG                                
029407,001525: 23,2434           46425                                    ACTIVE                                
029408,001526: 23,2435           27552        PASSIVE            STOVL    RPASS3                                
029409,001527: 23,2436           00007                                    VATT                                  
029410,001528: 23,2437           03560                           STORE    VPASS3                                
029411,001529: 23,2440           77616                           RVQ                                            
029412,001530: 

Page 700

029414,001532:                                                                                                  #  VECSHIFT
029415,001533: 
029416,001534: 23,2441           53754        VECSHIFT           LXA,2    VSR*                                  
029417,001535: 23,2442           02777                                    RTX2                                  
029418,001536: 23,2443           57176                                    0,2                                   
029419,001537: 23,2444           63350                           LXA,1    PDVL                                  
029420,001538: 23,2445           02776                                    RTX1                                  
029421,001539: 23,2446           63257                           VSR*     PDVL                                  
029422,001540: 23,2447           57176                                    0,2                                   
029423,001541: 23,2450           77616                           RVQ                                            
029424,001542: 

Page 701

029426,001544:                                                                                                  #  SHIFTR1
029427,001545: 
029428,001546: 23,2451           53754        SHIFTR1            LXA,2    SL*                                   
029429,001547: 23,2452           02777                                    RTX2                                  
029430,001548: 23,2453           57576                                    0,2                                   
029431,001549: 23,2454           77616                           RVQ                                            
029432,001550: 

Page 702

029434,001552:                                                                                                  #  PROGRAM DESCRIPTION
029435,001553: 
029436,001554:                                                                                                  #  SUBROUTINE NAME       R36     OUT-OF-PLANE RENDEZVOUS ROUTINE
029437,001555:                                                                                                  #  MOD NO. 0             DATE 22 DECEMBER 67
029438,001556:                                                                                                  #  MOD BY N.M.NEVILLE    LOG SECTION EXTENDED VERBS
029439,001557:                                                                                                  #  FUNCTIONAL DESCRIPTION
029440,001558: 
029441,001559:                                                                                                  #  TO DISPLAY AT ASTRONAUT REQUEST LGC CALCULATED RENDEZVOUS
029442,001560:                                                                                                  #  OUT-OF-PLANE PARAMETERS (Y, YDOT, PSI).  (REQUESTED BY DSKY).
029443,001561: 
029444,001562:                                                                                                  #  CALLING SEQUENCE
029445,001563:                                                                                                  #        ASTRONAUT REQUEST THROUGH DSKY V 90 E
029446,001564: 
029447,001565:                                                                                                  #  SUBROUTINES CALLED
029448,001566:                                                                                                  #        EXDSPRET
029449,001567:                                                                                                  #        GOMARKF
029450,001568:                                                                                                  #        CSMPREC
029451,001569:                                                                                                  #        LEMPREC
029452,001570:                                                                                                  #        SGNAGREE
029453,001571:                                                                                                  #        LOADTIME
029454,001572: 
029455,001573:                                                                                                  #  NORMAL EXIT MODES
029456,001574:                                                                                                  #        ASTRONAUT REQUEST THROUGH DSKY TO TERMINATE PROGRAM V 34 E
029457,001575: 
029458,001576:                                                                                                  #  ALARM OR ABORT EXIT MODES
029459,001577:                                                                                                  #        NONE
029460,001578: 
029461,001579:                                                                                                  #  OUTPUT
029462,001580:                                                                                                  #        DECIMAL DISPLAY OF TIME, Y, YDOT AND PSI
029463,001581: 
029464,001582:                                                                                                  #        DISPLAYED VALUES Y, YDOT, AND PSI, ARE STORED IN ERASABLE
029465,001583:                                                                                                  #        REGISTERS RANGE, RRATE AND RTHETA RESPECTIVELY.
029466,001584: 
029467,001585:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED
029468,001586:                                                                                                  #        CSM AND LEM STATE VECTORS
029469,001587: 
029470,001588:                                                                                                  #  DEBRIS
029471,001589:                                                                                                  #        CENTRALS A,Q,L
029472,001590:                                                                                                  #        OTHER THOSE USED BY THE ABOVE LISTED SUBROUTINES
029473,001591: 
029474,001592: 20,2115                                           BANK     20                                    
029475,001593: 04,2000                                           SETLOC   R36LM                                 
029476,001594: 04,2000                                           BANK                                           

Page 703

029478,001596: 04,2642  E7,1441                                  EBANK=   TIG                                   
029479,001597: 04,2642                                           COUNT*   $$/R36                                
029480,001598: 
029481,001599: 04,2642           00006        R36                EXTEND                                         
029482,001600: 04,2643           31442                           DCA      TIG                                   #  SET TIME-OF-EVENT TO TIG FOR NOMINAL
029483,001601: 04,2644           53051                           DXCH     DSPTEMX                               #  DISPLAY
029484,001602: 04,2645           32755                           CAF      V06N16N                               
029485,001603: 04,2646           04616                           TC       BANKCALL                              
029486,001604: 04,2647           20334                           CADR     GOMARKF                               
029487,001605: 04,2650           15472                           TCF      ENDEXT                                #  TERMINATE
029488,001606: 04,2651           12653                           TCF      +2                                    #  PROCEED
029489,001607: 04,2652           12645                           TCF      -5                                    #  RECYCLE FOR ASTRONAUT INPUT TIME
029490,001608: 04,2653           06042                           TC       INTPRET                               
029491,001609: 04,2654           53145                           DLOAD    BZE                                   
029492,001610: 04,2655           01051                                    DSPTEMX                               
029493,001611: 04,2656           10752                                    GETNOW                                #  ASTOR-LOADED ZERO, GET PRES TIME
029494,001612: 04,2657           34041        R36INT             STCALL   TDEC1                                 
029495,001613: 04,2660           27042                                    OTHPREC                               
029496,001614: 04,2661           63375                           VLOAD    PDVL                                  
029497,001615: 04,2662           00007                                    VATT                                  
029498,001616: 04,2663           00001                                    RATT                                  #  -
029499,001617: 04,2664           02207                           STORE    RPASS36                               #  R
029500,001618: 04,2665           63256                           UNIT     PDVL                                  #  P
029501,001619: 04,2666           53435                           VXV      UNIT                                  #  -
029502,001620: 04,2667           77626                           STADR                                          
029503,001621: 04,2670           61562                           STODL    UNP36                                 #  U
029504,001622: 04,2671           00015                                    TAT                                   
029505,001623: 04,2672           34041                           STCALL   TDEC1                                 
029506,001624: 04,2673           27056                                    THISPREC                              
029507,001625: 04,2674           63375                           VLOAD    PDVL                                  #                    -
029508,001626: 04,2675           00007                                    VATT                                  #  VELOCITY VECTOR   V   00D
029509,001627: 04,2676           00001                                    RATT                                  #                     A
029510,001628: 04,2677           41406                           PUSH     PUSH                                  #  POSITION VECTOR   R   IN  06D AND 12D
029511,001629: 04,2700           63245                           BVSU     PDVL                                  #                     A  -   -
029512,001630: 04,2701           02207                                    RPASS36                               #  LINE OF SIGHT VECTOR  R - R       12D
029513,001631: 04,2702           72441                           DOT      SL1                                   #                         P   A
029514,001632: 04,2703           02215                                    UNP36                                 #      -   -
029515,001633: 04,2704           26201                           STOVL    RANGE                                 #  Y = U . R
029516,001634: 04,2705           00001                                    00D                                   #           A
029517,001635: 04,2706           72441                           DOT      SL1                                   
029518,001636: 04,2707           02215                                    UNP36                                 #  .   -   -
029519,001637: 04,2710           26203                           STOVL    RRATE                                 #  Y = U . V
029520,001638: 04,2711           00007                                    06D                                   #  -        A  -
029521,001639: 04,2712           41456                           UNIT     PUSH                                  #  U  = UNIT ( R  )              18D
029522,001640: 04,2713           47235                           VXV      VXV                                   #   RA          A
029523,001641: 04,2714           00001                                    00D                                   #   -    -     -     -
029524,001642: 04,2715           00023                                    18D                                   #  (U  X V ) X U   = U
029525,001643: 04,2716           53552                           VSL2     UNIT                                  #    RA   A     RA    A
029526,001644: 04,2717           77656                           UNIT                                           
029527,001645: 04,2720           24001                           STOVL    00D                                   #  UNIT HORIZONTAL IN FORWARD DIR. 00D

Page 704

029529,001647: 04,2721           00023                                    18D                                   
029530,001648: 04,2722           74241                           DOT      VXSC                                  #  -
029531,001649: 04,2723           00015                                    12D                                   #  U
029532,001650: 04,2724           77752                           VSL2                                           #   L
029533,001651: 04,2725           53445                           BVSU     UNIT                                  
029534,001652: 04,2726           77656                           UNIT                                           
029535,001653: 04,2727           50206                           PUSH     DOT                                   #  LOS PROJECTED INTO HORIZONTAL  12D
029536,001654: 04,2730           00001                                    00D                                   #  PLANE
029537,001655: 04,2731           65552                           SL1      ARCCOS                                #               -   -
029538,001656: 04,2732           26205                           STOVL    RTHETA                                #  PSI = ARCCOS(U . U )
029539,001657: 04,2733           50235                           VXV      DOT                                   #                A   L
029540,001658: 04,2734           00001                                    00D                                   
029541,001659: 04,2735           71244                           BPL      DLOAD                                 
029542,001660: 04,2736           10743                                    R36TAG2                               
029543,001661: 04,2737           24020                                    LODPMAX                               
029544,001662: 04,2740           77625                           DSU                                            
029545,001663: 04,2741           02205                                    RTHETA                                
029546,001664: 04,2742           02205                           STORE    RTHETA                                
029547,001665: 04,2743           77776        R36TAG2            EXIT                                           
029548,001666: 04,2744           32756                           CAF      V06N90N                               #  DISPLAY Y, YDOT, AND PSI
029549,001667: 04,2745           04616                           TC       BANKCALL                              
029550,001668: 04,2746           20334                           CADR     GOMARKF                               
029551,001669: 04,2747           15472                           TCF      ENDEXT                                #  TERMINATE
029552,001670: 04,2750           15472                           TCF      ENDEXT                                #  PROCEED, END OF PROGRAM
029553,001671: 04,2751           12642                           TCF      R36                                   #  RECYCLE, TIG OR ASTRO-OPTION
029554,001672: 04,2752           52034        GETNOW             RTB      GOTO                                  #  ASTRO-SELECTED PRESENT TIME
029555,001673: 04,2753           21574                                    LOADTIME                              
029556,001674: 04,2754           10657                                    R36INT                                
029557,001675: 04,2755           01420        V06N16N            VN       00616                                 
029558,001676: 04,2756           01532        V06N90N            VN       00690                                 

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