Source Code
These source-code files were from the printout at the MIT Museum, with many thanks
to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing
it to us. The printout was digitally photographed by Paul Fjeld. A team of
volunteers transcribed the source code manually from these images or, where
appropriate, modified already-transcribed but similar source Luminary 131 (Apollo 13)
source code to agree with the images from the printout. Note that the page images
presented online are of reduced quality, and that higher-quality images
are available. Report any conversion errors or legibility
problems in page images to info@sandroid.org.
Notations on the program listing read, in part:GAP: ASSEMBLE REVISION 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061 16:27 JULY 14,1969Note that the date is the date of the printout, not the date of the program revision. |
051421,000002: ## Copyright: Public domain.
051422,000003: ## Filename: INTEGRATION_INITIALIZATION.agc
051423,000004: ## Purpose: Part of the source code for Luminary 1A build 099.
051424,000005: ## It is part of the source code for the Lunar Module's (LM)
051425,000006: ## Apollo Guidance Computer (AGC), for Apollo 11.
051426,000007: ## Assembler: yaYUL
051427,000008: ## Contact: Ron Burkey <info@sandroid.org>.
051428,000009: ## Website: www.ibiblio.org/apollo.
051429,000010: ## Pages: 1205-1226
051430,000011: ## Mod history: 2009-05-26 RSB Adapted from the corresponding
051431,000012: ## Luminary131 file, using page
051432,000013: ## images from Luminary 1A.
051433,000014: ## 2011-01-06 JL Fixed pseudo-label indentation.
051434,000015: ## 2016-12-17 RSB Proofed text comments with octopus/ProoferComments
051435,000016: ## and corrected the errors found.
051436,000017: ## 2017-01-22 MAS Fixed some lingering comment errors.
051437,000018: ## 2017-03-13 RSB Comment-text fixes noted in proofing Luminary 116.
051438,000019: ## 2017-03-15 RSB Comment-text fixes identified in 5-way
051439,000020: ## side-by-side diff of Luminary 69/99/116/131/210.
051440,000021: ## 2017-08-19 MAS Fixed comment errors found transcribing Zerlina 56.
051441,000022:
051442,000023: ## This source code has been transcribed or otherwise adapted from
051443,000024: ## digitized images of a hardcopy from the MIT Museum. The digitization
051444,000025: ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
051445,000026: ## the Museum. Many thanks to both. The images (with suitable reduction
051446,000027: ## in storage size and consequent reduction in image quality as well) are
051447,000028: ## available online at www.ibiblio.org/apollo. If for some reason you
051448,000029: ## find that the images are illegible, contact me at info@sandroid.org
051449,000030: ## about getting access to the (much) higher-quality images which Paul
051450,000031: ## actually created.
051451,000032: ##
051452,000033: ## Notations on the hardcopy document read, in part:
051453,000034: ##
051454,000035: ## Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
051455,000036: ## 16:27 JULY 14, 1969
051456,000037:
Page 1205 |
051458,000039: # 1.0 INTRODUCTION
051459,000040: # ----------------
051460,000041:
051461,000042: # FROM A USERS POINT OF VIEW, ORBITAL INTEGRATION IS ESSENTIALLY THE SAME AS THE 278 INTEGRATION
051462,000043: # PROGRAM. THE SAME ENTRANCES TO THE PROGRAM WILL BE MAINTAINED, THE SAME STALLING ROUTINE WILL BE USED AND
051463,000044: # OUTPUT WILL STILL BE VIA THE PUSHLIST. THE PRIMARY DIFFERENCES TO A USER INVOLVE THE ADDED CAPABILITY OF
051464,000045: # TERMINATING INTEGRATION AT A SPECIFIC FINAL RADIUS AND THE DIFFERENCE IN STATE VECTOR SCALING INSIDE AND OUT-
051465,000046: # SIDE THE LUNAR SPHERE OF INFLUENCE.
051466,000047:
051467,000048: # IN ORDER TO MAKE THE CSM(LEM)PREC AND CSM(LEM)CONIC ENTRANCES SIMILAR TO FLIGHT 278, THE INTEGRATION PROGRAM
051468,000049: # WILL ITSELF SET THE FINAL RADIUS (RFINAL) TO 0 SO THAT REACHING THE DESIRED TIME ONLY WILL TERMINATE
051469,000050: # INTEGRATION. THE DP REGISTER RFINAL MUST BE SET BY USERS OF INTEGRVS AND INTEGRV, AND MUST BE DONE AFTER THE
051470,000051: # CALL TC INTSTALL.
051471,000052:
051472,000053: # WHEN THE LM IS ON THE LUNAR SURFACE (INDICATED BY LUNAR SURFACE FLAG SET) CALLS TO LEMCONIC, LEMPREC, AND
051473,000054: # INTEGRV WITH VINFLAG = 0 WILL RESULT IN THE USE OF THE PLANETARY INERTIAL ORIENTATION SUBROUTINES TO PROVIDE
051474,000055: # BOTH THE LMS POSITION AND VELOCITY IN THE REFERENCE COORDINATE SYSTEM.
051475,000056: # THE PROGRAM WILL PROVIDE OUTPUT AS IF INTEGRATION WAS USED. THAT IS, THE PUSHLIST WILL BE SET AS NOTED BELOW AND
051476,000057: # THE PERMANENT STATE VECTOR UPDATED WHEN SPECIFIED BY AN INTEGRV CALL.
051477,000058:
051478,000059: # USERS OF INTEGRVS DESIRING INTEGRATION (INTYPFLG = 0) SHOULD NOTE THAT THE OBLATENESS PERTURBATION COMPUTATION
051479,000060: # IN LUNAR ORBIT IS TIME DEPENDENT. THEREFORE, THE USER SHOULD SUPPLY AN INITIAL STATE VECTOR VALID AT SOME REAL
051480,000061: # TIME AND THE DESIRED TIME (TDEC1) ALSO AT SOME REAL TIME. FOR CONIC ,,INTEGRATION,, THE USER MAY STILL USE ZERO
051481,000062: # AS THE INITIAL TIME AND DELTA TIME AS THE DESIRED TIME.
051482,000063:
051483,000064: # 2.0 GENERAL DESCRIPTION
051484,000065: # -----------------------
051485,000066:
051486,000067: # THE INTEGRATION PROGRAM OPERATES AS A CLOSED INTERPRETIVE SUBROUTINE AND PERFORMS THESE FUNCTIONS ---
051487,000068: # 1) INTEGRATES (PRECISION OR CONIC) EITHER CSM OR LM STATE VECTOR
051488,000069: # 2) INTEGRATES THE W-MATRIX
051489,000070: # 3) PERMANENT OR TEMPORARY UPDATE OF THE STATE VECTOR
051490,000071:
051491,000072: # THERE ARE SIX ENTRANCES TO THE INTEGRATION PROGRAM. FOUR OF THESE (CSMPREC, LEMPREC, CSMCONIC, LEMCONIC) SET
051492,000073: # ALL THE FLAGS REQUIRED IN THE INTEGRATION PROGRAM ITSELF TO CAUSE THE PRECISION OR CONIC INTEGRATION (KEPLER) OF
051493,000074: # THE LM OR CSM STATE VECTOR, AS THE NAMES SUGGEST. ONE ENTRANCE (INTEGRVS) PERMITS THE CALLING PROGRAM TO
051494,000075: # PROVIDE A STATE VECTOR TO BE INTEGRATED. THE CALLING PROGRAM MUST SET THE FLAGS INDICATING (1) PRECISION OR
051495,000076: # CONIC INTEGRATION, (2) IN OR OUT OF LUNAR SPHERE, (3) MIDCOURSE OR NOT, AND THE INTEGRATION PROGRAM COMPLETES
051496,000077: # THE FLAG SETTING TO BYPASS W-MATRIX INTEGRATION. THE LAST ENTRANCE (INTEGRV, USED IN GENERAL BY THE
051497,000078: # NAVIGATION PROGRAMS) PERMITS THE CALLER TO SET FIVE FLAGS (NOT MOONFLAG OR MIDFLAG) BUT NOT TO INPUT A STATE
051498,000079: # VECTOR. ANY PROGRAM WHICH CALLS INTEGRVS OR INTEGRV MUST CALL INTSTALL BEFORE IT SETS THE INTEGRATION FLAGS
051499,000080: # AND/OR STATE VECTOR.
051500,000081:
051501,000082: # THREE SETS OF 42 REGISTERS AND 2 FLAGS ARE USED FOR THE STATE VECTORS. TWO SETS, WHICH MAY NOT BE OVERLAYED, ARE
051502,000083: # USED FOR THE PERMANENT STATE VECTORS FOR THE CSM AND LM. THE THIRD SET, WHICH MAY BE OVERLAYED WHEN INTEGRATION
051503,000084: # IS NOT BEING DONE, IS USED IN THE COMPUTATIONS.
051504,000085:
051505,000086: # THE PERMANENT STATE VECTORS WILL BE PERIODICALLY UPDATED SO THAT THE VECTORS WILL NOT BE OLDER THAN 4 TIMESTEPS.
051506,000087: # THE PERMANENT STATE VECTORS WILL ALSO BE UPDATED WHENEVER THE W-MATRIX IS INTEGRATED OR WHEN A CALLER OF INTEGRV
051507,000088: # SETS STATEFLG (THE NAVIGATION PROGRAMS P20, P22.)
051508,000089:
Page 1206 |
051510,000091: # APPENDIX B OF THE USERS GUIDE LISTS THE STATE VECTOR QUANTITIES.
051511,000092:
051512,000093: # 2.1 RESTARTS
051513,000094:
051514,000095: # PHASE CHANGES WILL BE MADE IN THE INTEGRATION PROGRAM ONLY FOR THE INTEGRV ENTRANCE (I.E., WHEN THE W-MATRIX IS
051515,000096: # INTEGRATED OR PERMANENT STATE VECTOR IS UPDATED.) THE GROUP NUMBER USED WILL BE THAT FOR THE P20-25 PROGRAMS
051516,000097: # (I.E., GROUP2) SINCE THE INTEGRV ENTRANCE WILL ONLY BE USED BY THESE PROGRAMS. IF A RESTART OCCURS DURING AN
051517,000098: # INTEGRATION OF THE STATE VECTOR ONLY, THE RECOVERY WILL BE TO THE LAST PHASE IN THE CALLING PROGRAM. CALLING
051518,000099: # PROGRAMS WHICH USE THE INTEGRV OR INTEGRVS ENTRANCE OF INTEGRATION SHOULD ENSURE THAT IF PHASE CHANGING IS DONE
051519,000100: # THAT IT IS PRIOR TO SETTING THE INTEGRATION INPUTS IN THE PUSHLIST.
051520,000101: # THIS IS BECAUSE THE PUSHLIST IS LOST DURING A RESTART.
051521,000102:
051522,000103: # 2.2 SCALING
051523,000104:
051524,000105: # THE INTEGRATION ROUTINE WILL MAINTAIN THE PERMANENT MEMORY STATE VECTORS IN THE SCALING AND UNITS DEFINED IN
051525,000106: # APPENDIX B OF THE USERS GUIDE. THE SCALING OF THE OUTPUT POSITION VECTOR DEPENDS ON THE ORIGIN OF THE COORDINATE
051526,000107: # SYSTEM AT THE DESIRED INTEGRATION TIME. THE COORDINATE SYSTEM TRANSFORMATION WILL BE DONE AUTOMATICALLY ON
051527,000108: # MULTIPLE TIMESTEP ENCKE INTEGRATION ONLY. THUS IT IS POSSIBLE TO HAVE OUTPUT FROM SUCCESSIVE INTEGRATIONS IN
051528,000109: # DIFFERENT SCALING.
051529,000110: # HOWEVER, RATT, VATT WILL ALWAYS BE SCALED THE SAME.
051530,000111:
051531,000112: # 3.0 INPUT/OUTPUT
051532,000113: # ----------------
051533,000114:
051534,000115: # PROGRAM INPUTS ARE THE FLAGS DESCRIBED IN APPENDIX A AND THE PERMANENT STATE VECTOR QUANTITIES DESCRIBED IN AP-
051535,000116: # PENDIX B OF THE USERS GUIDE, PLUS THE DESIRED TIME TO INTEGRATE TO IN TDEC1 (A PUSH LIST LOCATION).
051536,000117: # FOR INTEGRVS, THE RCV,VCV,TET OF THE TEMPORARY STATE VECTOR MUST BE SET, PLUS MOONFLAG AND MIDFLAG
051537,000118:
051538,000119: # FOR SIMULATION THE FOLLOWING QUANTITIES MUST BE PRESET ---
051539,000120: # EARTH MOON
051540,000121: # 29 27
051541,000122: # RRECTCSM(LEM) - RECTIFIED POSITION VECTOR METERS 2 2
051542,000123:
051543,000124: # 7 5
051544,000125: # VRECTCSM(LEM) - RECTIFIED VELOCITY VECTOR M/CSEC 2 2
051545,000126:
051546,000127: # 28 28
051547,000128: # TETCSM(LEM) - TIME STATE VECTOR IS VALID CSEC 2 2
051548,000129: # CUSTOMARILY 0, BUT NOTE LUNAR
051549,000130: # ORBIT DEPENDENCE ON REAL TIME.
051550,000131:
051551,000132: # 22 18
051552,000133: # DELTAVCSM(LEM) - POSITION DEVIATION METERS 2 2
051553,000134: # 0 IF TCCSM(LEM) = 0
051554,000135:
051555,000136: # 3 -1
051556,000137: # NUVCSM(LEM) - VELOCITY DEVIATION M/CSEC 2 2
051557,000138: # 0 IF TCCSM(LEM) = 0
Page 1207 |
051559,000140: # 29 27
051560,000141: # RCVCSM(LEM) - CONIC POSITION METERS 2 2
051561,000142: # EQUALS RRECTCSM(LEM) IF
051562,000143: # TCCSM(LEM) = 0
051563,000144:
051564,000145: # 7 5
051565,000146: # VCVCSM(LEM) - CONIC VELOCITY M/CSEC 2 2
051566,000147: # EQUALS VRECTCSM(LEM) IF
051567,000148: # TCCSM(LEM) = 0
051568,000149:
051569,000150: # 28 28
051570,000151: # TCCSM(LEM) - TIME SINCE RECTIFICATION CSECS 2 2
051571,000152: # CUSTOMARILY 0
051572,000153:
051573,000154: # 1/2 17 16
051574,000155: # XKEPCSM(LEM) - ROOT OF KEPLERS EQUATION M 2 2
051575,000156: # 0 IF TCCSM(LEM) = 0
051576,000157:
051577,000158: # CMOONFLG - PERMANENT FLAGS CORRESPONDING 0 0
051578,000159: # CMIDFLAG TO MOONFLAG AND MIDFLAG 0,1 0,1
051579,000160: # LMOONFLG C = CSM, L = LM 0 0
051580,000161: # LMIDFLG 0,1 0,1
051581,000162:
051582,000163: # SURFFLAG - LUNAR SURFACE FLAG 0,1 0,1
051583,000164:
051584,000165: # IN ADDITION, IF (L)CMIDFLAG IS SET, THE INITIAL INPUT VALUES FOR LUNAR
051585,000166: # SOLAR EPHEMERIDES SUBROUTINE AND PLANETARY INERTIAL ORIENTATION SUB-
051586,000167: # ROUTINE MUST BE PRESET.
051587,000168:
051588,000169: # OUTPUT
051589,000170: # AFTER EVERY CALL TO INTEGRATION
051590,000171: # EARTH MOON
051591,000172: # 29 29
051592,000173: # 0D RATT POSITION METERS 2 2
051593,000174:
051594,000175: # 7 7
051595,000176: # 6D VATT VELOCITY M/CSEC 2 2
051596,000177:
051597,000178: # 28 28
051598,000179: # 12D TAT TIME 2 2
051599,000180:
051600,000181: # 29 27
051601,000182: # 14D RATT1 POSITION METERS 2 2
051602,000183:
051603,000184: # 7 5
051604,000185: # 20D VATT1 VELOCITY M/CSEC 2 2
051605,000186:
051606,000187: # 3 2 36 30
051607,000188: # 26D MU(P) MU M /CS 2 2
051608,000189:
051609,000190: # X1 MUTABLE ENTRY -2 -10D
051610,000191:
051611,000192: # X2 COORDINT
051612,000193: # X2 COORDINATE SYSTEM ORIGEN 0 2
051613,000194: # (THIS, NOT MOONFLAG, SHOULD BE
Page 1208 |
051615,000196: # USED TO DETERMINE ORIGIN.)
051616,000197:
051617,000198: # IN ADDITION TO THE ABOVE, THE PERMANENT STATE VECTOR IS UPDATED WHENEVER
051618,000199: # STATEFLG WAS SET AND WHENEVER A W-MATRIX IS TO BE INTEGRATED. THE PUSH
051619,000200: # COUNTER IS SET TO 0 AND OVERFLOW IS CLEARED BEFORE RETURNING TO THE
051620,000201: # CALLING PROGRAM.
051621,000202:
051622,000203: # 4.0 CALLING SEQUENCES AND SAMPLE CODE
051623,000204: # -------------------------------------
051624,000205:
051625,000206: # A) PRECISION ORBITAL INTEGRATION. CSMPREC, LEMPREC ENTRANCES
051626,000207: # L-X STORE TIME TO 95T5791T5 T 95 PUS L9ST (T4531)
051627,000208: # L CALL
051628,000209: # L+1 CSMPREC (OR LEMPREC)
051629,000210: # L+2 RETURN
051630,000211: # INPUT 28
051631,000212: # TDEC1 (PD 32D) TIME TO INTEGRATE TO...CENTISECONDS SCALED 2
051632,000213: # OUTPUT
051633,000214: # THE DATA LISTED IN SECTION 3.0 PLUS
051634,000215: # RQVV POSITION VECTOR OF VEHICLE WITH RESPECT TO SECONDARY
051635,000216: # BODY... METERS B-29 ONLY IF MIDFLAG = DIMOFLAG = 1
051636,000217: # B) CONIC INTEGRATION. CSMCONIC, LEMCONIC ENTRANCES
051637,000218: # L-X STORE TIME IN PUSH LIST (TDEC1)
051638,000219: # L CALL
051639,000220: # L+1 CSMCONIC (OR LEMCONIC)
051640,000221: # INPUT/OUTPUT
051641,000222: # SAME AS PRECISION INTEGRATION, EXCEPT RQVV NOT SET
051642,000223: # C) INTEGRATE GIVEN STATE VECTOR. INTEGRVS ENTRANCE
051643,000224: # CALL
051644,000225: # INTSTALL
051645,000226: # VLOAD
051646,000227: # POSITION VECTOR
051647,000228: # STOVL RCV
051648,000229: # VELOCITY VECTOR
051649,000230: # STODL VCV
051650,000231: # TIME STATE VECTOR VALID
051651,000232: # STODL TET
051652,000233: # FINAL RADIUS
051653,000234: # STORE RFINAL
051654,000235: # SET(CLEAR) SET(CLEAR)
051655,000236: # INTYPFLAG
051656,000237: # MOONFLAG
051657,000238: # SET(CLEAR) DLOAD
051658,000239: # DESIRED TIME
051659,000240: # STCALL TDEC1
051660,000241: # INTEGRVS
051661,000242: # INPUT
051662,000243: # RCV POSITION VECTOR METERS
051663,000244: # VCV VELOCITY VECTOR M/CSEC
051664,000245: # TET TIME OF STATE VECTOR (MAY = 0) CSEC B-28
Page 1209 |
051666,000247: # TDEC1 TIME TO INTEGRATE TO CSEC B-28 (PD 32D)
051667,000248: # (MAY BE INCREMENT IF TET=0)
051668,000249: # OUTPUT
051669,000250: # SAME AS FOR PRECISION OR CONIC INTEGRATION,
051670,000251: # DEPENDING ON INTYPFLG.
051671,000252: # D) INTEGRATE STATE VECTOR. INTGRV ENTRANCE
051672,000253: # L-X STORE TIME IN PUSH LIST (TDEC1) (MAY BE DONE AFTER CALL TO INTSTALL)
051673,000254: # L-8 CALL
051674,000255: # L-7
051675,000256: # L-6 SET(CLEAR) SET(CLEAR)
051676,000257: # L-5 VINTFLAG 1=CSM, 0=LM
051677,000258: # L-4 INTYPFLAG 1=CONIC, 0=PRECISION
051678,000259: # L-3 SET(CLEAR) SET(CLEAR)
051679,000260: # L-2 DIMOFLAG 1=W-MATRIX, 0=NO W-MATRIX
051680,000261: # L-1 D6OR9FLG 1=9X9, 0=6X6
051681,000262: # L SET DLOAD
051682,000263: # L+1 STATEFLG DESIRE PERMANENT UPDATE
051683,000264: # L+2 FINAL RAD. OF STATE VECTOR
051684,000265: # L+3 STCALL RFINAL
051685,000266: # L+4 INTEGRV
051686,000267: # L CALL NORMAL USE -- WILL UPDATE STATE
051687,000268: # L+1 INTEGRV VECTOR IF DIMOFLAG=1. (STATEFLG IS
051688,000269: # L+2 RETURN ALWAYS RESET IN INTEGRATION AFTER
051689,000270: # IT IS USED.)
051690,000271: # INPUT
051691,000272: # TDEC1 (PD 32D) TIME TO INTEGRATE TO CSEC B-28
051692,000273: # OUTPUT
051693,000274: # SAME AS FOR PRECISION OR CONIC INTEGRATION
051694,000275: # THE PROGRAM WILL SET MOONFLAG, MIDFLAG DEPENDING ON
051695,000276: # THE PERMANENT STATE VECTOR REPRESENTATION.
051696,000277:
051697,000278: 11,2376 BANK 11
051698,000279: 13,2000 SETLOC INTINIT
051699,000280: 13,2000 BANK
051700,000281: 13,2604 E3,1554 EBANK= RRECTCSM
051701,000282: 13,2604 COUNT* $$/INTIN
051702,000283: 13,2604 05353 STATEINT TC PHASCHNG
051703,000284: 13,2605 00052 OCT 00052
051704,000285: 13,2606 35017 CAF PRIO5
051705,000286: 13,2607 05105 TC FINDVAC
051706,000287: 13,2610 E3,1554 EBANK= RRECTCSM
051707,000288: 13,2610 02613 26063 2CADR STATINT1
051708,000289:
051709,000290: 13,2612 05261 TC TASKOVER
051710,000291: 13,2613 06037 STATINT1 TC INTPRET
051711,000292: 13,2614 47014 BON RTB
051712,000293: 13,2615 04712 QUITFLAG # KILL INTEGRATION UNTIL NEXT POO.
051713,000294: 13,2616 26653 NOINT
051714,000295: 13,2617 21573 LOADTIME
051715,000296: 13,2620 00041 STORE TDEC1
Page 1210 |
051717,000298: 13,2621 77624 CALL
051718,000299: 13,2622 27414 INTSTALL
051719,000300: 13,2623 45014 SET CALL
051720,000301: 13,2624 01076 NODOFLAG
051721,000302: 13,2625 26644 SETIFLGS
051722,000303: 13,2626 77650 GOTO
051723,000304: 13,2627 26026 STATEUP
051724,000305: 13,2630 00003 25140 600SECS 2DEC 60000 B-28
051725,000306:
051726,000307: 13,2632 77414 ENDINT CLEAR EXIT
051727,000308: 13,2633 01672 STATEFLG
051728,000309: 13,2634 05353 TC PHASCHNG
051729,000310: 13,2635 20032 OCT 20032
051730,000311: 13,2636 00006 EXTEND
051731,000312: 13,2637 32631 DCA 600SECS
051732,000313: 13,2640 05277 TC LONGCALL
051733,000314: 13,2641 E3,1626 EBANK= RRECTHIS
051734,000315: 13,2641 02604 26063 2CADR STATEINT
051735,000316:
051736,000317: 13,2643 05155 TC ENDOFJOB
051737,000318: 13,2644 43014 SETIFLGS SET CLEAR
051738,000319: 13,2645 01472 STATEFLG
051739,000320: 13,2646 01673 INTYPFLG
051740,000321: 13,2647 43014 CLEAR CLEAR
051741,000322: 13,2650 01676 DIM0FLAG
051742,000323: 13,2651 01675 D6OR9FLG
051743,000324: 13,2652 77616 RVQ
051744,000325: 13,2653 77776 NOINT EXIT
051745,000326: 13,2654 05353 TC PHASCHNG
051746,000327: 13,2655 00002 OCT 00002
051747,000328:
051748,000329: 13,2656 05516 TC DOWNFLAG
051749,000330: 13,2657 00221 ADRES QUITFLAG
051750,000331: 13,2660 05155 TC ENDOFJOB
051751,000332:
051752,000333: # ATOPCSM TRANSFERS RRECT TO RRECT +41 TO RRECTCSM TO RRECTCSM +41
051753,000334:
051754,000335: # CALLING SEQUENCE
051755,000336: # L CALL
051756,000337: # L+1 ATOPCSM
051757,000338:
051758,000339: # NORMAL EXIT AT L+2
051759,000340:
051760,000341: 13,2661 47020 ATOPCSM STQ RTB
051761,000342: 13,2662 00051 S2
051762,000343: 13,2663 26674 MOVEACSM
051763,000344: 13,2664 45014 SET CALL
051764,000345: 13,2665 04063 CMOONFLG
051765,000346: 13,2666 26114 SVDWN1
051766,000347: 13,2667 43014 BON CLRGO
Page 1211 |
051768,000349: 13,2670 00303 MOONFLAG
051769,000350: 13,2671 00051 S2
051770,000351: 13,2672 04223 CMOONFLG
051771,000352: 13,2673 00051 S2
051772,000353: 13,2674 03036 MOVEACSM TC SETBANK
051773,000354: 13,2675 55500 TS DIFEQCNT # INITIALIZE INDEX
051774,000355: 13,2676 51500 INDEX DIFEQCNT
051775,000356: 13,2677 31502 CA RRECT
051776,000357: 13,2700 51500 INDEX DIFEQCNT
051777,000358: 13,2701 55554 TS RRECTCSM
051778,000359: 13,2702 11500 CCS DIFEQCNT # IS TRANSFER COMPLETE
051779,000360: 13,2703 12675 TCF MOVEACSM +1 # NO-LOOP
051780,000361: 13,2704 06061 TC DANZIG # COMPLETE - RETURN
051781,000362:
051782,000363: # PTOACSM TRANSFERS RRECTCSM TO RRECTCSM +41 TO RRECT TO RRECT +41
051783,000364:
051784,000365: # CALLING SEQUENCE
051785,000366: # L CALL
051786,000367: # PTOACSM
051787,000368:
051788,000369: # NORMAL EXIT AT L+2
051789,000370:
051790,000371: 13,2705 43034 PTOACSM RTB BON
051791,000372: 13,2706 26723 MOVEPCSM
051792,000373: 13,2707 04303 CMOONFLG
051793,000374: 13,2710 26716 SETMOON
051794,000375: 13,2711 66214 CLRMOON CLEAR SSP
051795,000376: 13,2712 00263 MOONFLAG
051796,000377: 13,2713 02031 PBODY
051797,000378: 13,2714 00000 0
051798,000379: 13,2715 77616 RVQ
051799,000380: 13,2716 66214 SETMOON SET SSP
051800,000381: 13,2717 00063 MOONFLAG
051801,000382: 13,2720 02031 PBODY
051802,000383: 13,2721 00002 2
051803,000384: 13,2722 77616 RVQ
051804,000385: 13,2723 03036 MOVEPCSM TC SETBANK
051805,000386: 13,2724 55500 TS DIFEQCNT
051806,000387: 13,2725 51500 INDEX DIFEQCNT
051807,000388: 13,2726 31554 CA RRECTCSM
051808,000389: 13,2727 51500 INDEX DIFEQCNT
051809,000390: 13,2730 55502 TS RRECT
051810,000391: 13,2731 11500 CCS DIFEQCNT
051811,000392: 13,2732 12724 TCF MOVEPCSM +1
051812,000393: 13,2733 06061 TC DANZIG
051813,000394:
051814,000395: # ATOPLEM TRANSFERS RRECT TO RRECT +41 TO RRECTLEM TO RRECTLEM +41
051815,000396: 13,2734 47020 ATOPLEM STQ RTB
Page 1212 |
051817,000398: 13,2735 00051 S2
051818,000399: 13,2736 26747 MOVEALEM
051819,000400: 13,2737 45014 SET CALL
051820,000401: 13,2740 04064 LMOONFLG
051821,000402: 13,2741 26070 SVDWN2
051822,000403: 13,2742 43014 BON CLRGO
051823,000404: 13,2743 00303 MOONFLAG
051824,000405: 13,2744 00051 S2
051825,000406: 13,2745 04224 LMOONFLG
051826,000407: 13,2746 00051 S2
051827,000408: 13,2747 03036 MOVEALEM TC SETBANK
051828,000409: 13,2750 55500 TS DIFEQCNT
051829,000410: 13,2751 51500 INDEX DIFEQCNT
051830,000411: 13,2752 31502 CA RRECT
051831,000412: 13,2753 51500 INDEX DIFEQCNT
051832,000413: 13,2754 55626 TS RRECTLEM
051833,000414: 13,2755 11500 CCS DIFEQCNT
051834,000415: 13,2756 12750 TCF MOVEALEM +1
051835,000416: 13,2757 06061 TC DANZIG
051836,000417:
051837,000418: # PTOALEM TRANSFERS RRECTLEM TO RRECTLEM +41 TO RRECT TO RRECT +41
051838,000419:
051839,000420: 13,2760 47014 PTOALEM BON RTB
051840,000421: 13,2761 04307 SURFFLAG
051841,000422: 13,2762 27001 USEPIOS
051842,000423: 13,2763 26770 MOVEPLEM
051843,000424: 13,2764 52014 BON GOTO
051844,000425: 13,2765 04304 LMOONFLG
051845,000426: 13,2766 26716 SETMOON
051846,000427: 13,2767 26711 CLRMOON
051847,000428: 13,2770 03036 MOVEPLEM TC SETBANK
051848,000429: 13,2771 55500 TS DIFEQCNT
051849,000430: 13,2772 51500 INDEX DIFEQCNT
051850,000431: 13,2773 31626 CA RRECTLEM
051851,000432: 13,2774 51500 INDEX DIFEQCNT
051852,000433: 13,2775 55502 TS RRECT
051853,000434: 13,2776 11500 CCS DIFEQCNT
051854,000435: 13,2777 12771 TCF MOVEPLEM +1
051855,000436: 13,3000 06061 TC DANZIG
051856,000437:
051857,000438: 13,3001 77201 USEPIOS SETPD VLOAD
051858,000439: 13,3002 00001 0
051859,000440: 13,3003 02023 RLS
051860,000441: 13,3004 41525 PDDL PUSH
051861,000442: 13,3005 00041 TDEC1
051862,000443: 13,3006 15517 STODL TET
051863,000444: 13,3007 27712 5/8
051864,000445: 13,3010 77624 CALL
Page 1213 |
051866,000447: 13,3011 55716 RP-TO-R
051867,000448: 13,3012 25535 STOVL RCV
051868,000449: 13,3013 24001 ZUNIT
051869,000450: 13,3014 14001 STODL 0D
051870,000451: 13,3015 01517 TET
051871,000452: 13,3016 14007 STODL 6D
051872,000453: 13,3017 27712 5/8
051873,000454: 13,3020 45014 SET CALL # NEEDED FOR SETTING X1 ON EXIT
051874,000455: 13,3021 00063 MOONFLAG
051875,000456: 13,3022 55716 RP-TO-R
051876,000457: 13,3023 74235 VXV VXSC
051877,000458: 13,3024 01535 RCV
051878,000459: 13,3025 26001 OMEGMOON
051879,000460: 13,3026 25543 STOVL VCV
051880,000461: 13,3027 24007 ZEROVEC
051881,000462: 13,3030 01521 STORE TDELTAV
051882,000463: 13,3031 67174 AXT,2 SXA,2
051883,000464: 13,3032 00002 2
051884,000465: 13,3033 02030 PBODY
051885,000466: 13,3034 35527 STCALL TNUV
051886,000467: 13,3035 27157 A-PCHK
051887,000468: 13,3036 33042 SETBANK CAF INTBANK
051888,000469: 13,3037 54006 TS BBANK
051889,000470: 13,3040 33452 CAF FORTYONE
051890,000471: 13,3041 00002 TC Q
051891,000472: 13,3042 E3,1554 EBANK= RRECTCSM
051892,000473: 13,3042 26063 INTBANK BBCON INTEGRV
051893,000474:
051894,000475: # SPECIAL PURPOSE ENTRIES TO ORBITAL INTEGRATION. THESE ROUTINES PROVIDE ENTRANCES TO INTEGRATION WITH
051895,000476: # APPROPRIATE SWITCHES SET OR CLEARED FOR THE DESIRED INTEGRATION.
051896,000477:
051897,000478: # CSMPREC AND LEMPREC PERFORM ORBIT INTEGRATION BY THE ENCKE METHOD TO THE TIME INDICATED IN TDEC1
051898,000479: # ACCELERATIONS DUE TO OBLATENESS ARE INCLUDED. NO W-MATRIX INT. IS DONE.
051899,000480: # THE PERMANENT STATE VECTOR IS NOT UPDATED.
051900,000481:
051901,000482: # CSMCONIC AND LEMCONIC PERFORM ORBIT INTEG. BY KEPLERS METHOD TO THE TIME INDICATED IN TDEC1
051902,000483: # NO DISTURBING ACCELERATIONS ARE INCLUDED. IN THE PROGRAM FLOW THE GIVEN
051903,000484: # STATE VECTOR IS RECTIFIED BEFORE SOLUTION OF KEPLERS EQUATION
051904,000485:
051905,000486: # THE ROUTINES ASSUME THAT THE CSM (LEM) STATE VECTOR IN P-MEM IS VALID.
051906,000487: # SWITCHES SET PRIOR TO ENTRY TO THE MAIN INTEG. PROG ARE AS FOLLOWS
051907,000488: # CSMPREC CSMCONIC LEMPREC LEMCONIC
051908,000489: # VINTFLAG SET SET CLEAR CLEAR
051909,000490: # INTYPFLG CLEAR SET CLEAR SET
051910,000491: # DIM0FLAG CLEAR CLEAR CLEAR CLEAR
051911,000492:
051912,000493: # CALLING SEQUENCE
051913,000494: # L-X STORE TDEC1
051914,000495: # L CALL (STCALL TDEC1)
Page 1214 |
051916,000497: # L+1 CSMPREC (CSMCONIC, LEMPREC, LEMCONIC)
051917,000498:
051918,000499: # NORMAL EXIT TO L+2
051919,000500:
051920,000501: # SUBROUTINES CALLED
051921,000502: # INTEGRV1
051922,000503: # PRECOUT FOR CSMPREC AND LEMPREC
051923,000504: # CONICOUT FOR CSMCONIC AND LEMCONIC
051924,000505:
051925,000506: # OUTPUT - SEE PAGE 2 OF THIS LOG SECTION
051926,000507:
051927,000508: # INPUT
051928,000509: # TDEC1 TIME TO INTEGRATE TO. CSECS B-28
051929,000510:
051930,000511: 13,3043 45020 CSMPREC STQ CALL
051931,000512: 13,3044 00046 X1
051932,000513: 13,3045 27414 INTSTALL
051933,000514: 13,3046 43130 SXA,1 SET
051934,000515: 13,3047 02102 IRETURN
051935,000516: 13,3050 01474 VINTFLAG
051936,000517:
051937,000518: 13,3051 43014 IFLAGP SET CLEAR
051938,000519: 13,3052 01467 PRECIFLG
051939,000520: 13,3053 01676 DIM0FLAG
051940,000521: 13,3054 77614 CLRGO
051941,000522: 13,3055 01633 INTYPFLG
051942,000523: 13,3056 27136 INTEGRV1
051943,000524: 13,3057 45020 LEMPREC STQ CALL
051944,000525: 13,3060 00046 X1
051945,000526: 13,3061 27414 INTSTALL
051946,000527: 13,3062 43130 SXA,1 CLRGO
051947,000528: 13,3063 02102 IRETURN
051948,000529: 13,3064 01634 VINTFLAG
051949,000530: 13,3065 27051 IFLAGP
051950,000531:
051951,000532: 13,3066 45020 CSMCONIC STQ CALL
051952,000533: 13,3067 00046 X1
051953,000534: 13,3070 27414 INTSTALL
051954,000535: 13,3071 43130 SXA,1 SET
051955,000536: 13,3072 02102 IRETURN
051956,000537: 13,3073 01474 VINTFLAG
051957,000538: 13,3074 43014 IFLAGC CLEAR SETGO
051958,000539: 13,3075 01676 DIM0FLAG
051959,000540: 13,3076 01433 INTYPFLG
051960,000541: 13,3077 27136 INTEGRV1
051961,000542: 13,3100 45020 LEMCONIC STQ CALL
051962,000543: 13,3101 00046 X1
051963,000544: 13,3102 27414 INTSTALL
051964,000545: 13,3103 43130 SXA,1 CLRGO
051965,000546: 13,3104 02102 IRETURN
Page 1215 |
051967,000548: 13,3105 01634 VINTFLAG
051968,000549: 13,3106 27074 IFLAGC
051969,000550:
051970,000551: 13,3107 66214 INTEGRVS SET SSP
051971,000552: 13,3110 01467 PRECIFLG
051972,000553: 13,3111 02031 PBODY
051973,000554: 13,3112 00000 0
051974,000555: 13,3113 66214 BOF SSP
051975,000556: 13,3114 00343 MOONFLAG
051976,000557: 13,3115 27120 +3
051977,000558: 13,3116 02031 PBODY
051978,000559: 13,3117 00002 2
051979,000560: 13,3120 77220 STQ VLOAD
051980,000561: 13,3121 02102 IRETURN
051981,000562: 13,3122 24007 ZEROVEC
051982,000563: 13,3123 01521 STORE TDELTAV
051983,000564: 13,3124 35527 STCALL TNUV
051984,000565: 13,3125 23441 RECTIFY
051985,000566: 13,3126 43014 CLEAR SET
051986,000567: 13,3127 01676 DIM0FLAG
051987,000568: 13,3130 04062 NEWIFLG
051988,000569: 13,3131 77614 SETGO
051989,000570: 13,3132 04020 RPQFLAG
051990,000571: 13,3133 27150 ALOADED
051991,000572:
051992,000573: # INTEGRV IS AN ENTRY TO ORBIT INTEGRATION WHICH PERMITS THE CALLER,
051993,000574: # NORMALLY THE NAVIGATION PROGRAM, TO SET THE INTEG. FLAGS. THE ROUTINE
051994,000575: # IS ENTERED AT INTEGRV1 BY CSMPREC ET. AL. AND AT ALOADED BY INTEGRVS.
051995,000576: # THE ROUTINE SETS UP A-MEMORY IF ENTERED AT INTEGRV,1 AND SETS THE INTEG.
051996,000577: # PROGRAM FOR PRECISION OR CONIC
051997,000578:
051998,000579: # THE CALLER MUST FIRST CALL INTSTALL TO CHECK IF INTEG. IS IN USE BEFORE
051999,000580: # SETTING ANY FLAGS.
052000,000581:
052001,000582: # THE FLAGS WHICH SHOULD BE SET OR CLEARED ARE
052002,000583: # VINTFLAG (IGNORED WHEN ENTERED FROM INTEGRVS)
052003,000584: # INTYPFLG
052004,000585: # DIM0FLAG
052005,000586: # D6OR9FLG
052006,000587:
052007,000588: # CALLING SEQUENCE
052008,000589: # L-X CALL
052009,000590: # L-Y INTSTALL
052010,000591: # L-1 SET OR CLEAR ALL FOUR FLAGS. ALSO CAN SET STATEFLG IF DESIRED
052011,000592: # AND DIM0FLAG IS CLEAR.
052012,000593: # L CALL
052013,000594: # L+1 INTEGRV
052014,000595:
052015,000596: # INITIALIZATION
052016,000597: # FLAGS AS ABOVE
052017,000598: # STORE TIME TO INTEGRATE TO IN TDEC1
052018,000599:
052019,000600: # OUTPUT
052020,000601: # RATT AS
052021,000602: # VATT DEFINED
Page 1216 |
052023,000604: # TAT BEFORE
052024,000605:
052025,000606: 13,3134 77620 INTEGRV STQ
052026,000607: 13,3135 02102 IRETURN
052027,000608: 13,3136 43014 INTEGRV1 SET SET
052028,000609: 13,3137 04060 RPQFLAG
052029,000610: 13,3140 04062 NEWIFLG
052030,000611: 13,3141 77731 INTEGRV2 SSP
052031,000612: 13,3142 00053 QPRET
052032,000613: 13,3143 27150 ALOADED
052033,000614: 13,3144 52014 BON GOTO
052034,000615: 13,3145 01714 VINTFLAG
052035,000616: 13,3146 26705 PTOACSM
052036,000617: 13,3147 26760 PTOALEM
052037,000618: 13,3150 77745 ALOADED DLOAD
052038,000619: 13,3151 00041 TDEC1
052039,000620: 13,3152 01116 STORE TDEC
052040,000621: 13,3153 52014 BOFF GOTO
052041,000622: 13,3154 01753 INTYPFLG
052042,000623: 13,3155 27257 TESTLOOP
052043,000624: 13,3156 27243 RVCON
052044,000625: 13,3157 77414 A-PCHK BOF EXIT
052045,000626: 13,3160 01752 STATEFLG
052046,000627: 13,3161 27200 RECTOUT
052047,000628: 13,3162 05353 TC PHASCHNG
052048,000629: 13,3163 04022 OCT 04022
052049,000630: 13,3164 05504 TC UPFLAG # PHASE CHANGE HAS OCCURRED BETWEEN
052050,000631: 13,3165 00236 ADRES REINTFLG # INTSTALL AND INTWAKE
052051,000632: 13,3166 06037 TC INTPRET
052052,000633: 13,3167 77731 SSP
052053,000634: 13,3170 00053 QPRET
052054,000635: 13,3171 27176 PHEXIT
052055,000636: 13,3172 52014 BON GOTO
052056,000637: 13,3173 01714 VINTFLAG
052057,000638: 13,3174 26661 ATOPCSM
052058,000639: 13,3175 26734 ATOPLEM
052059,000640: 13,3176 77624 PHEXIT CALL
052060,000641: 13,3177 11244 GRP2PC
052061,000642: 13,3200 45001 RECTOUT SETPD CALL
052062,000643: 13,3201 00001 0
052063,000644: 13,3202 23441 RECTIFY
052064,000645: 13,3203 53775 VLOAD VSL*
052065,000646: 13,3204 01503 RRECT
052066,000647: 13,3205 57576 0,2
052067,000648: 13,3206 53715 PDVL VSL* # RATT TO PD0
052068,000649: 13,3207 01511 VRECT
052069,000650: 13,3210 57576 0,2
052070,000651: 13,3211 63325 PDDL PDVL # VATT TO PD6 TAT TO PD12
052071,000652: 13,3212 01517 TET
Page 1217 |
052073,000654: 13,3213 01503 RRECT
052074,000655: 13,3214 64715 PDVL PDDL*
052075,000656: 13,3215 01511 VRECT
052076,000657: 13,3216 51770 MUEARTH,2
052077,000658: 13,3217 76006 PUSH AXT,1
052078,000659: 13,3220 77765 DEC -10 B-14
052079,000660: 13,3221 76014 BON AXT,1
052080,000661: 13,3222 00303 MOONFLAG
052081,000662: 13,3223 27225 +2
052082,000663: 13,3224 77775 DEC -2 B-14
052083,000664: 13,3225 40001 INTEXIT SETPD BOV
052084,000665: 13,3226 00001 0
052085,000666: 13,3227 27230 +1
052086,000667: 13,3230 43014 CLEAR CLEAR
052087,000668: 13,3231 04676 AVEMIDSW # ALLOW UPDATE OF DOWNLINK STATE VECTOR
052088,000669: 13,3232 01667 PRECIFLG
052089,000670: 13,3233 77614 CLEAR
052090,000671: 13,3234 01672 STATEFLG
052091,000672: 13,3235 77535 SLOAD EXIT
052092,000673: 13,3236 02103 IRETURN
052093,000674: 13,3237 30154 CA MPAC
052094,000675: 13,3240 50120 INDEX FIXLOC
052095,000676: 13,3241 54052 TS QPRET
052096,000677: 13,3242 03425 TC INTWAKE
052097,000678:
052098,000679: # RVCON SETS UP ORBIT INTEGRATION TO DO A CONIC SOLUTION FOR POSITION AND
052099,000680: # VELOCITY FOR THE INTERVAL (TET-TDEC)
052100,000681:
052101,000682: 13,3243 45345 RVCON DLOAD DSU
052102,000683: 13,3244 01116 TDEC
052103,000684: 13,3245 01517 TET
052104,000685: 13,3246 36074 STCALL TAU.
052105,000686: 13,3247 23441 RECTIFY
052106,000687: 13,3250 77624 CALL
052107,000688: 13,3251 22376 KEPPREP
052108,000689: 13,3252 43345 DLOAD DAD
052109,000690: 13,3253 01551 TC
052110,000691: 13,3254 01517 TET
052111,000692: 13,3255 35517 STCALL TET
052112,000693: 13,3256 27200 RECTOUT
052113,000694:
Page 1218 |
052115,000696: # TESTLOOP
052116,000697:
052117,000698: 13,3257 43014 TESTLOOP BOF CLRGO
052118,000699: 13,3260 04752 QUITFLAG
052119,000700: 13,3261 27264 +3
052120,000701: 13,3262 01632 STATEFLG
052121,000702: 13,3263 27225 INTEXIT # STOP INTEGRATION
052122,000703: 13,3264 73001 +3 SETPD LXA,2
052123,000704: 13,3265 00013 10D
052124,000705: 13,3266 02030 PBODY
052125,000706: 13,3267 51575 VLOAD ABVAL
052126,000707: 13,3270 01535 RCV
052127,000708: 13,3271 43006 PUSH CLEAR # RC TO 10D
052128,000709: 13,3272 00262 MIDFLAG
052129,000710: 13,3273 50023 DSU* BMN # MIDFLAG=0 IF R G.T. RMP
052130,000711: 13,3274 53755 RME,2
052131,000712: 13,3275 27300 +3
052132,000713: 13,3276 77614 SET
052133,000714: 13,3277 00062 MIDFLAG
052134,000715: 13,3300 41345 NORFINAL DLOAD DMP
052135,000716: 13,3301 00013 10D
052136,000717: 13,3302 00043 34D
052137,000718: 13,3303 55762 SR1R DDV*
052138,000719: 13,3304 51770 MUEARTH,2
052139,000720: 13,3305 41366 SQRT DMP
052140,000721: 13,3306 25752 .3D
052141,000722: 13,3307 40442 SR3 SR4 # DT IS TRUNCATED TO A MULTIPLE
052142,000723: 13,3310 54345 DLOAD SL
052143,000724: 13,3311 00155 MPAC
052144,000725: 13,3312 20220 15D # OF 128 CSECS.
052145,000726: 13,3313 40006 PUSH BOV
052146,000727: 13,3314 27341 MAXDT
052147,000728: 13,3315 50021 BDSU BMN
052148,000729: 13,3316 27413 DT/2MAX
052149,000730: 13,3317 27341 MAXDT
052150,000731: 13,3320 45345 DT/2COMP DLOAD DSU
052151,000732: 13,3321 01116 TDEC
052152,000733: 13,3322 01517 TET
052153,000734: 13,3323 54234 RTB SL
052154,000735: 13,3324 21612 SGNAGREE
052155,000736: 13,3325 20211 8D
052156,000737: 13,3326 02076 STORE DT/2 # B-19
052157,000738: 13,3327 51400 BOV ABS
052158,000739: 13,3330 27345 GETMAXDT
052159,000740: 13,3331 50025 DSU BMN # IS TIME TO INTEG. TO GR THAN MAXTIME
052160,000741: 13,3332 00015 12D
052161,000742: 13,3333 27351 P00HCHK
052162,000743: 13,3334 75345 USEMAXDT DLOAD SIGN
052163,000744: 13,3335 00015 12D
052164,000745: 13,3336 02076 DT/2
Page 1219 |
052166,000747: 13,3337 36076 STCALL DT/2
052167,000748: 13,3340 27351 P00HCHK
052168,000749: 13,3341 65345 MAXDT DLOAD PDDL # EXCHANGE DT/2MAX WITH COMPUTED MAX.
052169,000750: 13,3342 27413 DT/2MAX
052170,000751: 13,3343 77650 GOTO
052171,000752: 13,3344 27320 DT/2COMP
052172,000753: 13,3345 77634 GETMAXDT RTB
052173,000754: 13,3346 21712 SIGNMPAC
052174,000755: 13,3347 36076 STCALL DT/2
052175,000756: 13,3350 27334 USEMAXDT
052176,000757: 13,3351 51545 P00HCHK DLOAD ABS
052177,000758: 13,3352 02076 DT/2
052178,000759: 13,3353 50025 DSU BMN
052179,000760: 13,3354 27411 DT/2MIN
052180,000761: 13,3355 27157 A-PCHK
052181,000762: 13,3356 46135 SLOAD BHIZ
052182,000763: 13,3357 01012 MODREG
052183,000764: 13,3360 27363 +3
052184,000765: 13,3361 77650 GOTO
052185,000766: 13,3362 23252 TIMESTEP
052186,000767: 13,3363 77614 BON # WAS THIS CALL VIA CSM(LEM)PREC
052187,000768: 13,3364 01707 PRECIFLG
052188,000769: 13,3365 23252 TIMESTEP # YES
052189,000770: 13,3366 45345 DLOAD DSU
052190,000771: 13,3367 02076 DT/2
052191,000772: 13,3370 00015 12D
052192,000773: 13,3371 43040 BMN BOFCLR
052193,000774: 13,3372 27157 A-PCHK
052194,000775: 13,3373 04242 NEWIFLG
052195,000776: 13,3374 23252 TIMESTEP
052196,000777: 13,3375 45345 DLOAD DSU
052197,000778: 13,3376 01116 TDEC
052198,000779: 13,3377 01517 TET
052199,000780: 13,3400 77640 BMN # NO BACKWARD INTEGRATION
052200,000781: 13,3401 27225 INTEXIT
052201,000782: 13,3402 40525 PDDL SR4
052202,000783: 13,3403 02076 DT/2 # IS 4(DT) LS (TDEC - TET)
052203,000784: 13,3404 44322 SR2R BDSU # NO
052204,000785: 13,3405 52040 BMN GOTO
052205,000786: 13,3406 27225 INTEXIT
052206,000787: 13,3407 23252 TIMESTEP
052207,000788: 13,3410 00000 01400 DT/2MIN 2DEC 3 B-20
052208,000789:
052209,000790: 13,3412 14152 00000 DT/2MAX 2DEC 4000 E2 B-20
052210,000791:
052211,000792: 13,3414 77776 INTSTALL EXIT
052212,000793: 13,3415 30106 CA RASFLAG
052213,000794: 13,3416 73466 MASK INTBITAB # IS THIS STALL AREA FREE
052214,000795: 13,3417 00006 EXTEND
052215,000796: 13,3420 13460 BZF OKTOGRAB # YES
Page 1220 |
052217,000798: 13,3421 33465 CAF WAKESTAL
052218,000799: 13,3422 05133 TC JOBSLEEP
052219,000800: 13,3423 77776 INTWAKE0 EXIT
052220,000801: 13,3424 13445 TCF INTWAKE1
052221,000802:
052222,000803: 13,3425 40106 INTWAKE CS RASFLAG # IS THIS INTSTALLED ROUTINE TO BE
052223,000804: 13,3426 74745 MASK REINTBIT # RESTARTED
052224,000805: 13,3427 10000 CCS A
052225,000806: 13,3430 03445 TC INTWAKE1 # NO
052226,000807:
052227,000808: 13,3431 50120 INDEX FIXLOC
052228,000809: 13,3432 30052 CA QPRET
052229,000810: 13,3433 55055 TS TBASE2 # YES, DONT RESTART WITH SOMEONE ELSES Q
052230,000811:
052231,000812: 13,3434 05353 TC PHASCHNG
052232,000813: 13,3435 04022 OCT 04022
052233,000814:
052234,000815: 13,3436 31055 CA TBASE2
052235,000816: 13,3437 50120 INDEX FIXLOC
052236,000817: 13,3440 54052 TS QPRET
052237,000818:
052238,000819: 13,3441 34745 CAF REINTBIT
052239,000820: 13,3442 70106 MASK RASFLAG
052240,000821: 13,3443 00006 EXTEND
052241,000822: 13,3444 13463 BZF GOBAC # DONT INTWAKE IF WE CAME HERE VIA RESTART
052242,000823:
052243,000824: 13,3445 33465 INTWAKE1 CAF WAKESTAL
052244,000825: 13,3446 00004 INHINT
052245,000826: 13,3447 05137 TC JOBWAKE
052246,000827: 13,3450 10064 CCS LOCCTR
052247,000828: 13,3451 13445 TCF INTWAKE1
052248,000829: 13,3452 00051 FORTYONE DEC 41 B-14
052249,000830: 13,3453 43466 CS INTBITAB
052250,000831: 13,3454 70106 MASK RASFLAG
052251,000832: 13,3455 54106 TS RASFLAG # RELEASE STALL AREA
052252,000833: 13,3456 00003 RELINT
052253,000834: 13,3457 13463 TCF GOBAC
052254,000835: 13,3460 34736 OKTOGRAB CAF INTFLBIT
052255,000836: 13,3461 00004 INHINT
052256,000837: 13,3462 26106 ADS RASFLAG
052257,000838: 13,3463 06037 GOBAC TC INTPRET
052258,000839: 13,3464 77616 RVQ
052259,000840: 13,3465 27415 WAKESTAL CADR INTSTALL +1
052260,000841: 13,3466 20100 INTBITAB OCT 20100
052261,000842:
Page 1221 |
052263,000844: # AVETOMID
052264,000845:
052265,000846: # THIS ROUTINE PERFORMS THE TRANSITION FROM A THRUSTING PHASE TO THE COAST
052266,000847: # PHASE BY INITIALIZING THIS VEHICLES PERMANENT STATE VECTOR WITH THE
052267,000848: # VALUES LEFT BY THE AVERAGEG ROUTINE IN RN,VN,PIPTIME.
052268,000849:
052269,000850: # BEFORE THIS IS DONE THE W-MATRIX, IF ITS VALID (OR WFLAG OR RENDWFLG IS
052270,000851: # SET) IS INTEGRATED FORWARD TO PIPTIME WITH THE PRE-THRUST STATE VECTOR.
052271,000852:
052272,000853: # IN ADDITION, THE OTHER VEHICLE IS INTEGRATED (PERMANENT) TO PIPTIME.
052273,000854:
052274,000855: # FINALLY TRKMKCNT IS ZEROED
052275,000856:
052276,000857: 13,2000 SETLOC INTINIT
052277,000858: 13,2000 BANK
052278,000859:
052279,000860: 13,3467 COUNT* $$/INTIN
052280,000861: 13,3467 43020 AVETOMID STQ BON
052281,000862: 13,3470 02772 EGRESS
052282,000863: 13,3471 02716 RENDWFLG
052283,000864: 13,3472 27536 INT/W # W-MATRIX VALID, GO INTEGRATE IT
052284,000865: 13,3473 77614 BON
052285,000866: 13,3474 01711 ORBWFLAG
052286,000867: 13,3475 27536 INT/W # W-MATRIX VALID, GO INTEGRATE IT
052287,000868:
052288,000869: 13,3476 45145 OTHERS DLOAD CALL # GET SET FOR OTHER VEHICLE INTEGRATION
052289,000870: 13,3477 01235 PIPTIME # DESIRED TIME
052290,000871: 13,3500 27414 INTSTALL
052291,000872: 13,3501 45014 SET CALL
052292,000873: 13,3502 01474 VINTFLAG # CM
052293,000874: 13,3503 26644 SETIFLGS # SETS UP NONE W-MAT. PERMANENT INTEG.
052294,000875: 13,3504 34041 STCALL TDEC1
052295,000876: 13,3505 27134 INTEGRV
052296,000877:
052297,000878: 13,3506 45174 AXT,2 CALL # NOW MOVE PROPERLY SCALE RN,UN AS WELL AS
052298,000879: 13,3507 00002 2 # PIPTIME TO INTEGRATION ERASABLES.
052299,000880: 13,3510 27414 INTSTALL
052300,000881: 13,3511 77014 BON AXT,2
052301,000882: 13,3512 04304 MOONTHIS
052302,000883: 13,3513 27515 +2
052303,000884: 13,3514 00000 0
052304,000885: 13,3515 53775 VLOAD VSR*
052305,000886: 13,3516 01221 RN
052306,000887: 13,3517 57176 0,2
052307,000888: 13,3520 01503 STORE RRECT
052308,000889: 13,3521 15535 STODL RCV
052309,000890: 13,3522 01235 PIPTIME
052310,000891: 13,3523 25517 STOVL TET
052311,000892: 13,3524 01227 VN
Page 1222 |
052313,000894: 13,3525 45057 VSR* CALL
052314,000895: 13,3526 57176 0,2
052315,000896: 13,3527 23455 MINIRECT # FINISH SETTING UP STATE VECTOR
052316,000897: 13,3530 66234 RTB SSP
052317,000898: 13,3531 26747 MOVATHIS # PUT TEMP STATE VECTOR INTO PERMANENT
052318,000899: 13,3532 03463 TRKMKCNT
052319,000900: 13,3533 00000 0
052320,000901: 13,3534 77650 GOTO
052321,000902: 13,3535 47226 FAZAB5
052322,000903:
052323,000904: 13,3536 45145 INT/W DLOAD CALL
052324,000905: 13,3537 01235 PIPTIME # INTEGRATE W THRU BURN
052325,000906: 13,3540 27414 INTSTALL
052326,000907: 13,3541 43014 SET SET
052327,000908: 13,3542 01476 DIM0FLAG # DO W-MATRIX
052328,000909: 13,3543 04476 AVEMIDSW # SO WONT CLOBBER RN,VN,PIPTIME
052329,000910: 13,3544 43014 SET CLEAR
052330,000911: 13,3545 01475 D6OR9FLG # 9X9 FOR LM
052331,000912: 13,3546 01674 VINTFLAG # LM
052332,000913: 13,3547 34041 STCALL TDEC1
052333,000914: 13,3550 27134 INTEGRV
052334,000915: 13,3551 77650 GOTO
052335,000916: 13,3552 27476 OTHERS # NOW GO DO THE OTHER VEHICLE
052336,000917:
Page 1223 |
052338,000919: # MIDTOAV1
052339,000920:
052340,000921: # THIS ROUTINE INTEGRATES (PRECISION) TO THE TIME SPECIFIED IN TDEC1.
052341,000922: # IF, AT THE END OF AN INTEGRATION TIME STEP, CURRENT TIME PLUS A DELTA
052342,000923: # TIME (SEE TIMEDELT.....BASED ON THE COMPUTATUON TIME FOR ONE TIME STEP)
052343,000924: # IS GREATER THAN THE DESIRED TIME, ALARM 1703 IS SET AND THE INTEGRATION
052344,000925: # IS DONE TO THE CURRENT TIME.
052345,000926: # RETURN IS IN BASIC TO THE RETURN ADDRESS PLUS ONE.
052346,000927:
052347,000928: # IF THE INTEGRATION IS FINISHED TO THE DESIRED TIME, RETURN IS IN BASIC
052348,000929: # TO THE RETURN ADDRESS
052349,000930:
052350,000931: # IN EITHER CASE, BEFORE RETURNING, THE EXTRAPOLATED STATE VECTOR IS TRAN
052351,000932: # FERRED FROM R,VATT TO R,VN1-PIPTIME1 IS SET TO THE FINISHING INTEGRA-
052352,000933: # TION TIME AND MPAC IS SET TO THE DELTA TIME ---
052353,000934: # TAT MINUS CURRENT TIME.
052354,000935:
052355,000936: # MIDTOAV2
052356,000937:
052357,000938: # THIS ROUTINE INTEGRATES THIS VEHICLES STATE VECTOR TO THE CURRENT TIME.
052358,000939: # NO INPUTS ARE REQUIRED OF THE CALLER. RETURN IS IN BASIC TO THE RETURN
052359,000940: # ADDRESS WITH THE ABOVE TRANSFERS TO R,VN1-PIPTIME1-AND MPAC DONE
052360,000941:
052361,000942: 13,3553 E7,1744 EBANK= IRETURN1
052362,000943: 13,3553 43020 MIDTOAV2 STQ CLRGO # INTEGRATE TO PRESENT TIME PLUS TIMEDELT
052363,000944: 13,3554 03744 IRETURN1
052364,000945: 13,3555 04634 MID1FLAG
052365,000946: 13,3556 27572 ENTMID2
052366,000947:
052367,000948: 13,3557 43020 MIDTOAV1 STQ SET # INTEGRATE TO TDEC1
052368,000949: 13,3560 03744 IRETURN1
052369,000950: 13,3561 04474 MID1FLAG
052370,000951: 13,3562 43234 RTB DAD # INITIAL CHECK, IS TDEC1 IN THE FUTURE
052371,000952: 13,3563 21573 LOADTIME
052372,000953: 13,3564 27674 TIMEDELT
052373,000954: 13,3565 51021 BDSU BPL
052374,000955: 13,3566 00041 TDEC1
052375,000956: 13,3567 27576 ENTMID1 # Y5S
052376,000957: 13,3570 77624 CALL
052377,000958: 13,3571 27662 NOTIME # NO, SET ALARM, SWITCH TO MIDTOAV2
052378,000959:
052379,000960: 13,3572 43234 ENTMID2 RTB DAD
052380,000961: 13,3573 21573 LOADTIME
052381,000962: 13,3574 27674 TIMEDELT
052382,000963: 13,3575 00041 STORE TDEC1
052383,000964:
052384,000965: 13,3576 77624 ENTMID1 CALL
052385,000966: 13,3577 27414 INTSTALL
052386,000967: 13,3600 45014 CLEAR CALL
Page 1224 |
052388,000969: 13,3601 01676 DIM0FLAG # NO W-MATRIX
052389,000970: 13,3602 26066 THISVINT
052390,000971: 13,3603 43014 CLEAR SET
052391,000972: 13,3604 01673 INTYPFLG
052392,000973: 13,3605 04475 MIDAVFLG # LET INTEG. KNOW THE CALL IS FOR MIDTOAV.
052393,000974: 13,3606 77624 CALL
052394,000975: 13,3607 27134 INTEGRV # GO INTEGRATE
052395,000976: 13,3610 77214 CLEAR VLOAD
052396,000977: 13,3611 04675 MIDAVFLG
052397,000978: 13,3612 00001 RATT
052398,000979: 13,3613 27545 STOVL RN1
052399,000980: 13,3614 00007 VATT
052400,000981: 13,3615 17553 STODL VN1
052401,000982: 13,3616 00015 TAT
052402,000983: 13,3617 03561 STORE PIPTIME1
052403,000984: 13,3620 66134 SXA,2 SXA,1
052404,000985: 13,3621 02777 RTX2
052405,000986: 13,3622 02776 RTX1
052406,000987: 13,3623 77776 EXIT
052407,000988:
052408,000989: 13,3624 00004 INHINT
052409,000990: 13,3625 00006 EXTEND
052410,000991: 13,3626 40025 DCS TIME2
052411,000992: 13,3627 20155 DAS MPAC
052412,000993: 13,3630 07257 TC TPAGREE
052413,000994:
052414,000995: 13,3631 31744 CA IRETURN1
052415,000996: 13,3632 04640 TC BANKJUMP
052416,000997: 13,3633 47014 CKMID2 BOF RTB
052417,000998: 13,3634 04754 MID1FLAG
052418,000999: 13,3635 27652 MID2
052419,001000: 13,3636 21573 LOADTIME
052420,001001: 13,3637 44215 DAD BDSU
052421,001002: 13,3640 27674 TIMEDELT
052422,001003: 13,3641 01116 TDEC
052423,001004: 13,3642 45044 BPL CALL
052424,001005: 13,3643 27257 TESTLOOP # YES
052425,001006: 13,3644 27662 NOTIME
052426,001007:
052427,001008: 13,3645 43234 TIMEINC RTB DAD
052428,001009: 13,3646 21573 LOADTIME
052429,001010: 13,3647 27674 TIMEDELT
052430,001011: 13,3650 35116 STCALL TDEC
052431,001012: 13,3651 27257 TESTLOOP
052432,001013:
052433,001014: 13,3652 45345 MID2 DLOAD DSU
052434,001015: 13,3653 01116 TDEC
052435,001016: 13,3654 01517 TET
052436,001017: 13,3655 45246 ABS DSU
052437,001018: 13,3656 27672 3CSECS
052438,001019:
Page 1225 |
052440,001021: 13,3657 52040 BMN GOTO
052441,001022: 13,3660 27157 A-PCHK
052442,001023: 13,3661 27645 TIMEINC
052443,001024:
052444,001025: 13,3662 77414 NOTIME CLEAR EXIT # TOO LATE
052445,001026: 13,3663 04674 MID1FLAG
052446,001027: 13,3664 25744 INCR IRETURN1 # SET ERROR EXIT (CALLOC +2)
052447,001028: 13,3665 05567 TC ALARM # INSUFFICIENT TIME FOR INTEGRATION --
052448,001029: 13,3666 01703 OCT 1703 # TIG WILL BE SLIPPED...
052449,001030: 13,3667 06037 TC INTPRET
052450,001031: 13,3670 77616 RVQ
052451,001032:
052452,001033: 13,3671 00000 00003 3CSECS 2DEC 3 B-28
052453,001034:
052454,001035: 13,3673 00000 03720 TIMEDELT 2DEC 2000 B-28
052455,001036:
052456,001037: 27,3360 BANK 27
052457,001038: 04,2000 SETLOC UPDATE2
052458,001039: 04,2000 BANK
052459,001040: 04,3165 1167 EBANK= INTWAKUQ
052460,001041:
052461,001042: 04,3165 COUNT* $$/INTIN
052462,001043:
052463,001044: 04,3165 1167 INTWAKUQ = INTWAK1Q # TEMPORARY UNTIL NAME OF INTWAK1Q IS CHNG
052464,001045:
052465,001046: 04,3165 00003 INTWAKEU RELINT
052466,001047: 04,3166 00006 EXTEND
052467,001048: 04,3167 23167 QXCH INTWAKUQ # SAVE Q FOR RETURN
052468,001049:
052469,001050: 04,3170 06037 TC INTPRET
052470,001051:
052471,001052: 04,3171 53135 SLOAD BZE # IS THIS A CSM/LEM STATE VECTOR UPDATE
052472,001053: 04,3172 01502 UPSVFLAG # REQUEST. IF NOT GO TO INTWAKUP.
052473,001054: 04,3173 11232 INTWAKUP
052474,001055:
052475,001056: 04,3174 77775 VLOAD # MOVE RRECT(6) AND VRECT(6) INTO
052476,001057: 04,3175 01503 RRECT # RCV(6) AND VCV(6) RESPECTIVELY.
052477,001058: 04,3176 25535 STOVL RCV
052478,001059: 04,3177 01511 VRECT # NOW GO TO 'RECTIFY +13D' TO
052479,001060: 04,3200 77624 CALL # STORE VRECT INTO VCV AND ZERO OUT
052480,001061: 04,3201 23456 RECTIFY +13D # TDELTAV(6),TNUV(6),TC(2) AND XKEP(2)
052481,001062: 04,3202 51535 SLOAD ABS # COMPARE ABSOLUTE VALUE OF 'UPSVFLAG'
052482,001063: 04,3203 01502 UPSVFLAG # TO 'UPDATE MOON STATE VECTOR CODE'
052483,001064: 04,3204 53025 DSU BZE # TO DETERMINE WHETHER THE STATE VECTOR TO
052484,001065: 04,3205 11243 UPMNSVCD # BE UPDATED IS IN THE EARTH OR LUNAR
052485,001066: 04,3206 11213 INTWAKEM # SPHERE OF INFLUENCE.........
052486,001067: 04,3207 43174 AXT,2 CLRGO # EARTH SPHERE OF INFLUENCE.
052487,001068: 04,3210 00000 DEC 0 B-14
052488,001069: 04,3211 00223 MOONFLAG
Page 1226 |
052490,001071: 04,3212 11216 INTWAKEC
052491,001072: 04,3213 43174 INTWAKEM AXT,2 SET # LUNAR SPHERE OF INFLUENCE.
052492,001073: 04,3214 00002 DEC 2 B-14
052493,001074: 04,3215 00063 MOONFLAG
052494,001075: 04,3216 50135 INTWAKEC SLOAD BMN # COMMON CODING AFTER X2 INITIALIZED AND
052495,001076: # MOONFLAG SET (OR CLEARED).
052496,001077: 04,3217 01502 UPSVFLAG # IS THIS A REQUEST FOR A LEM OR CSM
052497,001078: 04,3220 11226 INTWAKLM # STATE VECTOR UPDATE......
052498,001079: 04,3221 77624 CALL # UPDATE CSM STATE VECTOR
052499,001080: 04,3222 26661 ATOPCSM
052500,001081:
052501,001082: 04,3223 52014 CLEAR GOTO
052502,001083: 04,3224 01671 ORBWFLAG
052503,001084: 04,3225 11230 INTWAKEX
052504,001085:
052505,001086: 04,3226 77624 INTWAKLM CALL # UPDATE LM STATE VECTOR
052506,001087: 04,3227 26734 ATOPLEM
052507,001088:
052508,001089: 04,3230 77614 INTWAKEX CLEAR
052509,001090: 04,3231 02676 RENDWFLG
052510,001091:
052511,001092: 04,3232 45131 INTWAKUP SSP CALL # REMOVE :UPDATE STATE VECTOR INDICATOR:
052512,001093: 04,3233 01502 UPSVFLAG
052513,001094: 04,3234 00000 0
052514,001095: 04,3235 27423 INTWAKE0 # RELEASE :GRAB: OF ORBIT INTEG
052515,001096: 04,3236 77776 EXIT
052516,001097:
052517,001098: 04,3237 05353 TC PHASCHNG
052518,001099: 04,3240 04026 OCT 04026
052519,001100: 04,3241 01167 TC INTWAKUQ
052520,001101:
052521,001102: 04,3242 00002 UPMNSVCD OCT 2
052522,001103: 04,3243 00000 OCT 0
052523,001104:
052524,001105: 04,3244 77420 GRP2PC STQ EXIT
052525,001106: 04,3245 02711 GRP2SVQ
052526,001107: 04,3246 05353 TC PHASCHNG
052527,001108: 04,3247 04022 OCT 04022
052528,001109: 04,3250 06037 TC INTPRET
052529,001110: 04,3251 77650 GOTO
052530,001111: 04,3252 02711 GRP2SVQ
052531,001112:
End of include-file INTEGRATION_INITIALIZATION.agc. Parent file is MAIN.agc