Source Code

These source-code files are part of a reconstructed copy of Luminary 69/2, the flown, final release of the Apollo 10 Lunar Module (LM) Apollo Guidance Computer (AGC) software.

The reconstruction is based on the source code of Luminary 69 — i.e., the initial, unflown version, "revision 0" — of which a contemporary listing was available. The code was then updated by incorporating the differences between Luminary 69 and Luminary 69/2, known from other contemporary documentation. The only such difference is the implementation in Luminary 69/2 of the "R-2 Lunar Potential Model", the source code for which was taken from program Luminary 99/1 (Apollo 11 LM), of which a contemporary listing was also available. Finally, the now-reconstructed Luminary 69/2 was then validated by assembling it to executable form and verifying that its memory banks had the correct checksums, known from still other contemporary documentation.

Note that page numbers in the reconstructed code match those in the original Luminary 69 program listing, or in the ORBITAL INTEGRATION log section, in Luminary 99/1. Page numbers would certainly differ somewhat in a contemporary Luminary 69/2 listing. Moreover, annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change in Luminary 69/2 relative to Luminary 69. Here's a guide to the Apollo documentation referenced in those annotations:
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.

033130,000002:                                                                                                  ## Copyright:   Public domain.
033131,000003:                                                                                                  ## Filename:    P40-P47.agc
033132,000004:                                                                                                  ## Purpose:     A section of LUM69 revision 2.
033133,000005:                                                                                                  ##              It is part of the reconstructed source code for the flown
033134,000006:                                                                                                  ##              version of the flight software for the Lunar Module's (LM)
033135,000007:                                                                                                  ##              Apollo Guidance Computer (AGC) for Apollo 10. The code has
033136,000008:                                                                                                  ##              been recreated from a copy of Luminary revsion 069, using
033137,000009:                                                                                                  ##              changes present in Luminary 099 which were described in
033138,000010:                                                                                                  ##              Luminary memos 75 and 78. The code has been adapted such
033139,000011:                                                                                                  ##              that the resulting bugger words exactly match those specified
033140,000012:                                                                                                  ##              for LUM69 revision 2 in NASA drawing 2021152B, which gives
033141,000013:                                                                                                  ##              relatively high confidence that the reconstruction is correct.
033142,000014:                                                                                                  ## Reference:   pp. 759-788
033143,000015:                                                                                                  ## Assembler:   yaYUL
033144,000016:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
033145,000017:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
033146,000018:                                                                                                  ## Mod history: 2019-07-27 MAS  Created from Luminary 69.
033147,000019:                                                                                                  ##              2021-05-30 ABS  Aligned TCF BURNBABY and TCF B*RNB*B* to field
033148,000020:                                                                                                  ##                              boundaries and surrounding comments to match.
033149,000021:                                                                                                  ##                              TGDCALC -> TGOCALC
033150,000022: 
033151,000023: 

Page 759

033153,000025:                                                                                                  #  PROGRAM DESCRIPTION  P40BOTH    DECEMBER 22, 1966
033154,000026:                                                                                                  #  MOD 03 BY PETER ADLER           MARCH 3, 1967
033155,000027:                                                                                                  #  CALLED VIA JOB FROM V37E
033156,000028: 
033157,000029:                                                                                                  #  FUNCTIONAL DESCRIPTION
033158,000030: 
033159,000031:                                                                                                  #           1)  TO COMPUTE A PREFERRED IMU ORIENTATION AND A PREFERRED VEHICLE ATTITUDE FOR A LM DPS
033160,000032:                                                                                                  #               THRUSTING MANEUVER.
033161,000033: 

