Source Code
These source-code files are part of a reconstructed copy of LM131 revision 1,
the final release of the Apollo 13 Lunar Module (LM) Apollo Guidance Computer
(AGC) software.
The source reconstruction began with source code of Luminary 131 previously transcribed from a digitized copy of that program. A dump of the flight spare core rope memory module B5, part number 2010802-171, serial number RAY 411, was obtained. This module is the only module different between Luminary 131 and LM131 revision 1. The dump was disassembled and all changes were incorporated into these source files. Note that page numbers in the reconstructed code match those on the Luminary 131 printout, although the changed code would likely have changed page numbers for a real LM131 revision 1 listing. Comments from the original source code are prefixed with a single '#' symbol, whereas comments added later are prefixed by "##" or "###". Report any errors noted by creating an issue report at the Virtual AGC project's GitHub repository. |
052911,000002: ## Copyright: Public domain.
052912,000003: ## Filename: TIME_OF_FREE_FALL.agc
052913,000004: ## Purpose: A section of LM131 revision 1.
052914,000005: ## It is part of the reconstructed source code for the final
052915,000006: ## release of the flight software for the Lunar Module's (LM)
052916,000007: ## Apollo Guidance Computer (AGC) for Apollo 13. The code has
052917,000008: ## been reconstructed from a listing of Luminary 131 and a dump
052918,000009: ## of a core rope memory module B5, part number 2010802-171,
052919,000010: ## which is the only module different between LM131 revision 1
052920,000011: ## and Luminary 131. The executable generated from this source
052921,000012: ## has been verified against the module dump, so while the names,
052922,000013: ## comments, and ordering may not be exactly correct, the
052923,000014: ## resulting binary is.
052924,000015: ## Reference: pp. 1260-1275
052925,000016: ## Assembler: yaYUL
052926,000017: ## Contact: Ron Burkey <info@sandroid.org>.
052927,000018: ## Website: www.ibiblio.org/apollo/index.html
052928,000019: ## Mod history: 2022-10-28 MAS Created from Luminary 131.
052929,000020:
Page 1260 |
052931,000022: # THE TFF SUBROUTINES MAY BE USED IN EITHER EARTH OR MOON CENTERED COORDINATES. THE TFF ROUTINES NEVER
052932,000023: # KNOW WHICH ORIGIN APPLIES. IT IS THE USER WHO KNOWS, AND WHO SUPPLIES RONE, VONE AND 1/SQRT(MU) AT THE
052933,000024: # APPROPRIATE SCALE LEVEL FOR THE PROPER PRIMARY BODY.
052934,000025:
052935,000026: # EARTH ORIGIN POSITION -29 METERS
052936,000027: # VELOCITY -7 METERS/CENTISECOND
052937,000028: # 1/SQRT(MU) +17 SQRT(CS SQ/METERS CUBED)
052938,000029:
052939,000030: # MOON ORIGIN POSITION -27 METERS
052940,000031: # VELOCITY -5 METERS/CENTISECONDS
052941,000032: # 1/SQRT(MU) +14 SQRT(CS SQ/METERS CUBED)
052942,000033:
052943,000034: # ALL DATA PROVIDED TO AND RECEIVED FROM ANY TFF SUBROUTINE WILL BE AT ONE OF THE LEVELS ABOVE. IN ALL CASES,
052944,000035: # THE FREE FALL TIME IS RETURNED IN CENTISECONDS AT (-28). PROGRAM TFF/CONIC WILL GENERATE VONE/RTMU AND
052945,000036: # LEAVE IT IN VONE' AT (+10) IF EARTH ORIGIN AND (+9) IF MOON ORIGIN.
052946,000037:
052947,000038: # THE USER MUST STORE THE STATE VECTOR IN RONE, VONE AND MU IN THE FORM 1/SQRT(MU) IN TFF/RTMU
052948,000039: # AT THE PROPER SCALE BEFORE CALLING TFF/CONIC. SINCE RONE, VONE ARE IN THE EXTENDED VERB STORAGE AREA,
052949,000040: # THE USER MUST ALSO LOCK OUT THE EXTENDED VERBS, AND RELEASE THEM WHEN FINISHED.
052950,000041:
052951,000042: # PROGRAMS CALC/TFF AND CALC/TPER ASSUME THAT THE TERMINAL RADIUS IS LESS THAN THE PRESENT
052952,000043: # RADIUS. THIS RESTRICTION CAN BE REMOVED BY A 15 W CODING CHANGE, BUT AT PRESENT IT IS NOT DEEMED NECESSARY.
052953,000044:
052954,000045: # THE FOLLOWING ERASABLE QUANTITIES ARE USED BY THE TFF ROUTINES, AND ARE LOCATED IN THE PUSH LIST.
052955,000046:
052956,000047: # BELOW E: IS USED FOR EARTH ORIGIN SCALE
052957,000048: # M: IS USED FOR MOON ORIGIN SCALE
052958,000049:
052959,000050: # TFFSW = 119D BIT1 0 = CALCTFF 1 = CALCTPER
052960,000051: 10,2213 TFFDELQ = 10D # Q2-Q1 E: (-16) M: (-15)
052961,000052: 10,2213 RMAG1 = 12D # ABVAL(RN) M E: (-29) M: (-27)
052962,000053: # RPER = 14D PERIGEE RADIUS M E: (-29) M: (-27)
052963,000054: 10,2213 TFFQ1 = 14D # R.V / SQRT(MUE) E: (-16) M: (-15)
052964,000055: # SDELF/2 SIN(THETA) /2
052965,000056: 10,2213 CDELF/2 = 14D # COS(THETA) /2
052966,000057: # RAPO = 16D APOGEE RADIUS M E: (-29) M: (-27)
052967,000058: 10,2213 NRTERM = 16D # TERMINAL RADIUS M E: (-29+NR)
052968,000059: # M: (-27+NR)
052969,000060: 10,2213 RTERM = 18D # TERMINAL RADIUS M E: (-29) M: (-27)
052970,000061: 10,2213 TFFVSQ = 20D # -(V SQUARED/MU) 1/M E: (20) M: (18)
052971,000062: 10,2213 TFF1/ALF = 22D # SEMI MAJ AXIS M E: (-22-2 NA)
052972,000063: # M: (-20-2 NA)
052973,000064: 10,2213 TFFRTALF = 24D # SQRT(ALFA) E:(10+NA) M: (9+NA)
052974,000065: 10,2213 TFFALFA = 26D # ALFA 1/M E:(26-NR) M: (24-NR)
052975,000066: 10,2213 TFFNP = 28D # SEMI LATUS RECTUM M E: (-38+2 NR)
052976,000067: # M: (-36+2 NR)
052977,000068: 10,2213 TFF/RTMU = 30D # 1/SQRT(MU) E: (17) M: (14)
052978,000069: 10,2213 NRMAG = 32D # PRESENT RADIUS M E: (-29+NR)
052979,000070: # M: (-27+NR)
052980,000071: 10,2213 TFFX = 34D
052981,000072: 10,2213 TFFTEM = 36D # TEMPORARY
Page 1261 |
052983,000074: # REGISTERS S1, S2 ARE UNTOUCHED BY ANY TFF SUBROUTINE
052984,000075: # INDEX REGISTERS X1, X2 ARE USED BY ALL TFF SUBROUTINES. THEY ARE ESTAB-
052985,000076: # LISHED IN TFF/CONIC AND MUST BE PRESERVED BETWEEN CALLS TO SUBSEQUENT
052986,000077: # SUBROUTINES.
052987,000078: # -NR C(X1) = NORM COUNT OF RMAG
052988,000079: # -NA C(X2) = NORM COUNT OF SQRT(ABS(ALFA))
052989,000080:
Page 1262 |
052991,000082: # SUBROUTINE NAME: TFFCONIC DATE: 01.29.67
052992,000083: # MOD NO: 0 LOG SECTION: TIME OF FREE FALL
052993,000084: # MOD BY: RR BAIRNSFATHER
052994,000085: # MOD NO: 1 MOD BY: RR BAIRNSFATHER DATE: 11 APR 67
052995,000086: # MOD NO: 2 MOD BY: RR BAIRNSFATHER DATE: 21 NOV 67 ADD MOON MU.
052996,000087: # MOD NO: 3 MOD BY: RR BAIRNSFATHER DATE: 21 MAR 68 ACCEPT DIFFERENT EARTH/MOON SCALES
052997,000088:
052998,000089: # FUNCTIONAL DESCRIPTION: THIS SUBROUTINE IS CALLED TO COMPUTE THOSE CONIC PARAMETERS REQUIRED BY THE TFF
052999,000090: # SUBROUTINES AND TO ESTABLISH THEM IN THE PUSH LIST AREA. THE PARAMETERS ARE LISTED UNDER OUTPUT.
053000,000091: # THE EQUATIONS ARE
053001,000092: # - - -
053002,000093: # H = RN*VN ANGULAR MOMENTUM
053003,000094: # - -
053004,000095: # LCP = H.H / MU SEMI LATUS RECTUM
053005,000096: # - -
053006,000097: # ALFA = 2/RN - VN.VN / MU RECIPROCAL SEMI MAJ AXIS, SIGNED
053007,000098:
053008,000099: # AND ALFA IS POS FOR ELLIPTIC ORBITS
053009,000100: # 0 FOR PARABOLIC ORBITS
053010,000101: # NEG FOR HYPERBOLIC ORBITS.
053011,000102: # SUBROUTINE ALSO COMPUTES AND SAVES RMAG.
053012,000103:
053013,000104: # CALLING SEQUENCE:
053014,000105: # TFFCONIC EXPECTS CALLER TO ENTER WITH CORRECT GRAVITATIONAL CONSTANT IN MPAC, IN THE FORM
053015,000106: # 1/SQRT(MU). PROGRAM WILL SAVE IN TFF/RTMU . THE SCALE IS DETERMINED BY WHETHER EARTH OR MOON
053016,000107: # ORIGIN IS USED. THE CALLER MUST LOCK OUT THE EXTENDED VERBS BEFORE PROVIDING STATE VECTOR IN RONE,
053017,000108: # VONE AT PROPER SCALE. THE EXTENDED VERBS MUST BE RESTORED WHEN THE CALLER IS FINISHED USING THE
053018,000109: # TFF ROUTINES.
053019,000110:
053020,000111: # ENTRY POINT TFFCONMU EXPECTS THAT TFF/RTMU IS ALREADY LOADED.
053021,000112:
053022,000113: # TO SPECIFY MU: DLOAD CALL IF MU ALREADY STORED: CALL
053023,000114: # YOURMU 1/RTMU E:(17) M:(14) TFFCONMU
053024,000115: # TFFCONIC
053025,000116: # PUSHLOC = PDL+0, ARBITRARY IF LEQ 18D
053026,000117:
053027,000118: # SUBROUTINES CALLED: NONE
053028,000119:
053029,000120: # NORMAL EXIT MODES: RVQ
053030,000121:
053031,000122: # ALARMS: NONE
053032,000123:
053033,000124: # OUTPUT: THE FOLLOWING ARE STORED IN THE PUSH LIST AREA.
053034,000125: # RMAG1 E:(-29) M:(-27) M RN, PRESENT RADIUS LENGTH.
053035,000126: # NRMAG E:(-29+NR) M RMAG, NORMALIZED
053036,000127: # M:(-27+NR)
053037,000128: # X1 -NR, NORM COUNT
053038,000129: # TFFNP E:(-38+2NR) M LCP, SEMI LATUS RECTUM, WEIGHTED BY NR. FOR VGAMCALC
053039,000130: # M:(-36+2NR)
053040,000131: # TFF/RTMU E:(17) M:(14) 1/SQRT(MU)
053041,000132: # TFFVSQ E:(20) M:(18) 1/M -(V SQ/MU): PRESENT VELOCITY, NORMLIZED. FOR VGAMCALC
053042,000133: # TFFALFA E:(26-NR) 1/M ALFA, WEIGHTED BY NR
053043,000134: # M:(24-NR)
053044,000135: # TFFRTALF E:(10+NA) SQRT(ALFA), NORMALIZED
053045,000136: # M:(9+NA)
Page 1263 |
053047,000138: # X2 -NA, NORMCOUNT
053048,000139: # TFF1/ALF E:(-22-2NA) SIGNED SEMI MAJ AXIS, WEIGHTED BY NA
053049,000140: # M:(-20-2NA)
053050,000141: # PUSHLOC AT PDL+0
053051,000142:
053052,000143: # THE FOLLOWING IS STORED IN GENERAL ERASABLE
053053,000144: # VONE' E:(10) M:(9) V/RT(MU), NORMALIZED VELOCITY
053054,000145:
053055,000146: # ERASABLE INITIALIZATION REQUIRED:
053056,000147: # RONE E:(-29) M:(-27) M STATE VECTOR LEFT BY CALLER
053057,000148: # VONE E:(-7) M:(-5) M/CS STATE VECTOR LEFT BY CALLER
053058,000149: # TFF/RTMU E:(17) M:(14) 1/RT(CS SQ/M CUBE) IF ENTER VIA TFFCONMU.
053059,000150:
053060,000151: # DEBRIS: QPRET, PDL+0 ... PDL+3
053061,000152:
053062,000153: 33,3771 BANK 33
053063,000154: 27,2000 SETLOC TOF-FF
053064,000155: 27,2000 BANK
053065,000156:
053066,000157: 27,3361 COUNT* $$/TFF
053067,000158:
053068,000159: 27,3361 00037 TFFCONIC STORE TFF/RTMU # 1/SQRT(MU) E:(17) M:(14)
053069,000160:
053070,000161: 27,3362 53575 TFFCONMU VLOAD UNIT # COME HERE WITH TFFRTMU LOADED.
053071,000162: 27,3363 02207 RONE # SAVED RN. M E:(-29) M:(-27)
053072,000163: 27,3364 77725 PDDL # UR/2 TO PDL+0, +5
053073,000164: 27,3365 00045 36D # MAGNITUDE
053074,000165: 27,3366 00015 STORE RMAG1 # M E:(-29) M:(-27)
053075,000166:
053076,000167: 27,3367 77701 NORM
053077,000168: 27,3370 00047 X1 # -NR
053078,000169: 27,3371 24041 STOVL NRMAG # RMAG M E:(-29+NR) M:(-27+NR)
053079,000170: 27,3372 02215 VONE # SAVED VN. M/CS E:(-7) M:(-5)
053080,000171: 27,3373 77761 VXSC
053081,000172: 27,3374 00037 TFF/RTMU # E:(17) M:(14)
053082,000173: 27,3375 02170 STORE VONE' # VN/SQRT(MU) E:(10) M:(9)
053083,000174:
053084,000175: 27,3376 47361 VXSC VXV
053085,000176: 27,3377 00041 NRMAG # E:(-29+NR) M:(-27+NR)
053086,000177: # UR/2 FROM PDL
053087,000178: 27,3400 47572 VSL1 VSQ # BEFORE: E:(-19+NR) M:(-18+NR)
053088,000179: 27,3401 14035 STODL TFFNP # LC P M E:(-38+2NR) M:(-36+2NR)
053089,000180: # SAVE ALSO FOR VGAMCALC
053090,000181: 27,3402 06514 TFF1/4
053091,000182: 27,3403 63271 DDV PDVL # (2/RMAG) 1/M E:(26-NR) M:(24-NR)
053092,000183: 27,3404 00041 NRMAG # RMAG M E:(-29+NR) M:(-27+NR)
053093,000184: 27,3405 02170 VONE' # SAVED VN. E:(10) M:(9)
053094,000185: 27,3406 57436 VSQ DCOMP # KEEP MPAC+2 HONEST FOR SQRT.
053095,000186: 27,3407 00025 STORE TFFVSQ # -(V SQ/MU) E:(20) M:(18)
053096,000187: # SAVE FOR VGAMCALC
053097,000188: 27,3410 43257 SR* DAD
Page 1264 |
053099,000190: 27,3411 20573 0 -6,1 # GET -VSQ/MU E:(26-NR) M:(24-NR)
053100,000191: 27,3412 77626 STADR
053101,000192: # 2/RMAG FROM PDL+2
053102,000193: 27,3413 77744 STORE TFFALFA # ALFA 1/M E:(26-NR) M:(24-NR)
053103,000194: 27,3414 41457 SL* PUSH # TEMP SAVE ALFA E:(20) M:(18)
053104,000195: 27,3415 20173 0 -6,1
053105,000196: 27,3416 75446 ABS SQRT # E:(10) M:(9)
053106,000197: 27,3417 77701 NORM
053107,000198: 27,3420 00050 X2 # X2 = -NA
053108,000199: 27,3421 00031 STORE TFFRTALF # SQRT( ABS(ALFA) ) E:(10+NA) M:(9+NA)
053109,000200: 27,3422 75316 DSQ SIGN # NOT SO ACCURATE, BUT OK
053110,000201: # ALFA FROM PDL+2 E:(20) M:(18)
053111,000202: 27,3423 55254 BZE BDDV # SET 1/ALFA =0, TO SHOW SMALL ALFA
053112,000203: 27,3424 57426 +2
053113,000204: 27,3425 06514 TFF1/4
053114,000205: 27,3426 00027 +2 STORE TFF1/ALF # 1/ALFA E:(-22-2NA) M:(-20-2NA)
053115,000206: 27,3427 77616 DUMPCNIC RVQ
053116,000207:
053117,000208: # 39 W
Page 1265 |
053119,000210: # SUBROUTINE NAME: TFFRP/RA DATE: 01.17.67
053120,000211: # MOD NO: 0 LOG SECTION: TIME OF FREE FALL
053121,000212: # MOD BY: RR BAIRNSFATHER
053122,000213: # MOD NO: 1 MOD BY: RR BAIRNSFATHER DATE: 11 APR 67
053123,000214: # MOD NO: 2 MOD BY: RR BAIRNSFATHER DATE: 21 MAR 68 ACCEPT DIFFERENT EARTH/MOON SCALES
053124,000215: # ALSO IMPROVE ACCURACY OF RAPO.
053125,000216:
053126,000217: # FUNCTIONAL DESCRIPTION: USED BY CALCTPER AND TFF DISPLAYS TO CALCULATE PERIGEE RADIUS AND ALSO
053127,000218: # APOGEE RADIUS FOR A GENERAL CONIC.
053128,000219: # PROGRAM GIVES PERIGEE RADIUS AS APOGEE RADIUS IS GIVEN BY
053129,000220: # RP = P/(1+E) RA = (1+E) / ALFA
053130,000221: # WHERE 2
053131,000222: # E = 1 - P ALFA
053132,000223: # IF RA IS NEGATIVE OR SHOWS DIVIDE OVERFLOW, THEN RA = POSMAX BECAUSE
053133,000224: # 1. APOGEE RADIUS IS NOT MEANINGFUL FOR HYPERBOLA
053134,000225: # 2. APOGEE RADIUS IS NOT DEFINED FOR PARABOLA
053135,000226: # 3. APOGEE RADIUS EXCEEDS THE SCALING FOR ELLIPSE.
053136,000227:
053137,000228: # THIS SUBROUTINE REQUIRES THE SIGNED RECIPROCAL SEMI MAJ AXIS, ALFA, AND SEMI LATUS RECTUM AS DATA.
053138,000229:
053139,000230: # CALLING SEQUENCE: CALL
053140,000231: # TFFRP/RA
053141,000232: # PUSHLOC = PDL+0, ARBITRARY IF LEQ 10D
053142,000233: # C(MPAC) UNSPECIFIED
053143,000234:
053144,000235: # SUBROUTINES CALLED: NONE
053145,000236:
053146,000237: # NORMAL EXIT MODE: RVQ
053147,000238: # IF ELLIPSE, WITHIN NORMAL SCALING, RAPO IS CORRECT.
053148,000239: # OTHERWISE, RAPO = POSMAX.
053149,000240:
053150,000241: # ALARMS: NONE
053151,000242:
053152,000243: # OUTPUT: STORED IN PUSH LIST AREA. SCALE OF OUTPUT AGREES WITH DATA SUPPLIED TO TFF/CONIC.
053153,000244: # RPER E:(-29) M:(-27) M PERIGEE RADIUS DESTROYED BY CALCTFF/CALCTPER, TFFTRIG.
053154,000245: # RAPO E:(-29) M:(-27) M APOGEE RADIUS WILL BE DESTROYED BY CALCTFF/CALCTPER
053155,000246: # PUSHLOC AT PDL+0
053156,000247:
053157,000248: # ERASABLE INITIALIZATION REQUIRED:
053158,000249: # TFFALFA E:(26-NR) M 1/SEMI MAJ AXIS LEFT BY TFFCONIC
053159,000250: # M:(24-NR)
053160,000251: # TFFNP E:(-38+2NR) M LC P, SEMI LATUS RECTUM LEFT BY TFFCONIC
053161,000252: # M:(-36+2NR)
053162,000253: # X1 -NR, NORM COUNT OF RMAG LEFT BY TFFCONIC
053163,000254: # X2 -NA, NORM COUNT OF ALFA LEFT BY TFFCONIC
053164,000255:
053165,000256: # DEBRIS: QPRET, PDL+0 ... PDL+1
053166,000257:
Page 1266 |
053168,000259: 27,3430 RAPO = 16D # APOGEE RADIUS M E:(-29) M:(-27)
053169,000260: 27,3430 RPER = 14D # PERIGEE RADIUS M E:(-29) M:(-27)
053170,000261:
053171,000262: 27,3430 41345 TFFRP/RA DLOAD DMP
053172,000263: 27,3431 00033 TFFALFA # ALFA 1/M E:(26-NR) M:(24-NR)
053173,000264: 27,3432 00035 TFFNP # LC P M E:(-38+2NR) M:(-36+2NR)
053174,000265: 27,3433 57457 SR* DCOMP # ALFA P (-12+NR)
053175,000266: 27,3434 20571 0 -8D,1 # ALFA P (-4)
053176,000267: 27,3435 51415 DAD ABS # (DCOMP GIVES VALID TP RESULT FOR SQRT)
053177,000268: # (ABS PROTECTS SQRT IF E IS VERY NEAR 0)
053178,000269: 27,3436 17766 DP2(-4)
053179,000270: 27,3437 43366 SQRT DAD # E SQ = (1- P ALFA) (-4)
053180,000271: 27,3440 06514 TFF1/4
053181,000272: 27,3441 55206 PUSH BDDV # (1+E) (-2) TO PDL+0
053182,000273: 27,3442 00035 TFFNP # LCP M E:(-38+2NR) M:(-36+2NR)
053183,000274: 27,3443 53657 SR* SR* # (DOES SR THEN SL TO AVOID OVFL)
053184,000275: 27,3444 20601 0,1 # X1=-NR
053185,000276: 27,3445 20572 0 -7,1 # (EFFECTIVE SL)
053186,000277: 27,3446 14017 STODL RPER # PERIGEE RADIUS M E:(-29) M:(-27)
053187,000278: # (1+E) (-2) FROM PDL+0
053188,000279: 27,3447 41005 DMP BOVB
053189,000280: 27,3450 00027 TFF1/ALF # E:(-22-2NA) M:(-20-2NA)
053190,000281: 27,3451 57754 TCDANZIG # CLEAR OVFIND, IF ON.
053191,000282: 27,3452 53654 BZE SL*
053192,000283: 27,3453 57462 MAXRA # SET POSMAX, IF ALFA=0
053193,000284: 27,3454 57603 0 -5,2 # -5+NA
053194,000285: 27,3455 40057 SL* BOV
053195,000286: 27,3456 57576 0,2
053196,000287: 27,3457 57462 MAXRA # SET POSMAX IF OVFL.
053197,000288: 27,3460 77644 BPL # CONTINUE WITH VALID RAPO.
053198,000289: 27,3461 57464 +3
053199,000290: 27,3462 77745 MAXRA DLOAD # RAPO CALC IS NOT VALID. SET RAPO =
053200,000291: 27,3463 17772 NEARONE # POSMAX AS A TAG.
053201,000292: 27,3464 00021 +3 STORE RAPO # APOGEE RADIUS M E:(-29) M:(-27)
053202,000293: 27,3465 77616 DUMPRPRA RVQ
053203,000294:
053204,000295: # 30 W
053205,000296:
Page 1267 |
053207,000298: # SUBROUTINE NAME: CALCTPER / CALCTFF DATE: 01.29.67
053208,000299: # MOD NO: 0 LOG SECTION: TIME OF FREE FALL
053209,000300: # MOD BY: RR BAIRNSFATHER
053210,000301: # MOD NO: 1 MOD BY: RR BAIRNSFATHER DATE: 21 MAR 67
053211,000302: # MOD NO: 2 MOD BY: RR BAIRNSFATHER DATE: 14 APR 67
053212,000303: # MOD NO: 3 MOD BY: RR BAIRNSFATHER DATE: 8 JUL 67 NEAR EARTH MUE AND NEG TFF (GONEPAST)
053213,000304: # MOD NO: 4 MOD BY: RR BAIRNSFATHER DATE: 21 NOV 67 ADD VARIABLE MU.
053214,000305: # MOD NO: 5 MOD BY: RR BAIRNSFATHER DATE: 21 MAR 68 ACCEPT DIFFERENT EARTH/MOON SCALES
053215,000306:
053216,000307: # FUNCTIONAL DESCRIPTION: PROGRAM CALCULATES THE FREE-FALL TIME OF FLIGHT FROM PRESENT POSITION RN AND
053217,000308: # VELOCITY VN TO A RADIUS LENGTH SPECIFIED BY RTERM, SUPPLIED BY THE USER. THE POSITION VECTOR
053218,000309: # RN MAY BE ON EITHER SIDE OF THE CONIC, BUT RTERM IS CONSIDERED ON THE INBOUND SIDE.
053219,000310: # THE EQUATIONS ARE
053220,000311:
053221,000312: # Q2 = -SQRT(RTERM (2-RTERM ALFA) - LCP) (INBOUND SIDE)) LEQ +- LCE/SQRT(ALFA)
053222,000313: # - -
053223,000314: # Q1 = RN.VN / SQRT(MU) LEQ +- LCE/SQRT(ALFA)
053224,000315:
053225,000316: # Z = NUM / DEN LEQ +- 1/SQRT(ALFA)
053226,000317:
053227,000318: # WHERE, IF INBOUND
053228,000319: # NUM = RTERM -RN LEQ +- 2 LCE/ALFA
053229,000320: # DEN = Q2+Q1 LEQ +- 2 LCE/SQRT(ALFA)
053230,000321:
053231,000322: # AND, IF OUTBOUND
053232,000323: # NUM = Q2-Q1 LEQ +- 2 LCE/SQRT(ALFA)
053233,000324: # DEN = 2 - ALFA (RTERM + RN). LEQ +- 2 LCE
053234,000325:
053235,000326: # IF ALFA ZZ < 1.0 (FOR ALL CONICS EXCEPT ELLIPSES HAVING ABS(DEL ECC ANOM) G 90 DEG)
053236,000327: # THEN X = ALFA Z Z
053237,000328: # AND TFF = (RTERM +RN -2 ZZ T(X) ) Z/SQRT(MU)
053238,000329: # EXCEPT IF ALFA PNZ, AND IF TFF NEG,
053239,000330: # THEN TFF = 2 PI /(ALFA SQRT(ALFA)) + TFF
053240,000331: # OR IF ALFA ZZ GEQ 1.0 (FOR ELLIPSES HAVING ABS(DEL ECC ANOM) GEQ 90 DEG)
053241,000332: # THEN X = 1/ALFA Z Z
053242,000333: # AND TFF = (PI/SQRT(ALFA) -Q2 +Q1 +2(X T(X) -1) /ALFA Z) /ALFA SQRT(MU)
053243,000334: # WHERE T(X) IS A POLYNOMIAL APPROXIMATION TO THE SERIES
053244,000335: # 2 3 2
053245,000336: # 1/3 - X/5 + X /7 - X /9 ... (X < 1.0)
053246,000337:
053247,000338: # CALLING SEQUENCE: TIME TO RTERM TIME TO PERIGEE
053248,000339: # CALL CALL
053249,000340: # CALCTFF CALCTPER
053250,000341: # C(MPAC) = TERMNL RAD M C(MPAC) = PERIGEE RAD M
053251,000342: # FOR EITHER, E:(-29) M:(-27)
053252,000343: # FOR EITHER, PUSHLOC = PDL+0, ARBITRARY IF LEQ 8D.
Page 1268 |
053254,000345:
053255,000346: # SUBROUTINES CALLED: T(X), VIA RTB
053256,000347:
053257,000348: # NORMAL EXIT MODE: RVQ
053258,000349: # HOWEVER, PROGRAM EXITS WITH ONE OF THE FOLLOWING VALUES FOR TFF (-28) CS IN MPAC. USER MUST STORE.
053259,000350: # A. TFF = FLIGHT TIME. NORMAL CASE FOR POSITIVE FLIGHT TIME LESS THAN ONE ORBITAL PERIOD.
053260,000351: # B. (THIS OPTION IS NO LONGER USED.)
053261,000352: # C. TFF = POSMAX. THIS INDICATES THAT THE CONIC FROM THE PRESENT POSITION WILL NOT RETURN TO
053262,000353: # THE SPECIFIED ALTITUDE. ALSO INDICATES OUTBOUND PARABOLA OR HYPERBOLA.
053263,000354:
053264,000355: # OUTPUT: C(MPAC) (-28) CS TIME OF FLIGHT, OR TIME TO PERIGEE
053265,000356: # TFFX (0) X, LEFT FOR ENTRY DISPLAY TFF ROUTINES
053266,000357: # NRTERM E:(-29+NR) M RTERM, WEIGHTED BY NR LEFT FOR ENTRY DISPLAY TFF ROUTINES
053267,000358: # M:(-27+NR)
053268,000359: # TFFTEM E:(-59+2NR) LCP Z Z SGN(SDELF) LEFT FOR ENTRY DISPLAY TFF ROUTINES
053269,000360: # M:(-55+2NR) LCP /ALFA SGN(SDELF) LEFT FOR ENTRY DISPLAY TFF ROUTINES
053270,000361: # NOTE: TFFTEM = PDL 36D AND WILL BE DESTROYED BY .:UNIT:.
053271,000362: # RMAG1 E:(-29) M:(-27) PDL 12 NOT TOUCHED.
053272,000363: # TFFQ1 E:(-16) M:(-15) PDL 14D
053273,000364: # TFFDELQ E:(-16) M:(-15) PDL 10D
053274,000365: # PUSHLOC AT PDL+0
053275,000366:
053276,000367: # ERASABLE INITIALIZATION REQUIRED:
053277,000368: # RONE E:(-29) M:(-27) M STATE VECTOR LEFT BY USER
053278,000369: # VONE' E:(+10) M:(+9) VN/SQRT(MU) LEFT BY TFF/CONIC
053279,000370: # RMAG1 E:(-29) M:(-27) PRESENT RADIUS, M LEFT BY TFFCONIC
053280,000371: # C(MPAC) E:(-29) M:(-27) RTERM, TERMINAL RADIUS LENGTH, M LEFT BY USER
053281,000372:
053282,000373: # THE FOLLOWING ARE STORED IN THE PUSH LIST AREA.
053283,000374: # TFF/RTMU E:(17) M:(14) 1/SQRT(MU) LEFT BY TFFCONIC.
053284,000375: # NRMAG E:(-29+NR) M RMAG, NORMALIZED LEFT BY TFFCONIC
053285,000376: # M:(-27+NR)
053286,000377: # X1 -NR, NORM COUNT LEFT BY TFFCONIC
053287,000378: # TFFNP E:(-38+2NR) M LCP, SEMI LATUS RECTUM, WEIGHT NR LEFT BY TFFCONIC
053288,000379: # M:(-36+2NR)
053289,000380: # TFFALFA E:(26-NR) 1/M ALFA, WEIGHT NR LEFT BY TFFCONIC
053290,000381: # M:(24-NR)
053291,000382: # TFFRTALF E:(10+NA) SQRT(ALFA), NORMALIZED LEFT BY TFFCONIC
053292,000383: # M:(9+NA)
053293,000384: # X2 -NA, NORMCOUNT LEFT BY TFFCONIC
053294,000385: # TFF1/ALF E:(-22-2NA) SIGNED SEMIMAJ AXIS, WEIGHTED BY NA LEFT BY TFFCONIC
053295,000386: # M:(-20-2NA)
053296,000387:
053297,000388: # DEBRIS: QPRET, PDL+0 ... PDL+3
053298,000389: # RTERM E:(-29) M:(-27) RTERM, TERMINAL RADIUS LENGTH
053299,000390: # RAPO E:(-29) M:(-27) PDL 16D (=NRTERM)
053300,000391: # RPER E:(-29) M:(-27) PDL 14D (=TFFQ1)
053301,000392:
Page 1269 |
053303,000394: 27,3466 77614 CALCTPER SETGO # ENTER WITH RPER IN MPAC
053304,000395: 27,3467 03436 TFFSW
053305,000396: 27,3470 57473 +3
053306,000397: 27,3471 77614 CALCTFF CLEAR # ENTER WITH RTERM IN MPAC
053307,000398: 27,3472 03676 TFFSW
053308,000399: 27,3473 00023 +3 STORE RTERM # E:(-29) M:(-27)
053309,000400: 27,3474 77657 SL*
053310,000401: 27,3475 20201 0,1 # X1=-NR
053311,000402: 27,3476 00021 STORE NRTERM # RTERM E:(-29+NR) M:(-27+NR)
053312,000403: 27,3477 44205 DMP BDSU
053313,000404: 27,3500 00033 TFFALFA # ALFA E:(26-NR) M:(24-NR)
053314,000405: 27,3501 06514 TFF1/4
053315,000406: 27,3502 41206 PUSH DMP # (2-ALFA RTERM) (-3) TO PDL+0
053316,000407: 27,3503 00021 NRTERM # E:(-29+NR) M:(-27+NR)
053317,000408: 27,3504 53725 PDDL SR* # RTERM(2-ALFA RTERM) TO PDL+2
053318,000409: # E:(-32+NR) M:(-30+NR)
053319,000410: 27,3505 00035 TFFNP # LC P E:(-38+2NR) M:(-36+2NR)
053320,000411: 27,3506 20573 0 -6,1 # X1 = -NR
053321,000412: 27,3507 43276 DCOMP DAD # DUE TO SHIFTS, KEEP PRECISION FOR SQRT
053322,000413: # RTERM(2-ALFA RTERM) FROM PDL +2
053323,000414: # E:(-32+NR) M:(-30+NR)
053324,000415: 27,3510 77657 SR* # LEAVE E:(-32) M:(-30)
053325,000416: 27,3511 20601 0,1 # X1 = -NR
053326,000417: 27,3512 71214 BOFF DLOAD # CHECK TFF /TPER SWITCH
053327,000418: 27,3513 03756 TFFSW
053328,000419: 27,3514 57516 +2 # IF TFF, CONTINUE
053329,000420: 27,3515 06524 TFFZEROS # IF TPER, SET Q2 = 0
053330,000421: 27,3516 75440 +2 BMN SQRT # E:(-16) M:(-15)
053331,000422: 27,3517 57651 MAXTFF1 # NO FREE FALL CONIC TO RTERM FROM HERE
053332,000423: # RESET PDL, SET TFF=POSMAX, AND EXIT.
053333,000424:
053334,000425: 27,3520 41076 DCOMP BOVB # RT IS ON INBOUND SIDE. ASSURE OVFIND=0
053335,000426: 27,3521 57754 TCDANZIG # ANY PORT IN A STORM.
053336,000427: 27,3522 24045 STOVL TFFTEM # Q2 E:(-16) M:(-15)
053337,000428: 27,3523 02170 VONE' # VN/SQRT(MU) E:(10) M:(9)
053338,000429: 27,3524 52441 DOT SL3
053339,000430: 27,3525 02207 RONE # SAVED RN. E:(-29) M:(-27)
053340,000431: 27,3526 00017 STORE TFFQ1 # Q1, SAVE FOR GONEPAST TEST.
053341,000432: # E:(-16) M:(-15)
053342,000433: 27,3527 44240 BMN BDSU
053343,000434: 27,3530 57551 INBOUND # USE ALTERNATE Z
053344,000435: 27,3531 00045 TFFTEM # Q2 E:(-16) M:(-15)
053345,000436:
053346,000437: # OUTBOUND Z CALC CONTINUES HERE
053347,000438:
053348,000439: 27,3532 14043 STODL TFFX # NUM=Q2-Q1 E:(-16) M:(-15)
053349,000440: 27,3533 00033 TFFALFA # ALFA E:(26-NR) M:(24-NR)
053350,000441: 27,3534 44205 DMP BDSU
Page 1270 |
053352,000443: 27,3535 00041 NRMAG # RMAG E:(-29+NR) M:(-27+NR)
053353,000444: # (2-RTERM ALFA) (-3) FROM PDL+0
053354,000445: 27,3536 51406 SAVEDEN PUSH ABS # DEN TO PDL+0 E:(-3) OR (-16)
053355,000446: # M:(-3) OR (-15)
053356,000447: 27,3537 40015 DAD BOV # INDETERMINANCY TEST
053357,000448: 27,3540 17760 LIM(-22) # =1.0-B(-22)
053358,000449: 27,3541 57562 TFFXTEST # GO IF DEN >/= B(-22)
053359,000450: 27,3542 65345 DLOAD PDDL # SET DEN=0 OTHERWISE
053360,000451: 27,3543 06524 TFFZEROS
053361,000452: # XCH ZERO WITH PDL+0
053362,000453: 27,3544 57545 DLOAD DCOMP
053363,000454: 27,3545 00033 TFFALFA # ALFA E:(26-NR) M:(24-NR)
053364,000455: 27,3546 71240 BMN DLOAD # FOR TPER: Z INDET AT DELE/2=0 AND 90.
053365,000456: 27,3547 57656 TFFEL1 # ASSUME 90, AND LEAVE 0 IN PDL: 1/Z=D/N
053366,000457:
053367,000458: # Z INDET. AT PERIGEE FOR PARAB OR HYPERB.
053368,000459: 27,3550 77616 DUMPTFF1 RVQ # RETURN TFF =0
053369,000460:
053370,000461: # INBOUND Z CALC CONTINUES HERE
053371,000462:
053372,000463: 27,3551 77745 INBOUND DLOAD # RESET PDL+0
053373,000464: 27,3552 45345 DLOAD DSU # ALTERNATE Z CALC
053374,000465: 27,3553 00023 RTERM # E:(-29) M:(-27)
053375,000466: 27,3554 00015 RMAG1 # E:(-29) M:(-27)
053376,000467: 27,3555 14043 STODL TFFX # NUM=RTERM-RN E:(-29) M:(-27)
053377,000468: 27,3556 00045 TFFTEM # Q2 E:(-16) M:(-15)
053378,000469: 27,3557 52015 DAD GOTO
053379,000470: 27,3560 00017 TFFQ1 # Q1 E:(-16) M:(-15)
053380,000471: 27,3561 57536 SAVEDEN # DEN = Q2+Q1 E:(-16) M:(-15)
053381,000472:
053382,000473: 27,3562 65215 TFFXTEST DAD PDDL # (ABS(DEN) TO PDL+2)) E:(-3) OR (-16)
053383,000474: # M:(-3) OR (-15)
053384,000475: 27,3563 17762 DP(-22) # RESTORE ABS(DEN) TO MPAC
053385,000476: 27,3564 00043 TFFX # NUM E:(-16) OR (-29) M:(-15) OR (-27)
053386,000477: 27,3565 53605 DMP SR*
053387,000478: 27,3566 00031 TFFRTALF # SQRT(ALFA) E:(10+NA) M:(9+NA)
053388,000479: 27,3567 57201 0 -3,2 # X2=-NA
053389,000480: 27,3570 77671 DDV # C(MPAC) =NUM SQRT(ALFA) E:(-3) OR (-16)
053390,000481: # M:(-3) OR (-15)
053391,000482: # ABS(DEN) FROM PDL+2 E:(-3) OR (-16)
053392,000483: # M:(-3) OR (-15)
053393,000484: 27,3571 40145 DLOAD BOV # (THE DLOAD IS SHARED WITH TFFELL)
053394,000485: 27,3572 00043 TFFX # NUM E:(-16) OR (-29) M:(-15) OR (-27)
053395,000486: 27,3573 57654 TFFELL # USE EQN FOR DELE GEQ 90, LEQ -90
053396,000487:
053397,000488: # OTHERWISE, CONTINUE FOR GENERAL CONIC FOR TFF EQN
053398,000489:
053399,000490: 27,3574 45471 DDV STADR
053400,000491: # DEN FROM PDL+0 E:(-3) OR (-16)
053401,000492: # M:(-3) OR (-15)
053402,000493: 27,3575 77732 STORE TFFTEM # Z SAVE FOR SIGN OF SDELF.
Page 1271 |
053404,000495: # E:(-13) M:(-12)
053405,000496: 27,3576 63406 PUSH DSQ # Z TO PDL+0
053406,000497: 27,3577 41206 PUSH DMP # Z SQ TO PDL+2 E:(-26) M:(-24)
053407,000498: 27,3600 00035 TFFNP # LC P E:(-38+2NR) M:(-36+2NR)
053408,000499: 27,3601 75261 SL SIGN
053409,000500: 27,3602 20206 5
053410,000501: 27,3603 00045 TFFTEM # AFFIX SIGN FOR SDELF (ENTRY DISPLAY)
053411,000502: 27,3604 14045 STODL TFFTEM # P ZSQ E:(-59+2NR) M:(-55+2NR)
053412,000503: # (ARG IS USED IN TFF/TRIG)
053413,000504: # ZSQ FROM PDL+2 E:(-26) M:(-24)
053414,000505: 27,3605 41206 PUSH DMP # RESTORE PUSH LOC
053415,000506: 27,3606 00033 TFFALFA # ALFA E:(26-NR) M:(24-NR)
053416,000507: 27,3607 77657 SL*
053417,000508: 27,3610 20201 0,1 # X1=-NR
053418,000509: 27,3611 00043 STORE TFFX # X
053419,000510: 27,3612 41234 RTB DMP
053420,000511: 27,3613 57736 T(X) # POLY
053421,000512: # ZSQ FROM PDL+2 E:(-26) M:(-24)
053422,000513: 27,3614 44302 SR2 BDSU # 2 ZSQ T(X) E:(-29) M:(-27)
053423,000514: 27,3615 00023 RTERM # RTERM E:(-29) M:(-27)
053424,000515: 27,3616 41215 DAD DMP
053425,000516: 27,3617 00015 RMAG1 # E:(-29) M:(-27)
053426,000517: # Z FROM PDL+0 E:(-13) M:(-12)
053427,000518: 27,3620 51042 SR3 BPL # TFF SQRT(MU) E:(-45) M:(-42)
053428,000519: 27,3621 57642 ENDTFF # (NO PUSH UP)
053429,000520: 27,3622 75206 PUSH SIGN # TFF SQRT(MU) TO PDL+0
053430,000521: 27,3623 00017 TFFQ1 # Q1 FOR GONEPAST TEST
053431,000522: 27,3624 71244 BPL DLOAD # GONE PAST ?
053432,000523: 27,3625 57646 NEGTFF # YES. TFF < 0.
053433,000524: 27,3626 00027 TFF1/ALF # 1/ALFA E:(-22-2NA) M:(-20-2NA)
053434,000525: 27,3627 51076 DCOMP BPL # ALFA > 0 ?
053435,000526: 27,3630 57646 NEGTFF # NO. TFF IS NEGATIVE.
053436,000527:
053437,000528: # CORRECT FOR ORBITAL PERIOD.
053438,000529:
053439,000530: 27,3631 77676 DCOMP # YES. CORRECT FOR ORB PERIOD.
053440,000531: 27,3632 56205 DMP DDV
053441,000532: 27,3633 17756 PI/16 # 2 PI (-5)
053442,000533: 27,3634 00031 TFFRTALF # SQRT(ALFA) E:(10+NA) M:(9+NA)
053443,000534: 27,3635 53657 SL* SL*
053444,000535: 27,3636 57602 0 -4,2 # X2=-NA
053445,000536: 27,3637 57602 0 -4,2
053446,000537: 27,3640 43257 SL* DAD
053447,000538: 27,3641 57576 0,2
053448,000539: # TFF SQRT(MU) FROM PDL+0 E:(-45) M:(-42)
053449,000540: 27,3642 40005 ENDTFF DMP BOV # TFF SQRT(MU) IN MPAC E:(-45) M:(-42)
053450,000541: 27,3643 00037 TFF/RTMU # E:(17) M:(14)
053451,000542: 27,3644 57652 MAXTFF # SET POSMAX IF OVFL.
053452,000543:
053453,000544: 27,3645 77616 DUMPTFF2 RVQ # RETURN TFF (-28) CS IN MPAC.
053454,000545:
Page 1272 |
053456,000547: 27,3646 77745 NEGTFF DLOAD
053457,000548: # TFF SQRT(MU) FROM PDL+0, NEGATIVE.
053458,000549: 27,3647 77650 GOTO
053459,000550: 27,3650 57642 ENDTFF
053460,000551:
053461,000552: 27,3651 77745 MAXTFF1 DLOAD # RESET PDL
053462,000553: 27,3652 43545 MAXTFF DLOAD RVQ
053463,000554: 27,3653 17772 NEARONE
053464,000555:
053465,000556: # TIME OF FLIGHT ELLIPSE WHEN DEL (ECCENTRIC ANOM) GEQ 90 AND LEQ -90.
053466,000557:
053467,000558: # NUM FROM TFFX. E:(-16) OR (-29)
053468,000559: # M:(-15) OR (-27)
053469,000560: 27,3654 77712 TFFELL SL2 # NUM E:(-14) OR (-27) M:(-13) OR (-25)
053470,000561: 27,3655 41465 BDDV PUSH # TEMP SAVE D/N IN PDL+0
053471,000562: # DEN FROM PDL+0 E:(-3)/( 16) M:(-3)/(-15)
053472,000563: # N/D TO PDL+0 E:(11) M:(10)
053473,000564: 27,3656 45345 TFFEL1 DLOAD DSU # (ENTER WITH D/N=0 IN PDL+0)
053474,000565: 27,3657 00045 TFFTEM # Q2 E:(-16) M:(-15)
053475,000566: 27,3660 00017 TFFQ1 # Q1 E:(-16) M:(-15)
053476,000567: 27,3661 14013 STODL TFFDELQ # Q2-Q1 E:(-16) M:(-15)
053477,000568: # D/N FROM PDL+0
053478,000569: 27,3662 77626 STADR
053479,000570: 27,3663 77732 STORE TFFTEM # D/N E:(11) M:(10)
053480,000571: 27,3664 53605 DMP SL*
053481,000572: 27,3665 00027 TFF1/ALF # 1/ALFA E:(-22-2NA) M:(-20-2NA)
053482,000573: 27,3666 57576 0,2 # 1/ALFA Z E:(-11-NA) M:(-10-NA)
053483,000574: 27,3667 41206 PUSH DMP # TO PDL+0
053484,000575: 27,3670 00045 TFFTEM # 1/Z E:(11) M:(10)
053485,000576: 27,3671 41057 SL* BOVB
053486,000577: 27,3672 57576 0,2 # X2= -NA
053487,000578: 27,3673 21713 SIGNMPAC # IN CASE X= 1.0, CONTINUE
053488,000579: 27,3674 00043 STORE TFFX # X=1/ALFA ZSQ
053489,000580: 27,3675 41234 RTB DMP
053490,000581: 27,3676 57736 T(X) # POLY
053491,000582: 27,3677 00043 TFFX
053492,000583: 27,3700 45242 SR3 DSU
053493,000584: 27,3701 17764 DP2(-3)
053494,000585: 27,3702 41405 DMP PUSH # 2(X T(X)-1) /Z ALFA E:(-15-NA)
053495,000586: # M:(-14-NA)
053496,000587: # 1/ALFA Z FROM PDL+0 E:(-11-NA)
053497,000588: # M:(-10-NA)
053498,000589: 27,3703 41345 DLOAD DMP # GET SIGN FOR SDELF
053499,000590: 27,3704 00045 TFFTEM # 1/Z E:(11) M:(10)
053500,000591: 27,3705 00015 RMAG1 # E:(-29) M:(-27)
053501,000592: 27,3706 43312 SL2 DAD
053502,000593: 27,3707 00017 TFFQ1 # Q1 E:(-16) M:(-15)
053503,000594: 27,3710 14045 STODL TFFTEM # (Q1+R 1/Z) =SGN OF SDELF E:(-16) M:(-15
053504,000595: 27,3711 00035 TFFNP # LC P E:(-38+2NR) M:(-36+2NR)
053505,000596: 27,3712 53605 DMP SL* # CALC FOR ARG FOR TFF/TRIG.
Page 1273 |
053507,000598: 27,3713 00027 TFF1/ALF # 1/ALFA E:(-22-2NA) M:(-20-2NA)
053508,000599: 27,3714 57575 1,2 # X2=-NA
053509,000600: 27,3715 53765 SIGN SL*
053510,000601: 27,3716 00045 TFFTEM # AFFIX SIGN FOR SDELF
053511,000602: 27,3717 57576 0,2
053512,000603: 27,3720 14045 STODL TFFTEM # P/ALFA E:(-59+2NR) M:(-55+2NR)
053513,000604: # (ARG FOR USE IN TFF/TRIG)
053514,000605: 27,3721 00027 TFF1/ALF # 1/ALFA E:(-22-2NA) M:(-20-2NA)
053515,000606: 27,3722 41366 SQRT DMP
053516,000607: 27,3723 17756 PI/16 # PI (-4)
053517,000608: 27,3724 77615 DAD
053518,000609: # 2(XT(X)-1)/Z ALFA FROM PDL E:(-15-NA)
053519,000610: # M:(-14-NA)
053520,000611: 27,3725 45257 SL* DSU
053521,000612: 27,3726 57577 0 -1,2
053522,000613: 27,3727 00013 TFFDELQ # Q2-Q1 E:(-16) M:(-15)
053523,000614: 27,3730 53605 DMP SL*
053524,000615: 27,3731 00027 TFF1/ALF # 1/ALFA E:(-22-2NA) M:(-20-2NA)
053525,000616: 27,3732 57601 0 -3,2
053526,000617: 27,3733 52057 SL* GOTO
053527,000618: 27,3734 57602 0 -4,2
053528,000619: 27,3735 57642 ENDTFF # TFF SQRT(MU) IN MPAC E:(-45) M:(-42)
053529,000620:
Page 1274 |
053531,000622: # PROGRAM NAME: T(X) DATE: 01.17.67
053532,000623: # MOD NO: 0 LOG SECTION: TIME OF FREE FALL
053533,000624: # MOD BY: RR BAIRNSFATHER
053534,000625:
053535,000626: # FUNCTIONAL DESCRIPTION: THE POLYNOMIAL T(X) IS USED BY TIME OF FLIGHT SUBROUTINES CALCTFF AND
053536,000627: # CALCTPER TO APPROXIMATE THE SERIES
053537,000628: # 2 3
053538,000629: # 1/3 -X/5 +X /7 -X /9 ...
053539,000630:
053540,000631: # WHERE X = ALFA Z Z IF ALFA Z Z LEQ 1
053541,000632: # X = 1/(ALFA Z Z) IF ALFA Z Z G 1
053542,000633:
053543,000634: # ALSO X IS NEG FOR HYPERBOLIC ORBITS
053544,000635: # X = 0 FOR PARABOLIC ORBITS
053545,000636: # X IS POSITIVE FOR ELLIPTIC ORBITS
053546,000637:
053547,000638: # FOR FLIGHT 278, THE POLYNOMIAL T(X) IS FITTED OVER THE RANGE (0,+1) AND HAS A MAXIMUM
053548,000639: # DEVIATION FROM THE SERIES OF 2 E-5 (T(X) IS A CHEBYCHEV TYPE FIT AND WAS OBTAINED USING
053549,000640: # MAC PROGRAM AUTCURFIT294RRB AND IS VALID TO THE SAME TOLERANCE OVER THE RANGE (-.08,+1).)
053550,000641:
053551,000642: # CALLING SEQUENCE: RTB
053552,000643: # T(X)
053553,000644: # C(MPAC) = X
053554,000645:
053555,000646: # SUBROUTINES CALLED: NONE
053556,000647:
053557,000648: # NORMAL EXIT MODE: TC DANZIG
053558,000649:
053559,000650: # ALARMS: NONE
053560,000651:
053561,000652: # OUTPUT: C(MPAC) = T(X)
053562,000653:
053563,000654: # ERASABLE INITIALIZATION REQUIRED:
053564,000655: # C(MPAC) = X
053565,000656:
053566,000657: # DEBRIS: NONE
053567,000658:
053568,000659: 27,3736 07225 T(X) TC POLY
053569,000660: 27,3737 00004 DEC 4 B-14 # N-1
053570,000661: 27,3740 12525 12525 2DEC 3.333333333 E-1
053571,000662: 27,3742 71463 57703 2DEC* -1.999819135 E-1*
053572,000663: 27,3744 04423 17645 2DEC* 1.418148467 E-1*
053573,000664: 27,3746 74604 43667 2DEC* -1.01310997 E-1*
053574,000665: 27,3750 01626 37256 2DEC* 5.609004986 E-2*
053575,000666: 27,3752 77404 52071 2DEC* -1.536156925 E-2*
053576,000667:
053577,000668: 27,3754 06064 ENDT(X) TC DANZIG
053578,000669:
053579,000670: 27,3755 27,3754 TCDANZIG = ENDT(X)
053580,000671:
Page 1275 |
053582,000673: # TFF CONSTANTS
053583,000674:
053584,000675: 32,3777 BANK 32
053585,000676:
053586,000677: 27,2000 SETLOC TOF-FF1
053587,000678: 27,2000 BANK
053588,000679:
053589,000680: # NOTE _ NOTE _ ADJUSTED MUE FOR NEAR EARTH TRAJ.
053590,000681: # MUE = 3.990815471 E10 M CUBE/CS SQ
053591,000682: # RTMUE = 1.997702549 E5 B-18* MODIFIED EARTH MU
053592,000683:
053593,000684: # NOTE _ NOTE _ ADJUSTED MUE FOR NEAR EARTH TRAJ.
053594,000685: # MUM = 4.902778 E8 M CUBE/CS SQ
053595,000686: # RTMUM 2DEC* 2.21422176 E4 B-18*
053596,000687: 27,3755 06220 37553 PI/16 2DEC 3.141592653 B-4
053597,000688: 27,3757 37777 37700 LIM(-22) 2OCT 3777737700 # 1.0 -B(-22)
053598,000689: 27,3761 00000 00100 DP(-22) 2OCT 0000000100 # B(-22)
053599,000690: 27,3763 04000 00000 DP2(-3) 2DEC 1 B-3
053600,000691: 27,3765 02000 00000 DP2(-4) 2DEC 1 B-4 # 1/16
053601,000692:
053602,000693: # RPAD1 2DEC 6373338 B-29 M (-29) = 20909901.57 FT
053603,000694: 27,3767 23,2337 RPAD1 = RPAD
053604,000695:
053605,000696: 27,3767 00305 11205 R300K 2DEC 6464778 B-29 # (-29) M
053606,000697: 27,3771 37777 37777 NEARONE 2DEC .999999999
053607,000698: 27,3773 23,2523 TFFZEROS EQUALS HI6ZEROS
053608,000699: 27,3773 23,2513 TFF1/4 EQUALS HIDP1/4
053609,000700:
End of include-file TIME_OF_FREE_FALL.agc. Parent file is MAIN.agc