Source Code
These source-code files are part of a reconstructed copy of Luminary 173, the
second (unflown) release of the Apollo 14 Lunar Module (LM) Apollo Guidance
Computer (AGC) software.
The reconstruction began with reconstructed source code for Luminary 178. Changes between revision 173 and 178 were backed out, as described by Luminary memo 167 (revision 1). The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021152N. Note that page numbers in the reconstructed code match those for the baseline log section mentioned in each file's changelog; the page numbers for a real Luminary 173 listing would be different. 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. |
015729,000002: ## Copyright: Public domain.
015730,000003: ## Filename: GIMBAL_LOCK_AVOIDANCE.agc
015731,000004: ## Purpose: A section of Luminary revision 173.
015732,000005: ## It is part of the reconstructed source code for the second
015733,000006: ## (unflown) release of the flight software for the Lunar
015734,000007: ## Module's (LM) Apollo Guidance Computer (AGC) for Apollo 14.
015735,000008: ## The code has been recreated from a reconstructed copy of
015736,000009: ## Luminary 178, as well as Luminary memo 167 (revision 1).
015737,000010: ## It has been adapted such that the resulting bugger words
015738,000011: ## exactly match those specified for Luminary 173 in NASA
015739,000012: ## drawing 2021152N, which gives relatively high confidence
015740,000013: ## that the reconstruction is correct.
015741,000014: ## Reference: p. 369
015742,000015: ## Assembler: yaYUL
015743,000016: ## Contact: Ron Burkey <info@sandroid.org>.
015744,000017: ## Website: www.ibiblio.org/apollo/index.html
015745,000018: ## Mod history: 2019-09-18 MAS Created from Luminary 178.
015746,000019:
Page 369 |
015748,000021: 15,2050 BANK 15
015749,000022:
015750,000023: 22,2000 SETLOC KALCMON1
015751,000024: 22,2000 BANK
015752,000025:
015753,000026:
015754,000027: # DETECTING GIMBAL LOCK
015755,000028: 22,2744 22,2744 LOCSKIRT EQUALS NOGIMLOC
015756,000029:
015757,000030: 22,2744 77614 NOGIMLOC SET
015758,000031: 22,2745 01074 CALCMAN3
015759,000032: 22,2746 70740 WCALC LXC,1 DLOAD*
015760,000033: 22,2747 01322 RATEINDX # CHOOSE THE DESIRED MANEUVER RATE
015761,000034: 22,2750 04772 ARATE,1 # FROM A LIST OF FOUR
015762,000035: 22,2751 45002 SR4 CALL # COMPUTE THE INCREMENTAL ROTATION MATRIX
015763,000036: 22,2752 44527 DELCOMP # DEL CORRESPONDING TO A 1 SEC ROTATION
015764,000037: # ABOUT COF
015765,000038: 22,2753 74343 DLOAD* VXSC
015766,000039: 22,2754 04772 ARATE,1
015767,000040: 22,2755 03270 COF
015768,000041: 22,2756 17325 STODL BRATE # COMPONENT MANEUVER RATES 45 DEG/SEC
015769,000042: 22,2757 03335 AM
015770,000043: 22,2760 55605 DMP DDV*
015771,000044: 22,2761 05002 ANGLTIME
015772,000045: 22,2762 04772 ARATE,1
015773,000046: 22,2763 77661 SR
015774,000047: 22,2764 20606 5
015775,000048: 22,2765 03333 STORE TM # MANEUVER EXECUTION TIME SCALED AS T2
015776,000049: 22,2766 77614 SETGO
015777,000050: 22,2767 01035 CALCMAN2 # 0(OFF) = CONTINUE MANEUVER
015778,000051: 22,2770 45010 NEWANGL +1 # 1(ON) = START MANEUVER
015779,000052: # THE FOUR SELECTABLE FREE FALL MANEUVER RATES SELECTED BY
015780,000053: # LOADING RATEINDX WITH 0,2,4,6, RESPECTIVELY
015781,000054:
015782,000055:
015783,000056: 22,2771 00221 24255 ARATE 2DEC .0088888888 # = 0.2 DEG/SEC $ 22.5 DEG/SEC
015784,000057: 22,2773 00554 02660 2DEC .0222222222 # = 0.5 DEG/SEC $ 22.5 DEG/SEC
015785,000058: 22,2775 02660 13301 2DEC .0888888888 # = 2.0 DEG/SEC $ 22.5 DEG/SEC
015786,000059: 22,2777 16161 30707 2DEC .4444444444 # = 10.0 DEG/SEC $ 22.5 DEG/SEC
015787,000060:
015788,000061: 22,3001 00003 04000 ANGLTIME 2DEC .0001907349 # = 100B-19 FUDGE FACTOR TO CONVERT
015789,000062: # MANEUVER ANGLE TO MANEUVER TIME
End of include-file GIMBAL_LOCK_AVOIDANCE.agc. Parent file is MAIN.agc