(There is no item #2 in the original program listing.)

033163,000035: 
033164,000036:                                                                                                  #           3)  TO DO THE VEHICLE MANEUVER TO THE THRUSTING ATTITUDE.
033165,000037: 
033166,000038:                                                                                                  #           4)  TO CONTROL THE PGNCS DURING COUNTDOWN, IGNITION, THRUSTING, AND THRUST TERMINATION OF A
033167,000039:                                                                                                  #               PGNCS CONTROLLED DPS MANEUVER.
033168,000040: 
033169,000041:                                                                                                  #           5)  IN POSTBURN--ZERO RENDEZVOUS COUNTER, MAINTAIN VG CALCULATIONS FOR POSSIBLE RCS MANEUVER,
033170,000042:                                                                                                  #                            SET MAXIMUM DEADBAND IN DAP, RESET STEERLAW CSTEER TO ZERO.
033171,000043: 
033172,000044:                                                                                                  #           NOTE:  P42, WHICH IS IN THIS LOG SECTION, DOES THE SAME FOR AN APS BURN, AND P41 DOES 1-3 FOR
033173,000045:                                                                                                  #                  RCS PLUS DISPLAYS PARAMETERS FOR MANUAL CONTROL.
033174,000046: 
033175,000047:                                                                                                  #  SUBROUTINES USED
033176,000048: 
033177,000049:                                                                                                  #           R02      IMU STATUS CHECK
033178,000050:                                                                                                  #           S40.1    COMPUTATION OF THRUST DIRECTION
033179,000051:                                                                                                  #           S40.13   LENGTH OF BURN
033180,000052:                                                                                                  #           S40.2,3  PREFERRED IMU ORIENATTION
033181,000053:                                                                                                  #           S40.8    X PRODUCT STEERING
033182,000054:                                                                                                  #           S40.9    LAMBERT VTOGAIN
033183,000055:                                                                                                  #           R60LEM   ATTITUDE MANEUVER
033184,000056:                                                                                                  #           LEMPREC  EXTRAPOLATE STATE VECTOR
033185,000057:                                                                                                  #           PREREAD  AVERAGE G, SERVICER
033186,000058:                                                                                                  #           ALLCOAST DAP COASTING INITIALIZATION
033187,000059:                                                                                                  #           CLOKTASK ERGO CLOCKJOB--COUNT DOWN
033188,000060:                                                                                                  #           PHASCHNG, INTPRET, FLAGUP, FLAGDOWN, WAITLIST, LONGCALL, GOFLASH, GOFLASHR, GOPERF1, ALARM,
033189,000061:                                                                                                  #           PRIOLARM, GOTOPOOH, ENDOFJOB, BANKCALL, SETMAXDB, SETMINDB, CHECKMM, FLATOUT, OUTFLAT,
033190,000062:                                                                                                  #           KILLTASK, SGNAGREE, TPAGREE, ETC.
033191,000063: 
033192,000064:                                                                                                  #  RESTARTS VIA GROUP 4
033193,000065: 
033194,000066:                                                                                                  #  DISPLAYS
033195,000067: 
033196,000068:                                                                                                  #           V50N25  203 A/P TO PGNCS, AUTO THROTTLE MODE, AUTO ATTITUDE CONTROL
033197,000069:                                                                                                  #           V06N40  TTI, VG, DELTAVM (DISPLAYED ONCE/SECOND BY CLOKTASK)
033198,000070:                                                                                                  #           V50N99  PLEASE PERFORM ENGINE ON ENABLE
033199,000071:                                                                                                  #           V06N40  TG (TIME TO GO TO CUTOFF), VG, DELTAVM--ONCE/SECOND
033200,000072:                                                                                                  #           V16N40  FINAL VALUES OF TG, VG, DELTAVM
033201,000073:                                                                                                  #           V16N85  COMP OF VG (BODY AXES) FOR POSS. RCS MANUAL MANEUVER
033202,000074:                                                                                                  #           V05N09  POSSIBLE ALARMS
033203,000075:                                                                                                  #           V50N07  PLEASE SELECT P00
033204,000076: 

Page 760

033206,000078:                                                                                                  #           VIA R30
033207,000079: 
033208,000080:                                                                                                  #           V06N44  HAPO, PERI, TFF
033209,000081:                                                                                                  #           V06N35  TIME TO PERIGEE, HMS
033210,000082: 
033211,000083:                                                                                                  #  ALARM OR ABORT EXIT MODES
033212,000084: 
033213,000085:                                                                                                  #           PROGRAM ALARM, FLASHING DISPLAY OF ALARM CODE 1706 IF P40 SELECTED WITH DESCENT UNIT STAGED.
033214,000086:                                                                                                  #           V34E (TERMINATE) IS THE ONLY RESPONSE ACCEPTED. TC GOTOPOOH.
033215,000087: 
033216,000088:                                                                                                  #           PROGRAM ALARM, FLASH CODE 1703:  TIG LESS THAN 45 SECS AWAY.  V34E=  GOTOPOOH OR V33E=  SLIP
033217,000089:                                                                                                  #           TIG BY 45 SECS.
033218,000090: 
033219,000091:                                                                                                  #  ERASABLE INITIALIZATION
033220,000092:                                                                                                  #  DEBRIS
033221,000093:                                                                                                  #  OUTPUT
033222,000094: 
033223,000095:                                                                                                  #           SEE SUBROUTINES E.G.:  S40.1, S40.2,3, S40.13, S40.8, S40.9, TRIMGIMB
033224,000096:                                                                                                  #           XDELVFLG = 1 FOR EXT DELV COMPUTATION
033225,000097:                                                                                                  #                    = 0 FOR AIMPT (LAMBERT) COMP
033226,000098: 
033227,000099: 27,2271                                           COUNT*   $$/P40                                
033228,000100: 27,2271  E7,1453                                  EBANK=   WHICH                                 
033229,000101: 
033230,000102: 36,3147                                           BANK     36                                    
033231,000103: 36,2000                                           SETLOC   P40S                                  
033232,000104: 36,2000                                           BANK                                           
033233,000105: 
033234,000106: 36,3147           05353        P40LM              TC       PHASCHNG                              
033235,000107: 36,3150           04024                           OCT      04024                                 
033236,000108: 
033237,000109: 36,3151           33131                           CAF      P40ADRES                              #  INITIALIZATION FOR BURNBABY.
033238,000110: 36,3152           55453                           TS       WHICH                                 
033239,000111: 
033240,000112: 36,3153           30106                           CA       FLGWRD10                              
033241,000113: 36,3154           74737                           MASK     APSFLBIT                              
033242,000114: 36,3155           10000                           CCS      A                                     
033243,000115: 36,3156           13722                           TCF      P40ALM                                
033244,000116: 36,3157           04616                           TC       BANKCALL                              #  GO DO IMU STATUS CHECK ROUTINE.
033245,000117: 36,3160           11175                           CADR     R02BOTH                               
033246,000118: 
033247,000119: 36,3161           40111                           CS       DAPBOOLS                              #  INITIALIZE DVMON
033248,000120: 36,3162           74737                           MASK     CSMDOCKD                              
033249,000121: 36,3163           10000                           CCS      A                                     
033250,000122: 36,3164           32020                           CAF      THRESH1                               
033251,000123: 36,3165           62021                           AD       THRESH3                               
033252,000124: 36,3166           55251                           TS       DVTHRUSH                              
033253,000125: 36,3167           34751                           CAF      FOUR                                  
033254,000126: 36,3170           55513                           TS       DVCNTR                                
033255,000127: 

Page 761

033257,000129: 36,3171           06036                           TC       INTPRET                               #  LOAD CONSTANTS FOR DPS BURN
033258,000130: 36,3172           43175                           VLOAD    CLEAR                                 #  LOAD F, MDOT, TDECAY
033259,000131: 36,3173           34001                                    FDPS                                  
033260,000132: 36,3174           02663                                    NOTHROTL                              
033261,000133: 36,3175           03734                           STORE    F                                     
033262,000134: 36,3176           77735                           SLOAD                                          
033263,000135: 36,3177           26002                                    DPSVEX                                
033264,000136: 36,3200           70476        P40IN              DCOMP    SR1                                   
033265,000137: 36,3201           37742                           STCALL   VEX                                   #  LOAD EXHAUST VELOCITY FOR TGO COMP.
033266,000138: 36,3202           56271                                    S40.1                                 #  COMPUTES UT AND VGTIG
033267,000139: 36,3203           77624                           CALL                                           
033268,000140: 36,3204           56436                                    S40.2,3                               #  COMPUTES PREFERRED IMU ORIENTATION
033269,000141: 36,3205           77776                           EXIT                                           
033270,000142: 
033271,000143: 36,3206           00004                           INHINT                                         
033272,000144: 36,3207           04674                           TC       IBNKCALL                              
033273,000145: 36,3210           40142                           CADR     PFLITEDB                              #  ZERO ATTITUDE ERRORS, SET DB TO ONE DEG.
033274,000146: 
033275,000147: 36,3211           03213                           TC       P40SXT4                               
033276,000148: 
033277,000149: 
033278,000150:                                                                                                  #            ***********************
033279,000151: 36,3212           12124                           TCF      BURNBABY                              
033280,000152:                                                                                                  #            ***********************
033281,000153: 
033282,000154: 
033283,000155: 36,3213           00006        P40SXT4            EXTEND                                         
033284,000156: 36,3214           23142                           QXCH     P40/RET                               
033285,000157: 36,3215           00003        P41MANU            RELINT                                         
033286,000158: 
033287,000159: 36,3216           05516                           TC       DOWNFLAG                              #  CLEAR 3AXISFLG -- R60 WILL USE VECPOINT.
033288,000160: 36,3217           00124                           ADRES    3AXISFLG                              
033289,000161: 
033290,000162: 36,3220           04616                           TC       BANKCALL                              
033291,000163: 36,3221           54101                           CADR     R60LEM                                #  DO ATTITUDE MANEUVER ROUTINE
033292,000164: 36,3222           01142                           TC       P40/RET                               
033293,000165: 
033294,000166: 
033295,000167: 36,3223  E7,1460                                  EBANK=   TRKMKCNT                              
033296,000168: 36,3223           30005        POSTBURN           CA       Z                                     
033297,000169: 36,3224           55163                           TS       DISPDEX                               
033298,000170: 36,3225           00006                           EXTEND                                         
033299,000171: 36,3226           32055                           DCA      ACADN85                               
033300,000172: 36,3227           53253                           DXCH     AVEGEXIT                              
033301,000173: 36,3230           33743                           CAF      V16N40                                
033302,000174: 36,3231           04616                           TC       BANKCALL                              
033303,000175: 36,3232           20510                           CADR     GOFLASHR                              
033304,000176: 36,3233           03256                           TC       TERM40                                
033305,000177: 36,3234           13241                           TCF      TIGNOW                                
033306,000178: 36,3235           03223                           TC       POSTBURN                              
033307,000179: 

Page 762

033309,000181: 36,3236           05353        P40PHS1            TC       PHASCHNG                              
033310,000182: 36,3237           00014                           OCT      00014                                 
033311,000183: 36,3240           15155                           TCF      ENDOFJOB                              
033312,000184: 
033313,000185: 36,3241           00004        TIGNOW             INHINT                                         
033314,000186: 36,3242           04674                           TC       IBNKCALL                              
033315,000187: 36,3243           40153                           CADR     ZATTEROR                              
033316,000188: 36,3244           04674                           TC       IBNKCALL                              
033317,000189: 36,3245           40140                           CADR     SETMINDB                              
033318,000190: 36,3246           00003                           RELINT                                         
033319,000191: 36,3247           33744                           CAF      V16N85B                               
033320,000192: 36,3250           04616                           TC       BANKCALL                              
033321,000193: 36,3251           20340                           CADR     REFLASHR                              
033322,000194: 36,3252           03256                           TC       TERM40                                
033323,000195: 36,3253           13256                           TCF      TERM40                                
033324,000196: 36,3254           03247                           TC       -5                                    
033325,000197: 
033326,000198: 36,3255           13236                           TCF      P40PHS1                               
033327,000199: 
033328,000200: 36,3256           00006        TERM40             EXTEND                                         
033329,000201: 36,3257           32104                           DCA      SERVCADR                              
033330,000202: 36,3260           53253                           DXCH     AVEGEXIT                              
033331,000203: 36,3261           34755                           CAF      ZERO                                  
033332,000204: 36,3262           55460                           TS       TRKMKCNT                              #       ZERO RENDZVS CNTERS
033333,000205: 36,3263           30005                           CA       Z                                     
033334,000206: 36,3264           55163                           TS       DISPDEX                               
033335,000207: 36,3265           00004                           INHINT                                         
033336,000208: 36,3266           04674                           TC       IBNKCALL                              
033337,000209: 36,3267           40123                           CADR     RESTORDB                              
033338,000210: 36,3270           00003                           RELINT                                         
033339,000211: 36,3271           06001                           TC       GOTOPOOH                              
033340,000212: 
033341,000213: 36,3272  E7,1453                                  EBANK=   WHICH                                 
033342,000214: 36,3272                                           COUNT*   $$/P41                                
033343,000215: 36,3272           33132        P41LM              CAF      P41ADRES                              #  INITIALIZATION FOR BURNBABY
033344,000216: 36,3273           55453                           TS       WHICH                                 
033345,000217: 
033346,000218: 36,3274           04616                           TC       BANKCALL                              
033347,000219: 36,3275           11175                           CADR     R02BOTH                               
033348,000220: 
033349,000221: 36,3276           06036                           TC       INTPRET                               #  BOTH LM
033350,000222: 36,3277           71214                           BON      DLOAD                                 #  IF NJETSFLAG IS SET, LOAD 2 JET F
033351,000223: 36,3300           00700                                    NJETSFLG                              
033352,000224: 36,3301           75305                                    P41FJET1                              
033353,000225: 36,3302           34015                                    FRCS4                                 #  IF NJETSFLAG IS CLEAR, LOAD 4 JET F
033354,000226: 
033355,000227: 36,3303           37734        P41FJET            STCALL   F                                     
033356,000228: 36,3304           75310                                    P41IN                                 
033357,000229: 36,3305           77745        P41FJET1           DLOAD                                          
033358,000230: 

Page 763

033360,000232: 36,3306           34017                                    FRCS2                                 
033361,000233: 36,3307           03734                           STORE    F                                     
033362,000234: 
033363,000235: 36,3310           77624        P41IN              CALL                                           
033364,000236: 36,3311           56271                                    S40.1                                 #  BOTH
033365,000237: 36,3312           77624        P41NORM            CALL                                           
033366,000238: 36,3313           56436                                    S40.2,3                               #  CALCULATE PREFERRED IMU ORIENTATION AND
033367,000239: 36,3314           77776                           EXIT                                           #  SET PFRATFLG.
033368,000240: 
033369,000241: 36,3315           00004                           INHINT                                         
033370,000242: 36,3316           04674                           TC       IBNKCALL                              
033371,000243: 36,3317           40153                           CADR     ZATTEROR                              #  ZERO ATTITUDE ERRORS
033372,000244: 36,3320           04674                           TC       IBNKCALL                              
033373,000245: 36,3321           40140                           CADR     SETMINDB                              #  SET 0.3 DEGREE DEADBAND
033374,000246: 36,3322           03213                           TC       P40SXT4                               
033375,000247: 
033376,000248: 36,3323           06036                           TC       INTPRET                               
033377,000249: 36,3324           45175                           VLOAD    CALL                                  #  TRANSFORM VELOCITY-TO-BE-GAINED AT TIG
033378,000250: 36,3325           03705                                    VGTIG                                 #  FROM REFERENCE COORDINATES TO LM BODY-
033379,000251: 36,3326           57156                                    S41.1                                 #  AXIS COORDINATES FOR V16N85 DISPLAY.
033380,000252: 36,3327           03500                           STORE    VGBODY                                #  (SCALED AT 2 (+7) METERS/CENTISECOND)
033381,000253: 36,3330           77776                           EXIT                                           
033382,000254: 
033383,000255: 36,3331           33744                           CAF      V16N85B                               
033384,000256: 36,3332           04616                           TC       BANKCALL                              
033385,000257: 36,3333           20324                           CADR     GODSPRET                              
033386,000258: 
033387,000259: 
033388,000260: 36,3334           35017                           CAF      PRIO5                                 
033389,000261: 36,3335           55163                           TS       DISPDEX                               #  FOR SAFETY ONLY
033390,000262: 36,3336           05105                           TC       FINDVAC                               
033391,000263: 36,3337  E7,1704                                  EBANK=   VGPREV                                
033392,000264: 36,3337           03361 74067                     2CADR    DYNMDISP                              
033393,000265: 
033394,000266: 36,3341           05327                           TC       2PHSCHNG                              
033395,000267: 36,3342           00076                           OCT      00076                                 #  GROUP 6 RESTARTS AT REDO6.7
033396,000268: 36,3343           04024                           OCT      04024                                 #  GROUP 4 RESTARTS HERE
033397,000269: 
033398,000270:                                                                                                  #            ***********************
033399,000271: 36,3344           12133                           TCF      B*RNB*B*                              
033400,000272:                                                                                                  #            ***********************
033401,000273: 
033402,000274: 
033403,000275: 36,3345           34777        BLNKWAIT           CAF      1SEC                                  
033404,000276: 36,3346           04616                           TC       BANKCALL                              
033405,000277: 36,3347           01735                           CADR     DELAYJOB                              
033406,000278: 
033407,000279: 36,3350           31163        REDO6.7            CA       DISPDEX                               #  ON A RESTART, DO NOT PUT UP DISPLAY IF
033408,000280: 36,3351           64752                           AD       TWO                                   #  BLANKING (BETWEEN TIG-35 AND TIG-30)
033409,000281: 
033410,000282:                                                                                                  #            ***********************
033411,000283: 

Page 764

033413,000285: 
033414,000286: 36,3352           00006                           EXTEND                                         
033415,000287: 36,3353           13345                           BZF      BLNKWAIT                              
033416,000288: 
033417,000289: 36,3354           33744                           CAF      V16N85B                               
033418,000290: 36,3355           04616                           TC       BANKCALL                              
033419,000291: 36,3356           20324                           CADR     GODSPRET                              
033420,000292: 
033421,000293: 36,3357           35017                           CAF      PRIO5                                 
033422,000294: 36,3360           05146                           TC       PRIOCHNG                              
033423,000295: 
033424,000296: 36,3361           31163        DYNMDISP           CA       DISPDEX                               #  A NON-POSITIVE DISPDEX INDICATES PAST
033425,000297: 36,3362           00006                           EXTEND                                         #  TIG-35, SO SERVICER WILL BE DOING THE
033426,000298: 36,3363           65155                           BZMF     ENDOFJOB                              #  UPDATING OF NOUN 85. STOP DYNMDISP.
033427,000299: 36,3364           06036                           TC       INTPRET                               
033428,000300: 36,3365           45175                           VLOAD    CALL                                  
033429,000301: 36,3366           03705                                    VGPREV                                
033430,000302: 36,3367           57156                                    S41.1                                 
033431,000303: 36,3370           03500                           STORE    VGBODY                                
033432,000304: 36,3371           77776                           EXIT                                           
033433,000305: 36,3372           34777                           CAF      1SEC                                  
033434,000306: 36,3373           04616                           TC       BANKCALL                              
033435,000307: 36,3374           01735                           CADR     DELAYJOB                              
033436,000308: 36,3375           13361                           TCF      DYNMDISP                              
033437,000309: 
033438,000310: 36,3376           06036        CALCN85            TC       INTPRET                               
033439,000311: 36,3377           77624                           CALL                                           
033440,000312: 36,3400           75611                                    UPDATEVG                              
033441,000313: 36,3401           45175                           VLOAD    CALL                                  
033442,000314: 36,3402           03705                                    VGPREV                                
033443,000315: 36,3403           57156                                    S41.1                                 
033444,000316: 36,3404           03500                           STORE    VGBODY                                
033445,000317: 36,3405           77776                           EXIT                                           
033446,000318: 36,3406           04635                           TC       POSTJUMP                              
033447,000319: 36,3407           77525                           CADR     SERVEXIT                              
033448,000320: 
033449,000321: 36,3410                                           COUNT*   $$/P42                                
033450,000322: 36,3410  E7,1453                                  EBANK=   WHICH                                 
033451,000323: 
033452,000324: 36,3410           05353        P42LM              TC       PHASCHNG                              
033453,000325: 36,3411           04024                           OCT      04024                                 
033454,000326: 
033455,000327: 36,3412           33133                           CAF      P42ADRES                              #  INITIALIZATION FOR BURNBABY.
033456,000328: 36,3413           55453                           TS       WHICH                                 
033457,000329: 
033458,000330: 36,3414           40106                           CS       FLGWRD10                              
033459,000331: 36,3415           74737                           MASK     APSFLBIT                              
033460,000332: 36,3416           10000                           CCS      A                                     
033461,000333: 36,3417           03722                           TC       P40ALM                                
033462,000334: 36,3420           04616                           TC       BANKCALL                              
033463,000335: 

Page 765

033465,000337: 36,3421           11175                           CADR     R02BOTH                               
033466,000338: 36,3422           36000                           CAF      THRESH2                               #  INITIALIZE DVMON
033467,000339: 36,3423           55251                           TS       DVTHRUSH                              
033468,000340: 36,3424           34751                           CAF      FOUR                                  
033469,000341: 36,3425           55513                           TS       DVCNTR                                
033470,000342: 
033471,000343: 36,3426           06036                           TC       INTPRET                               
033472,000344: 36,3427           77214                           SET      VLOAD                                 #  LOAD FAPS, MDOTAPS, AND ATDECAY INTO
033473,000345: 36,3430           01072                                    AVFLAG                                #  F, MDOT, AND TDECAY BY VECTOR LOAD.
033474,000346: 36,3431           34007                                    FAPS                                  
033475,000347: 36,3432           03734                           STORE    F                                     
033476,000348: 36,3433           52135                           SLOAD    GOTO                                  
033477,000349: 36,3434           26001                                    APSVEX                                
033478,000350: 36,3435           75200                                    P40IN                                 
033479,000351: 
033480,000352: 36,3436  E7,1453                                  EBANK=   WHICH                                 
033481,000353: 
033482,000354: 36,3436                                           COUNT*   $$/P47                                
033483,000355: 36,3436           04616        P47LM              TC       BANKCALL                              
033484,000356: 36,3437           11175                           CADR     R02BOTH                               
033485,000357: 36,3440           06036                           TC       INTPRET                               
033486,000358: 36,3441           77624                           CALRB                                          
033487,000359: 36,3442           27577                                    MIDTOAV2                              
033488,000360: 
033489,000361: 36,3443           30155                           CA       MPAC       +1                         
033490,000362: 36,3444           05173                           TC       TWIDDLE                               
033491,000363: 36,3445           03447                           ADRES    STARTP47                              
033492,000364: 
033493,000365: 36,3446           15155                           TCF      ENDOFJOB                              
033494,000366: 
033495,000367: 36,3447           05353        STARTP47           TC       PHASCHNG                              
033496,000368: 36,3450           05014                           OCT      05014                                 
033497,000369: 36,3451           77777                           OCT      77777                                 
033498,000370: 
033499,000371: 36,3452           00006                           EXTEND                                         
033500,000372: 36,3453           33747                           DCA      ACADN83                               
033501,000373: 36,3454           53253                           DXCH     AVEGEXIT                              
033502,000374: 36,3455           34736                           CAF      PRIO20                                
033503,000375: 36,3456           05105                           TC       FINDVAC                               
033504,000376: 36,3457  E7,1620                                  EBANK=   DELVIMU                               
033505,000377: 36,3457           03513 74067                     2CADR    P47BODY                               
033506,000378: 36,3461           12333                           TCF      REDO4.2                               #  CHECKS PHASE 5 AND GOES TO PREREAD
033507,000379:                                                                                                  #  SEE TIG-30 IN BURNBABY.
033508,000380: 
033509,000381: 36,3462           06036        CALCN83            TC       INTPRET                               
033510,000382: 36,3463           53375                           VLOAD    VAD                                   
033511,000383: 36,3464           03500                                    DELVCTL                               
033512,000384: 36,3465           03525                                    DELVREF                               
033513,000385: 36,3466           03654                           STORE    DELVSIN                               #  TEMP STORAGE FOR RESTARTS
033514,000386: 

Page 766

033516,000388: 36,3467           77624                           CALL                                           
033517,000389: 36,3470           57156                                    S41.1                                 
033518,000390: 36,3471           03621                           STORE    DELVIMU                               
033519,000391: 36,3472           77776                           EXIT                                           
033520,000392: 36,3473           05353                           TC       PHASCHNG                              
033521,000393: 36,3474           10035                           OCT      10035                                 #  REREADAC AND HERE
033522,000394: 
033523,000395: 36,3475           06036                           TC       INTPRET                               
033524,000396: 36,3476           77775                           VLOAD                                          
033525,000397: 36,3477           03654                                    DELVSIN                               
033526,000398: 36,3500           03500                           STORE    DELVCTL                               
033527,000399: 36,3501           77776                           EXIT                                           
033528,000400: 
033529,000401: 36,3502           04635                           TC       POSTJUMP                              
033530,000402: 36,3503           77525                           CADR     SERVEXIT                              
033531,000403: 
033532,000404: 36,3504           33745        P47BOD             CAF      V1683                                 
033533,000405: 36,3505           04616                           TC       BANKCALL                              
033534,000406: 36,3506           20510                           CADR     GOFLASHR                              
033535,000407: 36,3507           06001                           TC       GOTOPOOH                              
033536,000408: 36,3510           06001                           TC       GOTOPOOH                              
033537,000409: 
033538,000410: 36,3511           13513                           TCF      P47BODY                               
033539,000411: 
033540,000412: 36,3512           13236                           TCF      P40PHS1                               
033541,000413: 
033542,000414: 36,3513           06036        P47BODY            TC       INTPRET                               
033543,000415: 36,3514           77775                           VLOAD                                          
033544,000416: 36,3515           06424                                    HI6ZEROS                              
033545,000417: 36,3516           03621                           STORE    DELVIMU                               
033546,000418: 36,3517           03500                           STORE    DELVCTL                               
033547,000419: 36,3520           77776                           EXIT                                           
033548,000420: 36,3521           03504                           TC       P47BOD                                
033549,000421: 
033550,000422: 36,3522                                           COUNT*   $$/P40                                
033551,000423: 36,3522           31515        IMPLBURN           CA       TGO        +1                         
033552,000424: 36,3523           03710                           TC       GETDT                                 
033553,000425: 36,3524           05173                           TC       TWIDDLE                               
033554,000426: 36,3525           03542                           ADRES    ENGOFTSK                              
033555,000427: 36,3526           05516                           TC       DOWNFLAG                              #  TURN OFF IGNFLAG
033556,000428: 36,3527           00153                           ADRES    IGNFLAG                               
033557,000429: 36,3530           05516                           TC       DOWNFLAG                              #  TURN OFF ASTNFLG
033558,000430: 36,3531           00154                           ADRES    ASTNFLAG                              
033559,000431: 36,3532           05516                           TC       DOWNFLAG                              #  TURN OFF IMPULSW
033560,000432: 36,3533           00044                           ADRES    IMPULSW                               
033561,000433: 36,3534           05353                           TC       PHASCHNG                              #  RESTART PROTECT ENGOFTSK (ENGINOFF)
033562,000434: 36,3535           40114                           OCT      40114                                 
033563,000435: 
033564,000436: 36,3536           05221                           TC       FIXDELAY                              #  WAIT HALF A SECOND
033565,000437: 36,3537           00062                           DEC      50         B-14                       
033566,000438: 

Page 767

033568,000440: 36,3540           02656                           TC       NOULLAGE                              #  TURN OFF ULLAGE
033569,000441: 
033570,000442: 36,3541           05261                           TC       TASKOVER                              
033571,000443: 
033572,000444: 36,3542           04674        ENGOFTSK           TC       IBNKCALL                              #  THIS CODING ALLOWS ENGINOFF ET AL TO BE
033573,000445: 36,3543           75545                           CADR     ENGINOFF                              #  USED BOTH BY WAITLIST AND BY TC IBNKCALL
033574,000446: 36,3544           05261                           TC       TASKOVER                              
033575,000447: 
033576,000448: 36,3545           34644        ENGINOFF           CAF      PRIO12                                #  MUST BE LOWER PRIO THAN CLOCKJOB
033577,000449: 36,3546           05105                           TC       FINDVAC                               
033578,000450: 36,3547  E7,1460                                  EBANK=   TRKMKCNT                              
033579,000451: 36,3547           03223 74067                     2CADR    POSTBURN                              
033580,000452: 
033581,000453: 36,3551           34753        ENGINOF2           CAF      BIT1                                  
033582,000454: 36,3552           05203                           TC       WAITLIST                              
033583,000455: 36,3553  E6,1420                                  EBANK=   OMEGAQ                                
033584,000456: 36,3553           03606 74066                     2CADR    COASTSET                              
033585,000457: 36,3555           40103        ENGINOF1           CS       FLAGWRD7                              #  SET THE IDLE BIT.
033586,000458: 36,3556           74745                           MASK     IDLEFBIT                              
033587,000459: 36,3557           26103                           ADS      FLAGWRD7                              
033588,000460: 
033589,000461: 36,3560           02656                           TC       NOULLAGE                              
033590,000462: 
033591,000463: 36,3561           00006        ENGINOF4           EXTEND                                         
033592,000464: 36,3562           30025                           DCA      TIME2                                 
033593,000465: 36,3563           53345                           DXCH     TEVENT                                
033594,000466: 
033595,000467: 36,3564           44745        ENGINOF3           CS       ENGONBIT                              #  INSURE ENGONFLG IS CLEAR.
033596,000468: 36,3565           70101                           MASK     FLAGWRD5                              
033597,000469: 36,3566           54101                           TS       FLAGWRD5                              
033598,000470: 36,3567           44355                           CS       PRIO30                                #  ENGINOF3 IS USED AS A PRE-ENGINE ARM
033599,000471: 36,3570           00006                           EXTEND                                         #  SUBROUTINE.
033600,000472: 36,3571           02011                           RAND     DSALMOUT                              
033601,000473: 36,3572           64736                           AD       PRIO20                                #  TURN OFF THE ENGINE - DPS OR APS
033602,000474: 36,3573           00006                           EXTEND                                         
033603,000475: 36,3574           01011                           WRITE    DSALMOUT                              
033604,000476: 
033605,000477: 36,3575           40111                           CS       DAPBOOLS                              #  TURN OFF TRIM GIMBAL
033606,000478: 36,3576           74736                           MASK     USEQRJTS                              
033607,000479: 36,3577           26111                           ADS      DAPBOOLS                              
033608,000480: 
033609,000481: 36,3600           44737                           CS       HIRTHROT                              #  ZERO AUTO-THROTTLE WHENEVER THE ENGINE
033610,000482: 36,3601           54055                           TS       THRUST                                #  IS TURNED OFF.
033611,000483: 36,3602           34750                           CAF      BIT4                                  #  THE HARDWARE DOES SO ONLY WHEN THE
033612,000484: 36,3603           00006                           EXTEND                                         #  ENGINE IS DISARMED.
033613,000485: 36,3604           05014                           WOR      CHAN14                                
033614,000486: 
033615,000487: 36,3605           04707                           TC       ISWRETRN                              
033616,000488: 

Page 768

033618,000490: 36,3606           04674        COASTSET           TC       IBNKCALL                              #  DO DAP COASTING INITIALIZATION
033619,000491: 36,3607           40204                           CADR     ALLCOAST                              
033620,000492: 36,3610           05261                           TC       TASKOVER                              
033621,000493: 
033622,000494: 36,3611  E6,1420                                  EBANK=   OMEGAQ                                
033623,000495: 36,3611           45020        UPDATEVG           STQ      CALL                                  
033624,000496: 36,3612           03663                                    QTEMP1                                
033625,000497: 36,3613           56472                                    S40.8                                 #  X-PRODUCT STEERING
033626,000498: 36,3614           43014                           BON      BOFSET                                
033627,000499: 36,3615           01307                                    XDELVFLG                              
033628,000500: 36,3616           03663                                    QTEMP1                                
033629,000501: 36,3617           01045                                    CYCLESW                               
033630,000502: 36,3620           03663                                    QTEMP1                                
033631,000503: 36,3621           77776                           EXIT                                           
033632,000504: 
033633,000505: 36,3622           10755                           CCS      PHASE2                                
033634,000506: 36,3623           13636                           TCF      ENDSTEER                              #  GROUP 2 ACTIVE --> LAMBERT STILL GOING.
033635,000507: 
033636,000508: 36,3624           34737                           CAF      PRIO10                                
033637,000509: 36,3625           00004                           INHINT                                         
033638,000510: 36,3626           05105                           TC       FINDVAC                               
033639,000511: 36,3627  E7,1713                                  EBANK=   VG                                    
033640,000512: 36,3627           02745 56067                     2CADR    S40.9                                 #  LAMBERT VTOGAIN
033641,000513: 
033642,000514: 36,3631           05327                           TC       2PHSCHNG                              
033643,000515: 36,3632           00172                           OCT      00172                                 #  2.17SPOT FOR S40.9
033644,000516: 36,3633           10035                           OCT      10035                                 #  HERE AND REREADAC AFTER RESTART
033645,000517: 
033646,000518: 36,3634           05516                           TC       DOWNFLAG                              
033647,000519: 36,3635           00043                           ADRES    CYCLESW                               #  VG CALCULATION OMITTED
033648,000520: 36,3636           06036        ENDSTEER           TC       INTPRET                               
033649,000521: 36,3637           77650                           GOTO                                           
033650,000522: 36,3640           03663                                    QTEMP1                                
033651,000523: 
033652,000524: 36,3641           06036        STEERING           TC       INTPRET                               
033653,000525: 
033654,000526: 36,3642           77624                           CALL                                           
033655,000527: 36,3643           75611                                    UPDATEVG                              
033656,000528: 36,3644           77776                           EXIT                                           
033657,000529: 
033658,000530: 36,3645  E7,1513                                  EBANK=   DVCNTR                                
033659,000531: 36,3645           00004        NSTEER             INHINT                                         
033660,000532: 36,3646           35016                           CA       EBANK7                                
033661,000533: 36,3647           54003                           TS       EBANK                                 
033662,000534:                                                                                                  #  PHASE CHANGE IN SERVERICER NEEDED HERE *********************************
033663,000535: 36,3650           40076                           CS       FLAGWRD2                              #  CHECK IMPULSE SWITCH.  IT IS SET EITHER
033664,000536: 36,3651           74743                           MASK     IMPULBIT                              #  BY S40.13 IF TBURN<6 SECS OR BY S40.8 IF
033665,000537: 36,3652           10000                           CCS      A                                     #  STEERING IS ALMOST DONE.
033666,000538: 
033667,000539: 36,3653           13660                           TCF      +5                                    #  IMPULSW = 0    EXIT
033668,000540: 

Page 769

033670,000542: 36,3654           40103                           CS       FLAGWRD7                              #  IMPULSW = 1    WHY?  CHECK IDLEFLAG
033671,000543: 36,3655           74745                           MASK     IDLEFBIT                              #      (IDLEFLAG = 0 --> DVMON ON)
033672,000544: 36,3656           10000                           CCS      A                                     
033673,000545: 36,3657           13662                           TCF      +3                                    #  DVMON ON-->THRUSTING-->IMPULSW VIA S40.8
033674,000546: 36,3660           04635                           TC       POSTJUMP                              #  DVMON OFF-->IMPULSW ON VIA S40.13-->EXIT
033675,000547: 36,3661           77525                           CADR     SERVEXIT                              
033676,000548: 
033677,000549: 36,3662           04674                           TC       IBNKCALL                              
033678,000550: 36,3663           40165                           CADR     STOPRATE                              
033679,000551: 
033680,000552: 36,3664           05516                           TC       DOWNFLAG                              #  TURN OFF IMPULSW
033681,000553: 36,3665           00044                           ADRES    IMPULSW                               
033682,000554: 
033683,000555: 36,3666           05504                           TC       UPFLAG                                
033684,000556: 36,3667           00161                           ADRES    IDLEFLAG                              #  TURN OFF DVMON
033685,000557: 
033686,000558: 36,3670           00004                           INHINT                                         
033687,000559: 36,3671           00006                           EXTEND                                         
033688,000560: 36,3672           31440                           DCA      TIG                                   
033689,000561: 36,3673           52155                           DXCH     MPAC                                  
033690,000562: 36,3674           00006                           EXTEND                                         
033691,000563: 36,3675           40025                           DCS      TIME2                                 
033692,000564: 36,3676           20155                           DAS      MPAC                                  
033693,000565: 36,3677           07256                           TC       TPAGREE                               
033694,000566: 36,3700           30155                           CAE      MPAC       +1                         
033695,000567: 36,3701           03710                           TC       GETDT                                 
033696,000568: 36,3702           05173                           TC       TWIDDLE                               
033697,000569: 36,3703           03542                           ADRES    ENGOFTSK                              
033698,000570: 36,3704           05327                           TC       2PHSCHNG                              
033699,000571: 36,3705           40114                           OCT      40114                                 #  ENGOFTSK (ENGINOFF)
033700,000572: 36,3706           00035                           OCT      00035                                 #  SERVICER--REREADAC
033701,000573: 
033702,000574: 36,3707           15155                           TCF      ENDOFJOB                              
033703,000575: 
033704,000576: 36,3710           10000        GETDT              CCS      A                                     
033705,000577: 36,3711           13714                           TCF      +3                                    
033706,000578: 36,3712           13714                           TCF      +2                                    
033707,000579: 36,3713           34755                           CAF      ZERO                                  
033708,000580: 36,3714           64753                           AD       ONE                                   
033709,000581: 36,3715           56001                           XCH      L                                     
033710,000582: 36,3716           34755                           CAF      ZERO                                  
033711,000583: 36,3717           53515                           DXCH     TGO                                   
033712,000584: 36,3720           31515                           CA       TGO        +1                         
033713,000585: 36,3721           00002                           TC       Q                                     
033714,000586: 36,3722           05567        P40ALM             TC       ALARM                                 #  ASTRONAUT DOESN'T AGREE WITH STAGE
033715,000587: 36,3723           01706                           OCT      01706                                 #  VERIFY DISCRETE.  HE HAS SELECTED P40,
033716,000588: 36,3724           35006                           CAF      V05N09                                #  BUT THE DAP THINKS THAT THE DESCENT UNIT
033717,000589: 36,3725           04616                           TC       BANKCALL                              #  IS GONE--A SITUATION THAT WOULD MAKE A
033718,000590: 36,3726           20351                           CADR     GOFLASH                               #  DPS BURN EXCEEDINGLY DIFFICULT.
033719,000591: 

Page 770

033721,000593: 36,3727           16001                           TCF      GOTOPOOH                              #  V34E  TERMINATE
033722,000594: 36,3730           13724                           TCF      -4                                    #  V33E  PROCEED  (ILLEGAL)
033723,000595: 36,3731           13724                           TCF      -5                                    #        RECYCLE  (ILLEGAL)
033724,000596: 
033725,000597:                                                                                                  #  ************************************************************************
033726,000598: 
033727,000599: 36,3732           00000        SEC15DP            OCT      00000                                 #  DON'T SEPARATE
033728,000600: 36,3733           02734        SEC15              DEC      1500       B-14                       #  DON'T SEPARATE
033729,000601: 36,3734           00000 05670  SEC30DP            2DEC     3000       B-28                       
033730,000602: 36,3736           00000        SEC45DP            OCT      00000                                 #  DON'T MOVE FROM JUST BEFORE SEC45
033731,000603: 36,3737           10624        SEC45              DEC      4500       B-14                       
033732,000604: 36,3740           00000        5SECDP             OCT      00000                                 #  DON'T MOVE FROM JUST BEFORE 5SEC
033733,000605: 36,3741           00764        5SEC               DEC      500        B-14                       
033734,000606: 36,3742           05050        26SECS             DEC      2600       B-14                       
033735,000607: 36,3743           04050        V16N40             VN       1640                                  
033736,000608: 36,3744           04125        V16N85B            VN       1685                                  
033737,000609: 36,3745           04123        V1683              VN       1683                                  
033738,000610: 36,3746     4777               SEC01              =        1SEC                                  
033739,000611: 36,3746  36,2054               ACADN85            =        P41TABLE   +2                         
033740,000612: 
033741,000613: 36,3746  E7,1620                                  EBANK=   DELVIMU                               
033742,000614: 36,3746           03462 74067  ACADN83            2CADR    CALCN83                               
033743,000615:                                                                                                  #  *************************************************
033744,000616: 

Page 771

033746,000618:                                                                                                  #  PROGRAM DESCRIPTION S40.1       DATE15NOV66
033747,000619:                                                                                                  #  MOD N02         LOG SECTION  P40-P47
033748,000620:                                                                                                  #  MOD BY ZELDIN AND ADAPTED BY TALAYCO
033749,000621:                                                                                                  #  FUNCTIONAL DESCRIPTION
033750,000622:                                                                                                  #           COMPUTE INITIAL THRUST DIRECTION(UT) AND INITIAL VALUE OF VG
033751,000623:                                                                                                  #           VECTOR(VGTIG).
033752,000624:                                                                                                  #  CALLING SEQUENCE
033753,000625:                                                                                                  #         L CALL
033754,000626:                                                                                                  #       L+1        S40.1
033755,000627:                                                                                                  #  NORMAL EXIT MODE
033756,000628:                                                                                                  #           AT L+2 OF CALLING SEQUENCE (GOTO L+2)  NORMAL RETURN OR
033757,000629:                                                                                                  #           ERROR RETURN IF NOSOFLAG =1
033758,000630:                                                                                                  #  SUBROUTINES CALLED
033759,000631:                                                                                                  #           LEMPREC
033760,000632:                                                                                                  #           INITVEL
033761,000633:                                                                                                  #           CALCGRAV
033762,000634:                                                                                                  #           MIDGIM
033763,000635:                                                                                                  #  ALARM OR ABORT EXIT MODES
033764,000636:                                                                                                  #       L+2 OF CALLING SEQUENCE,UNSOLVABLE CONIC IF NOSOFLAG=1
033765,000637:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED
033766,000638:                                                                                                  #                  WEIGHT/G  ANTICIPATED VEHICLE MASS         DP  B16KGM
033767,000639:                                                                                                  #           XDELVFLG       1=DELTA-V MANEUVER,0=AIMPT STEER
033768,000640:                                                                                                  #            F         THRUST FOR ENGINE USED
033769,000641:                                                                                                  #        IF DELTA-V MANEUVER
033770,000642:                                                                                                  #           DELVSIN   SPECIFIED DELTA-V REQUIRED IN
033771,000643:                                                                                                  #                     INERTIAL COORDS. OF ACTIVE VEHICLE
033772,000644:                                                                                                  #                     AT TIME OF IGNITION                 VECTOR B7M/CS
033773,000645:                                                                                                  #           DELVSAB   MAG. OF DELVSIN                     DP     B7M/CS
033774,000646:                                                                                                  #           RTIG      POSITION AT TIME OF IGNITION       VECTOR B29M
033775,000647:                                                                                                  #           VTIG      VELOCITY AT TIME OF IGNITION       VECTOR B7M/CS
033776,000648:                                                                                                  #        IF AIMPT STEER
033777,000649:                                                                                                  #           TIG       TIME OF IGNITION                    DP     B28CS
033778,000650:                                                                                                  #           RTARG     POSITION TARGET TIME               VECTOR B29M
033779,000651:                                                                                                  #           CSTEER    C FOR STEER LAW                     DP     B2
033780,000652:                                                                                                  #           DLTARG    TARGET TIME-IGNITION TIME          DP     B28CS
033781,000653:                                                                                                  #  OUTPUT
033782,000654:                                                                                                  #        UT           DESIRED THRUST DIRECTION            VECT. B2M/(CS.CS)
033783,000655:                                                                                                  #        VGTIG        INITIAL VALUE OF VELOCITY
033784,000656:                                                                                                  #                     TO BE GAINED (INERT. COORD.)        VECTOR B7M/CS
033785,000657:                                                                                                  #        DELVLVC      VGTIG IN LOC. VERT. COORDS.                B7M/CS
033786,000658:                                                                                                  #           BDT   V REQUIRED AT TIG -V REQUIRED AT (TIG-2SEC)
033787,000659:                                                                                                  #           -GDT  FOR S40.13                                   VECT  B7M/CS
033788,000660:                                                                                                  #        RTIG         CALC IN S40.1B(AIMPT) FOR S40.2,3  VECTOR B29M
033789,000661:                                                                                                  #                     POSITION AT TIME OF IGNITION
033790,000662:                                                                                                  #  DEBRIS      QTEMP1
033791,000663:                                                                                                  #        MPAC,QPRET
033792,000664:                                                                                                  #        PUSHLIST
033793,000665: 
033794,000666: 14,2347                                           BANK     14                                    
033795,000667: 27,2000                                           SETLOC   P40S1                                 
033796,000668: 27,2000                                           BANK                                           
033797,000669: 

Page 772

033799,000671: 27,2271                                           COUNT*   $$/S40.1                              
033800,000672: 27,2271           44014        S40.1              CLEAR    STQ                                   
033801,000673: 27,2272           03264                                    FIRSTFLG                              
033802,000674: 27,2273           03630                                    QTEMP                                 
033803,000675: 27,2274           77614        DELVTEST           BOFF                                           
033804,000676: 27,2275           01347                                    XDELVFLG                              
033805,000677: 27,2276           56363                                    S40.1B                                
033806,000678: 27,2277           77201        CALCTHET           SETPD    VLOAD                                 
033807,000679: 27,2300           00001                                    0                                     
033808,000680: 27,2301           03646                                    VTIG                                  
033809,000681: 27,2302           02335                           STORE    VINIT                                 
033810,000682: 27,2303           53435                           VXV      UNIT                                  
033811,000683: 27,2304           03640                                    RTIG                                  
033812,000684: 27,2305           27677                           STOVL    UT                                    #  UP IN UT
033813,000685: 27,2306           03640                                    RTIG                                  
033814,000686: 27,2307           02327                           STORE    RINIT                                 
033815,000687: 27,2310           65236                           VSQ      PDDL                                  
033816,000688: 27,2311           00045                                    36D                                   
033817,000689: 27,2312           56205                           DMP      DDV                                   
033818,000690: 27,2313           16435                                    THETACON                              
033819,000691: 27,2314           41205                           DMP      DMP                                   
033820,000692: 27,2315           03662                                    DELVSAB                               
033821,000693: 27,2316           01245                                    WEIGHT/G                              
033822,000694: 27,2317           77671                           DDV                                            
033823,000695: 27,2320           03734                                    F                                     
033824,000696: 27,2321           24017                           STOVL    14D                                   
033825,000697: 27,2322           03654                                    DELVSIN                               
033826,000698: 
033827,000699: 27,2323           74241                           DOT      VXSC                                  
033828,000700: 27,2324           03677                                    UT                                    
033829,000701: 27,2325           03677                                    UT                                    
033830,000702: 27,2326           41552                           VSL2     PUSH                                  #  (DELTAV.UP)UP SCALED AT 2(+7) P.D.L. 0
033831,000703: 27,2327           65245                           BVSU     PDDL                                  #  DELTA VP SCALED AT 2(+7) P.D.L. 6
033832,000704: 27,2330           03654                                    DELVSIN                               
033833,000705: 27,2331           00017                                    14D                                   
033834,000706: 27,2332           63356                           SIN      PDVL                                  
033835,000707: 27,2333           00007                                    6D                                    
033836,000708: 27,2334           53435                           VXV      UNIT                                  
033837,000709: 27,2335           03677                                    UT                                    
033838,000710: 27,2336           45561                           VXSC     STADR                                 
033839,000711: 27,2337           50072                           STOVL    VGTIG                                 #  UNIT(VPXUP)SIN(THETAT/2) IN VGTIG.
033840,000712: 27,2340           65256                           UNIT     PDDL                                  #  UNIT(DELTA VP) IN P.D.L. 6
033841,000713: 27,2341           00017                                    14D                                   
033842,000714: 27,2342           74346                           COS      VXSC                                  
033843,000715: 27,2343           74255                           VAD      VXSC                                  
033844,000716: 27,2344           03705                                    VGTIG                                 
033845,000717: 27,2345           00045                                    36D                                   
033846,000718: 27,2346           53352                           VSL2     VAD                                   
033847,000719: 27,2347           77626                           STADR                                          
033848,000720: 27,2350           74072                           STORE    VGTIG                                 #  VG IGNITION SCALED AT 2(+7) M/CS
033849,000721: 

Page 773

033851,000723: 27,2351           77656                           UNIT                                           
033852,000724: 27,2352           27677                           STOVL    UT                                    #  THRUST DIRECTION SCALED AT 2(+1)
033853,000725: 27,2353           03705                                    VGTIG                                 
033854,000726: 27,2354           45006                           PUSH     CALL                                  
033855,000727: 27,2355           20021                                    GET.LVC                               #  VGTIG IN LV COOR AT 2(+7) M/CS IN DELVLVC
033856,000728: 27,2356           77775                           VLOAD                                          
033857,000729: 27,2357           06424                                    ZEROVECS                              
033858,000730: 27,2360           03671                           STORE    BDT                                   
033859,000731: 27,2361           77650                           GOTO                                           
033860,000732: 27,2362           03630                                    QTEMP                                 
033861,000733: 27,2363           77745        S40.1B             DLOAD                                          
033862,000734: 27,2364           03440                                    TIG                                   
033863,000735: 27,2365           00041                           STORE    TDEC1                                 
033864,000736: 27,2366           77621                           BDSU                                           
033865,000737: 27,2367           03627                                    TPASS4                                
033866,000738: 27,2370           37450                           STCALL   DELLT4                                #  INTERCEPT TIME - TIG.
033867,000739: 27,2371           27057                                    LEMPREC                               
033868,000740: 27,2372           40375                           VLOAD    SETPD                                 #  LOAD STATE VECTOR AT TIG FOR INITVEL.
033869,000741: 27,2373           00001                                    RATT                                  
033870,000742: 27,2374           00001                                    0                                     
033871,000743: 27,2375           03640                           STORE    RTIG                                  
033872,000744: 27,2376           26327                           STOVL    RINIT                                 
033873,000745: 27,2377           00007                                    VATT                                  
033874,000746: 27,2400           03646                           STORE    VTIG                                  
033875,000747: 27,2401           02335                           STORE    VINIT                                 
033876,000748: 27,2402           65345                           DLOAD    PDDL                                  #  NUMIT = 0
033877,000749: 27,2403           06424                                    ZEROVECS                              
033878,000750: 27,2404           16431                                    EPS1                                  
033879,000751: 27,2405           43214                           BOFF     DAD                                   
033880,000752: 27,2406           03745                                    NORMSW                                
033881,000753: 27,2407           56411                                    SMALLEPS                              
033882,000754: 27,2410           16433                                    EPS2                                  #  EPSILON4 = 10 DEGREES OR 45 DEGREES.
033883,000755: 27,2411           66006        SMALLEPS           PUSH     SXA,1                                 
033884,000756: 27,2412           03375                                    RTX1                                  
033885,000757: 27,2413           45134                           SXA,2    CALL                                  
033886,000758: 27,2414           03376                                    RTX2                                  
033887,000759: 27,2415           22000                                    INITVEL                               
033888,000760: 27,2416           41575                           VLOAD    PUSH                                  
033889,000761: 27,2417           03366                                    DELVEET3                              #  VGTIG = VR - VN.
033890,000762: 27,2420           03705                           STORE    VGTIG                                 
033891,000763: 27,2421           77656                           UNIT                                           #  UT = UNIT (VGTIG)
033892,000764: 27,2422           17677                           STODL    UT                                    
033893,000765: 27,2423           00045                                    36D                                   
033894,000766: 27,2424           37662                           STCALL   VGDISP                                #  CONVERT VGTIG (IN PUSHLIST ) TO LOCAL
033895,000767: 27,2425           20021                                    GET.LVC                               #  VERTICAL COORDINATES.
033896,000768: 27,2426           77650                           GOTO                                           
033897,000769: 27,2427           03630                                    QTEMP                                 
033898,000770: 
033899,000771: 27,2430           00707 03434  EPS1               2DEC*    2.777777778 E-2*                       #  10 DEGREES AT 1 REVOLUTION.
033900,000772: 

Page 774

033902,000774: 27,2432           03070 34344  EPS2               2DEC*    9.722222222 E-2*                       #  35 DEGREES AT 1 REVOLUTION.
033903,000775: 27,2434           00024 13714  THETACON           2DEC     .31830989  B-8                        
033904,000776: 

Page 775

033906,000778:                                                                                                  #  SUBROUTINE NAME: S40.2,3        MOD. NO. 3 DATE: APRIL 4, 1967
033907,000779: 
033908,000780:                                                                                                  #  MODIFICATION BY: JONATHAN D. ADDELSTON (ADAMS ASSOCIATES)
033909,000781: 
033910,000782:                                                                                                  #  MOD. NO. 4:  JULY 18, 1967:  PETER ADLER (MIT/IL)
033911,000783: 
033912,000784:                                                                                                  #  MOD. NO. 5:  OCTOBER 18, 1967:  PETER ADLER (MIT/IL)
033913,000785: 
033914,000786:                                                                                                  #  ORIGINALLY BY: SAYDEAN ZELDIN (MIT INSTRUMENTATION LAB) AND RICHARD TALAYCO (SYSTEM DEVELOPMENT CORP)
033915,000787: 
033916,000788:                                                                                                  #  S40.2,3 COMPUTES "POINTVSM" WHICH IS THE HALF-UNIT DESIRED THRUST VECTOR IN STABLE-MEMBER COORDINATES FROM "UT"
033917,000789:                                                                                                  #  WHICH IS THE SAME VECTOR IN REFERENCE COORDINATES.  IT DETERMINES THE CORRECT VALUES FOR "SCAXIS" USING THE +X
033918,000790:                                                                                                  #  AXIS FOR DPS, APS, AND RCS BURNS.  THE "WINGS-LEVEL HEADS-UP" LM ORIENTATION IS THEN COMPUTED IN REFERENCE
033919,000791:                                                                                                  #  COORDINATES.  THESE VECTORS ALSO DEFINE THE "PREFERRED IMU ORIENTATION".  UPON COMPLETION OF THIS CALCULATION,
033920,000792:                                                                                                  #  THE "PREFERRED ATTITUDE COMPUTED" FLAG IS SET (PFRATFLG).
033921,000793: 
033922,000794: 
033923,000795:                                                                                                  #  CALLING SEQUENCE:
033924,000796:                                                                                                  #                                          L        CALL                   INTERPRETIVE CALL.
033925,000797:                                                                                                  #                                          L +1            S40.2,3
033926,000798:                                                                                                  #                                          L +2    (RETURN)                GIMBAL ANGLE VECTOR IN MPAC.
033927,000799: 
033928,000800:                                                                                                  #  SUBROUTINES CALLED:  NONE.
033929,000801: 
033930,000802:                                                                                                  #  NORMAL RETURN:  L +2 (SEE CALLING SEQUENCE ABOVE).
033931,000803: 
033932,000804:                                                                                                  #  ALARM/ABORT MODES:  NONE.
033933,000805: 
033934,000806:                                                                                                  #  INPUT:
033935,000807: 
033936,000808:                                                                                                  #           1. REFSMMAT            MATRIX FROM REFERENCE TO STABLE-MEMBER COORDINATES SCALED AT 2.
033937,000809:                                                                                                  #           2. UT                  HALF-UNIT DESIRED THRUST DIRECTION.
033938,000810:                                                                                                  #           3. RTIG                POSITION AT TIG IN REFERENCE COORDINATES.
033939,000811: 
033940,000812:                                                                                                  #  OUTPUT:
033941,000813: 
033942,000814:                                                                                                  #           1. : XSCREF :          WINGS-LEVEL HEADS-UP LM ORIENTATION
033943,000815:                                                                                                  #              : YSCREF :          IN REFERENCE COORDINATES
033944,000816:                                                                                                  #              : ZSCREF :          (PREFERRED IMU ORIENTATION).
033945,000817:                                                                                                  #           2. POINTVSM            DESIRED THRUST DIRECTION IN STABLE-MEMBER COORDINATES.
033946,000818:                                                                                                  #           3. SCAXIS              HALF-UNIT OF AXIS TO ALIGN IN STABLE-MEMBER COORDINATES.
033947,000819:                                                                                                  #           4. PFRATFLG            INTERPRETIVE FLAG.  ON:  PREFERRED ORIENTATION COMPUTED; OFF:  NOT COMPUTED.
033948,000820: 
033949,000821:                                                                                                  #  DEBRIS:  NONE.
033950,000822: 

Page 776

033952,000824: 
033953,000825: 27,2436                                           COUNT*   $$/S40.2                              
033954,000826: 27,2436           77775        S40.2,3            VLOAD                                          #  UT: DESIRED THRUST DIRECTION (HALF-UNIT)
033955,000827: 27,2437           03677                                    UT                                    #  (PUT INTO TOP OF PUSH-DOWN-LIST.)
033956,000828: 27,2440           76521                           MXV      VSL1                                  #  TRANSFORM THRUST DIRECTION TO STABLE-
033957,000829: 27,2441           01734                                    REFSMMAT                              #  MEMBER FROM REFERENCE COORDS (RESCALE).
033958,000830: 27,2442           27767                           STOVL    POINTVSM                              #  SAVE FOR "VECPOINT" ROUTINE (LEMMANU).
033959,000831: 27,2443           06422                                    UNITX                                 #  SCAXIS SET TO +X, FOR P40 AND P42 AND
033960,000832: 27,2444           27761                           STOVL    SCAXIS                                #  FOR P41 IF RCS NOT -X,+Y,-Y,+Z,-Z.
033961,000833: 
033962,000834: 27,2445           03677                                    UT                                    #  ASSUME +X BURN ALWAYS, EVEN FOR RCS.
033963,000835: 27,2446           03605        PLUSX              STORE    XSCREF                                #  XSCREF = UT (DESIRED THRUST DIRECTION.)
033964,000836: 27,2447           53435                           VXV      UNIT                                  #  RTIG = POSITION AT TIME-OF-IGNITION.
033965,000837: 27,2450           03640                                    RTIG                                  #  YSCREF = UNIT(UT X RTIG)
033966,000838: 27,2451           46125                           PDDL     BHIZ                                  
033967,000839: 27,2452           00045                                    36D                                   #  TEST MAGNITUDE OF UT X RTIG
033968,000840: 27,2453           56464                                    FIXY                                  #  IF SMALL, USE UT X VTIG AS YSC
033969,000841: 27,2454           45575        STORY              VLOAD    STADR                                 
033970,000842: 27,2455           74164                           STORE    YSCREF                                
033971,000843: 27,2456           76435                           VXV      VSL1                                  #  COMPUTE (YSCREF X XSCREF),BUT FOR A
033972,000844: 27,2457           03605                                    XSCREF                                #  RIGHT HANDED SYSTEM, NEED (X CROSS Y).
033973,000845: 27,2460           77676                           VCOMP                                          #  ZSCREF = - (YSCREF X XSCREF)
033974,000846: 27,2461           03621                           STORE    ZSCREF                                #         = + (XSCREF X YSCREF)
033975,000847: 
033976,000848: 27,2462           43414                           SET      RVQ                                   
033977,000849: 27,2463           01073                                    PFRATFLG                              
033978,000850: 27,2464           47375        FIXY               VLOAD    VXV                                   #  IN THIS CASE,
033979,000851: 27,2465           03605                                    XSCREF                                #  YSCREF = UNIT(XSCREF X VTIG)
033980,000852: 27,2466           03646                                    VTIG                                  
033981,000853: 27,2467           41456                           UNIT     PUSH                                  
033982,000854: 27,2470           77650                           GOTO                                           
033983,000855: 27,2471           56454                                    STORY                                 
033984,000856: 

Page 777

033986,000858:                                                                                                  #  SUBROUTINE S40.8
033987,000859: 
033988,000860:                                                                                                  #  MODIFIED APRIL 3, 1968  BY  PETER ADLER    MIT/IL
033989,000861: 
033990,000862:                                                                                                  #  DESCRIPTION
033991,000863: 
033992,000864:                                                                                                  #       S40.8 UPDATES THE VELOCITY-TO-BE-GAINED VECTOR, VG, (AND FOR LAMBERT TARGETTED BURNS ALSO EXTRAPOLATES VG
033993,000865:                                                                                                  #  USING THE BDT VECTOR)  COMPUTES THE TIME FOR ISSUING THE ENGINE OFF COMMAND, TGO, AND CALLS THE ROUTINE
033994,000866:                                                                                                  #  "FINDCDUW", WHICH GENERATES STEERING COMMANDS FOR THE DAP.
033995,000867: 
033996,000868:                                                                                                  #  CALLING SEQUENCE
033997,000869: 
033998,000870:                                                                                                  #  L-1      CALL
033999,000871:                                                                                                  #  L               S40.8
034000,000872:                                                                                                  #  L+1                      INTERPRETIVE RETURN
034001,000873: 
034002,000874:                                                                                                  #  ALARM
034003,000875: 
034004,000876:                                                                                                  #       IF VG . DELVREF IS NEGATIVE (VG AND DELVREF OVER 90 DEGREES APART), BYPASS TGO AND STEERING COMPUTATIONS
034005,000877:                                                                                                  #  AND SET ALARM 1407.  RETURN TO CALLER NORMALLY.
034006,000878: 
034007,000879:                                                                                                  #  INPUT AND INITIALIZATION
034008,000880: 
034009,000881:                                                                                                  #  VGPREV          REFERENCE       2(7) M/CS
034010,000882:                                                                                                  #  DELVREF         REFERENCE       2(7) M/CS
034011,000883:                                                                                                  #  BDT             REFERENCE       2(7) M/CS
034012,000884:                                                                                                  #  TDECAY          TAIL-OFF TIME   2(28)  CS
034013,000885:                                                                                                  #  XDELVFLG        1 = EXTERNAL DELTA-V;  0 = LAMBERT (AIMPOINT)
034014,000886:                                                                                                  #  STEERSW         1 = DO STEERING AND TGO COMPUTATIONS; 0 = VG UPDATE ONLY
034015,000887:                                                                                                  #  FIRSTFLG        1 = GONE TO LAMBERT AT LEAST ONCE;  0 = HAVEN'T GONE TO LAMBERT YET
034016,000888: 
034017,000889:                                                                                                  #  NOTE:  VGTIG EQUALS VGPREV
034018,000890: 
034019,000891:                                                                                                  #  OUTPUT
034020,000892: 
034021,000893:                                                                                                  #  STEERSW         SEE INPUT
034022,000894:                                                                                                  #  IMPULSW         1 = ENGINE OFF IN TGO CENTISECONDS;  0 = CONTINUE BURN
034023,000895:                                                                                                  #  TGO             TIME TO CUT-OFF 2(28)   CS
034024,000896:                                                                                                  #  SEE FINDCDUW FOR STEERING OUTPUTS.
034025,000897: 
034026,000898:                                                                                                  #  SUBROUTINE CALLED
034027,000899: 
034028,000900:                                                                                                  #       FINDCDUW
034029,000901: 
034030,000902:                                                                                                  #  DEBRIS
034031,000903: 
034032,000904:                                                                                                  #       MPACS, PUSHLIST
034033,000905: 
034034,000906: 27,2472                                           COUNT*   $$/S40.8                              
034035,000907: 

Page 778

034037,000909: 27,2472  E6,1420                                  EBANK=   OMEGAQ                                
034038,000910: 27,2472           43175        S40.8              VLOAD    BON                                   
034039,000911: 27,2473           03705                                    VGPREV                                
034040,000912: 27,2474           01307                                    XDELVFLG                              
034041,000913: 27,2475           56502                                    VGNEW                                 
034042,000914: 27,2476           53214                           BOFF     VAD                                   
034043,000915: 27,2477           03344                                    FIRSTFLG                              
034044,000916: 27,2500           56502                                    VGNEW                                 
034045,000917: 27,2501           03671                                    BDT                                   
034046,000918: 27,2502           77651        VGNEW              VSU                                            
034047,000919: 27,2503           03525                                    DELVREF                               
034048,000920: 27,2504           03714        VGAIN*             STORE    VG                                    #  VELOCITY TO BE GAINED SCALED AT (7)M/CS
034049,000921: 27,2505           76521                           MXV      VSL1                                  
034050,000922: 27,2506           01734                                    REFSMMAT                              
034051,000923: 27,2507           03252                           STORE    UNFC/2                                
034052,000924: 27,2510           77214                           BON      VLOAD                                 
034053,000925: 27,2511           03304                                    FIRSTFLG                              
034054,000926: 27,2512           56515                                    BDTOK                                 
034055,000927: 27,2513           06424                                    HI6ZEROS                              
034056,000928: 27,2514           03671                           STORE    BDT                                   
034057,000929: 27,2515           51575        BDTOK              VLOAD    ABVAL                                 
034058,000930: 27,2516           03714                                    VG                                    
034059,000931: 27,2517           03662                           STORE    VGDISP                                
034060,000932: 27,2520           77201        TGOCALC            SETPD    VLOAD                                 
034061,000933: 27,2521           00001                                    0                                     
034062,000934: 27,2522           03714                                    VG                                    
034063,000935: 27,2523           27705                           STOVL    VGPREV                                
034064,000936: 27,2524           03525                                    DELVREF                               
034065,000937: 27,2525           57414                           BOFF     VCOMP                                 
034066,000938: 27,2526           01344                                    STEERSW                               
034067,000939: 27,2527           00052                                    QPRET                                 
034068,000940: 27,2530           77656                           UNIT                                           
034069,000941: 27,2531           41441                           DOT      PUSH                                  
034070,000942: 27,2532           03714                                    VG                                    
034071,000943: 27,2533           56244                           BPL      DDV                                   
034072,000944: 27,2534           56562                                    ALARMIT                               #  DELV IS MORE THAN 90 DEGREES FROM VG.
034073,000945: 27,2535           03742                                    VEX                                   
034074,000946: 27,2536           41215                           DAD      DMP                                   
034075,000947: 27,2537           06422                                    DPHALF                                
034076,000948: 27,2540           56261                           SR       DDV                                   
034077,000949: 27,2541           20613                                    10D                                   
034078,000950: 27,2542           00045                                    36D                                   
034079,000951: 27,2543           43205                           DMP      DAD                                   
034080,000952: 27,2544           16571                                    -FOURDT                               
034081,000953: 27,2545           03740                                    TDECAY                                
034082,000954: 27,2546           03515                           STORE    TGO                                   
034083,000955: 27,2547           77615                           DAD                                            
034084,000956: 27,2550           01235                                    PIPTIME                               
034085,000957: 27,2551           17440                           STODL    TIG                                   
034086,000958: 27,2552           03515                                    TGO                                   
034087,000959: 

Page 779

034089,000961: 27,2553           51025                           DSU      BPL                                   
034090,000962: 27,2554           16573                                    FOURSECS                              #  400 CS
034091,000963: 27,2555           61062                                    FINDCDUW   -2                         
034092,000964: 27,2556           43014                           SET      CLRGO                                 
034093,000965: 27,2557           01066                                    IMPULSW                               
034094,000966: 27,2560           01224                                    STEERSW                               
034095,000967: 27,2561           00052                                    QPRET                                 
034096,000968: 
034097,000969: 
034098,000970: 27,2562           77776        ALARMIT            EXIT                                           
034099,000971: 27,2563           05567                           TC       ALARM                                 
034100,000972: 27,2564           01407                           OCT      01407                                 
034101,000973: 27,2565           06036                           TC       INTPRET                               
034102,000974: 27,2566           77650                           GOTO                                           #  SKIP TGO COMPUTATION BUT CALL FINDCDUW.
034103,000975: 27,2567           61062                                    FINDCDUW   -2                         #  FINDCDUW WILL EXIT TO UPDATEVG +3.
034104,000976: 
034105,000977: 27,2570           77715 77777  -FOURDT            2DEC     -800       B-18                       #  -4 (200 CS.)  B(-18)
034106,000978: 27,2572           00000 00620  FOURSECS           2DEC     400        B-28                       #  400 CS SCALED AT 2(+28)CS
034107,000979: 27,2574  E7,1741               2VEXHUST           =        VEX                                   
034108,000980: 

Page 780

034110,000982:                                                                                                  #  NAME     S40.13 - TIMEBURN
034111,000983:                                                                                                  #  FUNCTION        (1) DETERMINE WHETHER A GIVEN COMBINATION OF VELOCITY TO
034112,000984:                                                                                                  #                  BE GAINED AND ENGINE CHOICE RESULT IN A BURN TIME
034113,000985:                                                                                                  #                  SUFFICIENT TO ALLOW STEERING AT THE VEHICLE DURING THE
034114,000986:                                                                                                  #                  BURN
034115,000987:                                                                                                  #                  (2) THE MAGNITUDE OF THE RESULTING BURN TIME -- IF IT
034116,000988:                                                                                                  #                  IS SHORT --  AND THE ASSOCIATED TIME OF THE ENGINE OFF
034117,000989:                                                                                                  #                  SIGNAL
034118,000990:                                                                                                  #  CALLING SEQUENCE  VIA FINDVAC AS A NEW JOB
034119,000991:                                                                                                  #  INPUT           VGTIG VELOCITY TO BE GAINED VECTOR (METERS/CS) AT +7
034120,000992:                                                                                                  #                  WEIGHT/G MASS OF VEHICLE IN KGM AT +16
034121,000993:                                                                                                  #                  F  APS ENGINE THRUST IN M.NEWTONS AT +7
034122,000994:                                                                                                  #                  AND ALSO FOR RCS ENGINE
034123,000995:                                                                                                  #                  MDOT RATE OF DECREASE OF VEHICLE MASS DURING ENGINE
034124,000996:                                                                                                  #                  BURN IN KILOGRAMS/CS  AT +3 . THIS SCALING MAY
034125,000997:                                                                                                  #                  REQUIRE MODIFICATION FOR SATURN BURNS.
034126,000998:                                                                                                  #           ENG1FLAG     SWITCH TO DECIDE WHETHER APS OR DPS ENGINE IS USED
034127,000999:                                                                                                  #                   =0   DPS
034128,001000:                                                                                                  #                   =1   APS
034129,001001:                                                                                                  #  OUTPUT          IMPULSW  ZERO FOR STEERING
034130,001002:                                                                                                  #                           ONE FOR ATTITUDE HOLD
034131,001003:                                                                                                  #                  NOTHROTL  ZERO FOR THROTTLING
034132,001004:                                                                                                  #                            ONE  TO INHIBIT THROTTLING
034133,001005:                                                                                                  #                  TGO  TIME TO BURN IN CS
034134,001006:                                                                                                  #           THE QUANTITY M.NEWTON = 10000 NEWTONS WILL BE USED TO EXPRESS
034135,001007:                                                                                                  #                  FORCE
034136,001008: 
034137,001009: 
034138,001010: 27,2574  E7,1514                                  EBANK=   TGO                                   
034139,001011: 27,2574                                           COUNT*   $$/40.13                              
034140,001012: 27,2574           06036        S40.13             TC       INTPRET                               
034141,001013: 27,2575           43001                           SETPD    CLEAR                                 
034142,001014: 27,2576           00001                                    00D                                   
034143,001015: 27,2577           01266                                    IMPULSW                               #  ASSUME NO STEERING UNTIL FOUND OTHERWISE
034144,001016: 27,2600           51575                           VLOAD    ABVAL                                 
034145,001017: 27,2601           03705                                    VGTIG                                 #  VELOCITY TO BE GAINED AT +7
034146,001018: 27,2602           41325                           PDDL     DMP                                   #  00D = MAG OF VGTIG AT +7
034147,001019: 27,2603           16742                                    7SEC                                  #  700 CS AT + 18
034148,001020: 27,2604           34017                                    FRCS2                                 
034149,001021: 27,2605           62471                           DDV      SL2                                   #  SCALE
034150,001022: 27,2606           01245                                    WEIGHT/G                              
034151,001023: 27,2607           41421                           BDSU     PUSH                                  
034152,001024: 27,2610           43014                           BOFF     SET                                   
034153,001025: 27,2611           05342                                    APSFLAG                               
034154,001026: 27,2612           56662                                    S40.13D                               #  FOR DPS ENGINE
034155,001027: 27,2613           02463                                    NOTHROTL                              
034156,001028: 27,2614           56345                           DLOAD    DDV                                   #  00D = MAG OF VGTIG CORRECTED
034157,001029: 27,2615           16001                                    K1VAL                                 #  M.NEWTONS-CS AT +24
034158,001030: 27,2616           01245                                    WEIGHT/G                              
034159,001031: 27,2617           50021                           BDSU     BMN                                   
034160,001032: 

Page 781

034162,001034: 27,2620           00001                                    00D                                   
034163,001035: 27,2621           56644                                    S40.131                               #  TGO LESS THAN 100 CS
034164,001036: 27,2622           41325                           PDDL     DMP                                   #  02D = TEMP1 AT +7
034165,001037: 27,2623           03736                                    MDOT                                  
034166,001038: 
034167,001039:                                                                                                  #  MDOT REPRESENTS THE RATE OF DECREASE OF VEHICLE MASS DURING ENGINE
034168,001040:                                                                                                  #  BURN IN KILOGRAMS/CS .  WHEN  SATURN IS USED , THE SCALING MAY
034169,001041:                                                                                                  #  REQUIRE ADJUSTMENT
034170,001042: 
034171,001043: 27,2624           16734                                    3.5SEC                                #  350 CS AT +14
034172,001044: 27,2625           65221                           BDSU     PDDL                                  
034173,001045: 27,2626           01245                                    WEIGHT/G                              
034174,001046: 27,2627           03734                                    F                                     
034175,001047: 27,2630           60405                           DMP      SR2                                   #  SCALE
034176,001048: 27,2631           16736                                    5SECS                                 
034177,001049: 27,2632           41471                           DDV      PUSH                                  #  04D = TEMP2
034178,001050: 27,2633           51021                           BDSU     BPL                                   
034179,001051: 27,2634           00003                                    02D                                   
034180,001052: 27,2635           56662                                    S40.13D                               
034181,001053: 27,2636           55345                           DLOAD    BDDV                                  
034182,001054: 27,2637           43205                           DMP      DAD                                   
034183,001055: 27,2640           16736                                    5SECS                                 
034184,001056: 27,2641           16732                                    1SEC2D                                #  100 CS AT +14
034185,001057: 27,2642           77650                           GOTO                                           
034186,001058: 27,2643           56652                                    S40.132                               
034187,001059: 27,2644           41345        S40.131            DLOAD    DMP                                   
034188,001060: 27,2645           01245                                    WEIGHT/G                              
034189,001061: 27,2646           41542                           SR1      PUSH                                  
034190,001062: 27,2647           56215                           DAD      DDV                                   
034191,001063: 27,2650           16003                                    K2VAL                                 #  M.NEWTON CS AT +24
034192,001064: 27,2651           16005                                    K3VAL                                 #  M.NEWTON CS AT +10
034193,001065: 27,2652           77414        S40.132            SET      EXIT                                  
034194,001066: 27,2653           01066                                    IMPULSW                               
034195,001067: 27,2654           07256        S40.132*           TC       TPAGREE                               
034196,001068: 27,2655           30154                           CA       MPAC                                  
034197,001069: 27,2656           56001                           XCH      L                                     
034198,001070: 27,2657           34755                           CA       ZERO                                  
034199,001071: 27,2660           53515                           DXCH     TGO                                   
034200,001072: 27,2661           12704                           TCF      S40.134                               
034201,001073: 
034202,001074: 27,2662           41345        S40.13D            DLOAD    DMP                                   #  FOR DPS ENGINE
034203,001075: 27,2663           00001                                    00D                                   
034204,001076: 27,2664           01245                                    WEIGHT/G                              
034205,001077: 27,2665           43006                           PUSH     BON                                   
034206,001078: 27,2666           05302                                    APSFLAG                               
034207,001079: 27,2667           56725                                    APSTGO                                
034208,001080: 27,2670           43071                           DDV      CLEAR                                 
034209,001081: 27,2671           16007                                    S40.136                               
034210,001082: 27,2672           02663                                    NOTHROTL                              
034211,001083: 27,2673           41400                           BOV      PUSH                                  
034212,001084: 

Page 782

034214,001086: 27,2674           56707                                    S40.130V                              
034215,001087: 27,2675           51025        S40.137            DSU      BPL                                   
034216,001088: 27,2676           16740                                    6SEC                                  #  600.0 CS AT +14
034217,001089: 27,2677           56715                                    S40.138                               
034218,001090: 27,2700           52015                           DAD      GOTO                                  
034219,001091: 27,2701           16740                                    6SEC                                  
034220,001092: 27,2702           56652                                    S40.132                               
034221,001093: 27,2703           77776        S40.133            EXIT                                           
034222,001094: 27,2704           05353        S40.134            TC       PHASCHNG                              
034223,001095: 27,2705           00003                           OCT      00003                                 
034224,001096: 27,2706           05155                           TC       ENDOFJOB                              
034225,001097: 27,2707           40545        S40.130V           DLOAD    SR4                                   #  RECOMPUTE TGO IN TIME2 UNITS
034226,001098: 27,2710           77671                           DDV                                            
034227,001099: 27,2711           16011                                    S40.136_                              #  S40.136 SHIFTED LEFT 10
034228,001100: 27,2712           03515                           STORE    TGO                                   
034229,001101: 27,2713           77776                           EXIT                                           
034230,001102: 27,2714           12704                           TCF      S40.134                               #  REJOIN COMMON CODING FOR RESTART PROTECT
034231,001103: 
034232,001104: 27,2715           51025        S40.138            DSU      BPL                                   
034233,001105: 27,2716           16744                                    89SECS                                
034234,001106: 27,2717           56722                                    STORETGO                              
034235,001107: 27,2720           77614                           SET                                            
034236,001108: 27,2721           02463                                    NOTHROTL                              
034237,001109: 27,2722           77745        STORETGO           DLOAD                                          #  LOAD TGO AT 2(14)
034238,001110: 27,2723           77776                           EXIT                                           
034239,001111: 27,2724           12654                           TCF      S40.132*                              
034240,001112: 
034241,001113: 27,2725           62471        APSTGO             DDV      SL2                                   
034242,001114: 27,2726           34007                                    FAPS                                  
034243,001115: 27,2727           77650                           GOTO                                           
034244,001116: 27,2730           56723                                    STORETGO   +1                         
034245,001117: 27,2731           00144 00000  1SEC2D             2DEC     100.0      B-14                       #  100.0 CS AT +14
034246,001118: 27,2733           01274 00000  3.5SEC             2DEC     350.0      B-13                       #  350 CS AT +13
034247,001119: 27,2735           00764 00000  5SECS              2DEC     500.0      B-14                       #  500.0 CS AT +14
034248,001120: 27,2737           01130 00000  6SEC               2DEC     600.0      B-14                       #  600.0 CS AT +14
034249,001121: 27,2741           00053 30000  7SEC               2DEC     700.0      B-18                       #  700.0 CS AT + 18
034250,001122: 27,2743           21304 00000  89SECS             2DEC     8900.0     B-14                       
034251,001123:                                                                                                  #  FUNCTION    (1) GENERATES REQUIRED VELOCITY AND VELOCITY-TO-BE-GAINED
034252,001124:                                                                                                  #              VECTORS FOR USE DURING AIMPOINT MANEUVERS EVERY TWO
034253,001125:                                                                                                  #              COMPUTATION CYCLES (4 SECONDS).
034254,001126:                                                                                                  #              (2) UPDATES THE B VECTOR WHICH IS USED IN THE FINAL
034255,001127:                                                                                                  #              CALCULATION OF EXTRAPOLATING THE VELOCITY-TO-BE-GAINED
034256,001128:                                                                                                  #              THROUGH ONE 2-SECOND INTERVAL INTO THE FUTURE.
034257,001129:                                                                                                  #  CALLING SEQ VIA FINDVAC AS NEW JOB.
034258,001130: 

Page 783

034260,001132:                                                                                                  #  INPUT       RN       - ACTIVE VEHICLE RADIUS VECTOR IN METERS AT +29.
034261,001133:                                                                                                  #              VN       - ACTIVE VEHICLE VELOCITY VECTOR IN METERS/CS AT +7
034262,001134:                                                                                                  #              VRPREV   - LAST COMPUTED VELOCITY REQUIRED VECTOR IN
034263,001135:                                                                                                  #                         METERS/CS AT +7.
034264,001136:                                                                                                  #              TIG      - TIME OF IGNITION IN CS AT +28.
034265,001137:                                                                                                  #              DLTARG   - COMPUTATION CYCLE INTERVAL = 200 CS AT +28.
034266,001138:                                                                                                  #              PIPTIME  - TIME OF RN AND VN IN CS AT +28.
034267,001139:                                                                                                  #              GDT/2    - HALF OF VELOCITY GAINED IN DELTA T TIME DUE TO
034268,001140:                                                                                                  #                         ACCERERATION OF GRAVITY IN METERS/CS AT +7.
034269,001141:                                                                                                  #              DELVREF  - CHANGE IN VELOCITY DURING LAST 2 SEC IN
034270,001142:                                                                                                  #                         METERS/CS AT +7.
034271,001143:                                                                                                  #  OUTPUT      VGPREV   - VELOCITY TO BE GAINED VECTOR IN METERS/CS AT +7.
034272,001144:                                                                                                  #              VGDISP   - MAG OF VGPREV FOR DISPLAY PURPOSES.
034273,001145:                                                                                                  #              VRPREV   - VELOCITY REQUIRED VECTOR IN METERS/CS AT +7.
034274,001146:                                                                                                  #              BDT      - B VECTOR IN METERS/CS AT +7.
034275,001147:                                                                                                  #  SUBROUTINES USED  -  INITVEL
034276,001148: 
034277,001149: 27,2745  E7,1704                                  EBANK=   VGPREV                                
034278,001150: 27,2745                                           COUNT*   $$/S40.9                              
034279,001151: 27,2745           06036        S40.9              TC       INTPRET                               
034280,001152: 27,2746           77201                           SETPD    VLOAD                                 
034281,001153: 27,2747           00001                                    00D                                   
034282,001154: 27,2750           01221                                    RN                                    #  ACTIVE VEHICLE RADIUS VECTOR AT T1
034283,001155: 27,2751           26327                           STOVL    RINIT                                 
034284,001156: 27,2752           01227                                    VN                                    #  ACTIVE VEHICLE VELOCITY VECTOR AT T1
034285,001157: 27,2753           16335                           STODL    VINIT                                 
034286,001158: 27,2754           01235                                    PIPTIME                               
034287,001159: 27,2755           03730                           STORE    TNIT                                  
034288,001160: 27,2756           77621                           BDSU                                           
034289,001161: 27,2757           03627                                    TPASS4                                
034290,001162: 27,2760           03450                           STORE    DELLT4                                #  T2 - T1
034291,001163: 27,2761           71214                           SET      DLOAD                                 
034292,001164: 27,2762           01072                                    AVFLAG                                #  SET AVFLAG FOR LEM ACTIVE
034293,001165: 27,2763           06424                                    HI6ZEROS                              
034294,001166: 27,2764           77725                           PDDL                                           
034295,001167: 27,2765           16431                                    EPS1                                  
034296,001168: 27,2766           43214                           BOFF     DAD                                   #  EPSILON4 = 10 OR 45 DEGREES.
034297,001169: 27,2767           03745                                    NORMSW                                
034298,001170: 27,2770           56772                                    EPSSMALL                              
034299,001171: 27,2771           16433                                    EPS2                                  
034300,001172: 27,2772           77606        EPSSMALL           PUSH                                           
034301,001173: 27,2773           45014        S40.92             BOFSET   CALL                                  
034302,001174: 27,2774           03044                                    FIRSTFLG                              
034303,001175: 27,2775           57102                                    INITINIT                              
034304,001176: 27,2776           22002                                    HAVEGUES                              
034305,001177: 27,2777           52375                           VLOAD    VSU                                   
034306,001178: 27,3000           02343                                    VIPRIME                               
034307,001179: 27,3001           03722                                    VRPREV                                
034308,001180: 27,3002           45325                           PDDL     DSU                                   
034309,001181: 27,3003           03730                                    TNIT                                  
034310,001182: 27,3004           03732                                    TNITPREV                              
034311,001183: 

Page 784

034313,001185: 27,3005           74265                           BDDV     VXSC                                  
034314,001186: 27,3006           17101                                    100B28                                
034315,001187: 27,3007           76451                           VSU      VSL1                                  
034316,001188: 27,3010           01237                                    GDT/2                                 
034317,001189: 27,3011           03671                           STORE    BDT                                   
034318,001190: 27,3012           53135        FIRSTTME           SLOAD    BZE                                   
034319,001191: 27,3013           03377                                    RTX2                                  
034320,001192: 27,3014           57020                                    GETGOBL                               
034321,001193: 27,3015           52175                           VLOAD    GOTO                                  #  NO OBLATENESS COMP IF IN MOON SPHERE
034322,001194: 27,3016           03366                                    DELVEET3                              
034323,001195: 27,3017           57034                                    NOGOBL                                
034324,001196: 27,3020           53575        GETGOBL            VLOAD    UNIT                                  #  CALCULATE OBLATENESS TERM.
034325,001197: 27,3021           01221                                    RN                                    
034326,001198: 27,3022           45345                           DLOAD    DSU                                   
034327,001199: 27,3023           01235                                    PIPTIME                               #               2
034328,001200: 27,3024           03510                                    GOBLTIME                              #  G    = -(MU/R )(UNITGOBL)(T - TIG)
034329,001201: 27,3025           56205                           DMP      DDV                                   #   OBL
034330,001202: 27,3026           16013                                    EARTHMU                               
034331,001203: 27,3027           00043                                    34D                                   #  34D = /RN/ (2) FROM UNIT OPERATION.
034332,001204: 27,3030           53361                           VXSC     VAD                                   
034333,001205: 27,3031           03517                                    UNITGOBL                              
034334,001206: 27,3032           03366                                    DELVEET3                              #  OUTPUT FROM INITVEL VG = VR - VN
034335,001207: 27,3033           03366                           STORE    DELVEET3                              #  VG = VR + GOBL - VN
034336,001208: 27,3034           77646        NOGOBL             ABVAL                                          
034337,001209: 27,3035           17662                           STODL    VGDISP                                
034338,001210: 27,3036           03730                                    TNIT                                  
034339,001211: 27,3037           03732                           STORE    TNITPREV                              
034340,001212: 27,3040           77776                           EXIT                                           
034341,001213: 27,3041           05353                           TC       PHASCHNG                              
034342,001214: 27,3042           05022                           OCT      05022                                 
034343,001215: 27,3043           14000                           OCT      14000                                 
034344,001216: 27,3044           06036                           TC       INTPRET                               
034345,001217: 27,3045           77775                           VLOAD                                          
034346,001218: 27,3046           02343                                    VIPRIME                               #  VR(T)
034347,001219: 27,3047           03722                           STORE    VRPREV                                
034348,001220: 27,3050           77776                           EXIT                                           
034349,001221: 27,3051           05353                           TC       PHASCHNG                              
034350,001222: 27,3052           04022                           OCT      04022                                 
034351,001223: 27,3053           06036                           TC       INTPRET                               
034352,001224: 27,3054           77214                           BON      VLOAD                                 
034353,001225: 27,3055           01305                                    CYCLESW                               
034354,001226: 27,3056           57064                                    S40.91                                
034355,001227: 27,3057           03366                                    DELVEET3                              
034356,001228: 27,3060           03705                           STORE    VGPREV                                
034357,001229: 27,3061           52014                           SET      GOTO                                  
034358,001230: 27,3062           01065                                    CYCLESW                               
034359,001231: 27,3063           57074                                    ENDS40.9                              
034360,001232: 27,3064           53375        S40.91             VLOAD    VAD                                   #  EXTRAPOLATE FOR V TO GAIN
034361,001233: 27,3065           03366                                    DELVEET3                              
034362,001234: 27,3066           03671                                    BDT                                   
034363,001235: 

Page 785

034365,001237: 27,3067           77651                           VSU                                            
034366,001238: 27,3070           03525                                    DELVREF                               
034367,001239: 27,3071           03705                           STORE    VGPREV                                
034368,001240: 27,3072           77646                           ABVAL                                          
034369,001241: 27,3073           03662                           STORE    VGDISP                                #  FOR DISPLAY PURPOSES
034370,001242: 27,3074           77776        ENDS40.9           EXIT                                           
034371,001243: 27,3075           05353                           TC       PHASCHNG                              
034372,001244: 27,3076           00002                           OCT      2                                     
034373,001245: 27,3077           05155                           TC       ENDOFJOB                              
034374,001246: 27,3100           00000 00144  100B28             2DEC     100        B-28                       
034375,001247: 27,3102           77624        INITINIT           CALL                                           
034376,001248: 27,3103           22002                                    HAVEGUES                              
034377,001249: 27,3104           77650                           GOTO                                           
034378,001250: 27,3105           57012                                    FIRSTTME                              
034379,001251:                                                                                                  #  MOD 0     24 FEB 67     PETER ADLER
034380,001252:                                                                                                  #  FUNCTION:
034381,001253:                                                                                                  #           TRIMS DPS ENGINE TO MINIMIZE THRUST/CG OFFSET. ENGINE IS GIMBALLED TO FULL + PITCH AND + ROLL (TO LOCK)
034382,001254:                                                                                                  #           FOR REFERENCE AND IS THEN BROUGHT BACK TO TRIM POSITION BY RUNNING FOR THE PROPER TIMES (TO BE
034383,001255:                                                                                                  #           SPECIFIED BY GAEC) IN - PITCH AND - ROLL.
034384,001256:                                                                                                  #  CALLING SEQUENCE:
034385,001257:                                                                                                  #           VIA WAITLIST FROM R03
034386,001258:                                                                                                  #  INPUT:
034387,001259:                                                                                                  #           PITTIME     TIME TO RUN FROM FULL + PITCH TO TRIM  (CS)
034388,001260:                                                                                                  #           ROLLTIME    TIME TO RUN FROM FULL + ROLL  TO TRIM  (CS)
034389,001261:                                                                                                  #  SUBROUTINES USED:
034390,001262:                                                                                                  #           WAITLIST, FIXDELAY, VARDELAY, FLAGUP, FLAGDOWN, NOVAC
034391,001263: 
034392,001264: 27,3106                                           COUNT*   $$/S40.6                              
034393,001265: 27,3106  E6,1401                                  EBANK=   ROLLTIME                              #  OCTAL MASKS:  PRIO5=05000 EBANK5=02400
034394,001266: 
034395,001267: 27,3106           05516        TRIMGIMB           TC       DOWNFLAG                              #  GMBDRVSW FLAG IS SET WHEN EITHER ROLL OR
034396,001268: 27,3107           00137                           ADRES    GMBDRVSW                              #  PITCH IS COMPLETED, WHICHEVER IS FIRST.
034397,001269: 
034398,001270: 27,3110           45017                           CS       PRIO5                                 #  TURN OFF - PITCH, - ROLL, IF ON.
034399,001271: 27,3111           00006                           EXTEND                                         
034400,001272: 27,3112           03012                           WAND     CHAN12                                
034401,001273: 27,3113           35014                           CAF      EBANK5                                #  TURN ON + PITCH, + ROLL.
034402,001274: 27,3114           00006                           EXTEND                                         
034403,001275: 27,3115           05012                           WOR      CHAN12                                
034404,001276: 27,3116           05221                           TC       FIXDELAY                              #  WAIT ONE MINUTE TO MAKE SURE ENGINE IS
034405,001277: 27,3117           13560                           DEC      6000       B-14                       #  AT FULL + PITCH AND FULL + ROLL
034406,001278: 27,3120           45014                           CS       EBANK5                                #  TURN OFF + PITCH, + ROLL.
034407,001279: 27,3121           00006                           EXTEND                                         
034408,001280: 27,3122           03012                           WAND     CHAN12                                
034409,001281: 27,3123           35017                           CAF      PRIO5                                 #  TURN ON - PITCH, - ROLL.
034410,001282: 27,3124           00006                           EXTEND                                         
034411,001283: 27,3125           05012                           WOR      CHAN12                                
034412,001284: 27,3126           31402                           CAE      PITTIME                               #  GET TIME TO SHUT OFF - PITCH AND SET UP
034413,001285: 27,3127           05173                           TC       TWIDDLE                               #  TWIDDLE-TASK TO TURN IT OFF THEN
034414,001286: 

Page 786

034416,001288: 27,3130           03147                           ADRES    PITCHOFF                              
034417,001289: 
034418,001290: 27,3131           31401                           CAE      ROLLTIME                              #  GET TIME TO SHUT OFF - ROLL AND GO AWAY
034419,001291: 27,3132           05224                           TC       VARDELAY                              #  UNTIL THEN
034420,001292: 27,3133           44740                           CS       BIT12                                 
034421,001293: 27,3134           00006                           EXTEND                                         
034422,001294: 27,3135           03012                           WAND     CHAN12                                #  SHUT OFF ROLL
034423,001295: 27,3136           30102        ROLLOVER           CA       FLAGWRD6                              #  IF HERE INLINE (ROLL DONE) IS PITCH DONE
034424,001296: 27,3137           74742                           MASK     GMBDRBIT                              #  IF HERE FROM PITCHOFF, IS ROLL DONE?
034425,001297: 27,3140           00006                           EXTEND                                         
034426,001298: 27,3141           13153                           BZF      PITCHOFF   +4                         #  NO.  SET FLAG, ROLL OR PITCH DONE.
034427,001299: 27,3142           34737                           CAF      PRIO10                                #  RETURN TO R03
034428,001300: 27,3143           05072                           TC       NOVAC                                 
034429,001301: 27,3144  E7,1467                                  EBANK=   WHOCARES                              
034430,001302: 27,3144           02320 02067                     2CADR    TRIMDONE                              
034431,001303: 27,3146           05261                           TC       TASKOVER                              
034432,001304: 27,3147           44742        PITCHOFF           CS       BIT10                                 
034433,001305: 27,3150           00006                           EXTEND                                         
034434,001306: 27,3151           03012                           WAND     CHAN12                                #  SHUT OFF PITCH
034435,001307: 27,3152           13136                           TCF      ROLLOVER                              #  SEE IF ROLL HAS FINISHED ALSO.
034436,001308: 27,3153           05504                           TC       UPFLAG                                #  ROLL DONE; OR PITCH DONE; BUT NOT BOTH.
034437,001309: 27,3154           00137                           ADRES    GMBDRVSW                              
034438,001310: 27,3155           05261                           TC       TASKOVER                              
034439,001311: 

Page 787

034441,001313:                                                                                                  #  SUBROUTINE NAME: S41.1          MOD. NO. 0  DATE: FEBRUARY 28, 1967
034442,001314: 
034443,001315:                                                                                                  #                          MOD. NO. 1  DATE: JANUARY 23, 1968: BY PETER ADLER (MIT/IL)
034444,001316: 
034445,001317:                                                                                                  #  AUTHOR: JONATHAN D. ADDELSTON (ADAMS ASSOCIATES)
034446,001318: 
034447,001319:                                                                                                  #  S41.1 PERFORMS THE COORDINATE SYSTEM TRANFORMATION FROM THE REFERENCE FRAME TO THE BODY OF THE LM.
034448,001320:                                                                                                  #  SPECIFICALLY, IT IS USED TO TRANSFORM A VELOCITY (SCALED AT 2(+7) METERS/CENTISECOND) FROM REFERENCE TO LM AXIS
034449,001321:                                                                                                  #  COORDINATES.  FIRST THE VECTOR IS TRANSFORMED TO THE STABLE MEMBER COORDINATES BY THE MATRIX REFSMMAT.  THIS
034450,001322:                                                                                                  #  LEAVES THE VECTOR IN MPAC, SCALED AT 2(+8) METERS/CENTISECOND.  THEN
034451,001323:                                                                                                  #  THE SUBROUTINE CDUTRIG IS CALLED TO SET UP THE DOUBLE-PRECISION CDU VECTOR ALONG WITH ITS SINES AND COSINES.
034452,001324:                                                                                                  #  THE VECTOR IS THEN TRANSFORMED FROM STABLE MEMBER COORDINATES TO SPACECRAFT (OR LM) COORDINATES BY THE
034453,001325:                                                                                                  #  SUBROUTINE *SMNB*.  FINALLY( THE VECTOR IS RESCALED TO 2(+7) METERS/CENTISECOND, AND CONTROL IS RETURNED TO THE
034454,001326:                                                                                                  #  CALLER WITH C(MPAC) = VELOCITY(LM).
034455,001327: 
034456,001328: 
034457,001329:                                                                                                  #  CALLING SEQUENCE:
034458,001330:                                                                                                  #                                          L        VLOAD  CALL
034459,001331:                                                                                                  #                                          L +1            VELOCITY(REF)   SCALED AT 2(+7)M/CS IN REFERENCE COORDS.
034460,001332:                                                                                                  #                                          L +2            S41.1
034461,001333:                                                                                                  #                                          L +3     STORE  VELOCITY(LM)    SCALED AT 2(+7)M/CS IN LM BODY AXIS SYS.
034462,001334: 
034463,001335:                                                                                                  #  SUBROUTINES CALLED:
034464,001336: 
034465,001337:                                                                                                  #           1.  CDUTRIG,
034466,001338:                                                                                                  #                  WHICH CALLS CDULOGIC.
034467,001339:                                                                                                  #           2.  *SMNB*
034468,001340: 
034469,001341:                                                                                                  #  NORMAL RETURN: L +3 (SEE CALLING SEQUENCE, ABOVE.)
034470,001342: 
034471,001343:                                                                                                  #  ALARM/ABORT MODES: NONE.
034472,001344: 
034473,001345:                                                                                                  #  RESTART PROTECTION: NONE.
034474,001346: 

Page 788

034476,001348:                                                                                                  #  INPUT:
034477,001349: 
034478,001350:                                                                                                  #           1.  REFSMMAT.
034479,001351:                                                                                                  #           2.  CDUX, CDUY, CDUZ.
034480,001352:                                                                                                  #           3.  VELOCITY (REF) IN MPAC.
034481,001353: 
034482,001354:                                                                                                  #  OUTPUT:
034483,001355: 
034484,001356:                                                                                                  #           1.  CDUSPOT:  DOUBLE PRECISION CDU VECTOR, ORDERED Y,Z,X.
034485,001357:                                                                                                  #           2.  SINCDU:   HALF SINES OF CDUSPOT COMPONENTS.
034486,001358:                                                                                                  #           3.  COSCDU:   HALF COSINES OF CDUSPOT COMPONENTS.
034487,001359:                                                                                                  #           4.  MPAC:     VELOCITY(LM) (SCALED AT 2(+7) METERS/CENTISECOND)
034488,001360: 
034489,001361:                                                                                                  #  DEBRIS: NONE.
034490,001362: 
034491,001363:                                                                                                  #  CHECKOUT STATUS:  CODED.
034492,001364: 
034493,001365: 27,3156                                           COUNT*   $$/S41.1                              
034494,001366: 27,3156           76521        S41.1              MXV      VSL1                                  #  CONVERT VECTOR IN MPAC FROM REF AT 2(+7)
034495,001367: 27,3157           01734                                    REFSMMAT                              #  TO SM AND RESCALE DUE TO HALFUNIT MATRIX
034496,001368: 27,3160           77650                           GOTO                                           #  CONVERT TO BODY AT 2(+7) USING PRESENT
034497,001369: 27,3161           47552                                    CDU*SMNB                              #  CDU ANGLES.  CDU*SMNB WILL RETURN
034498,001370:                                                                                                  #  VIA RVQ TO THE CALLER OF S41.1

End of include-file P40-P47.agc.  Parent file is MAIN.agc