Source Code

These source-code files were obtained by digitally photographing an Artemis 72 program listing from a private collection and then modifying pre-existing Comanche 55 (Apollo 11) source files to incorporate changes. Note that the page images presented online are of reduced quality, and that additional images may be 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 072 OF AGC PROGRAM ARTEMIS 
	BY NASA 2021114-011 11:40 FEB. 26, 1971

	THIS AGC PROGRAM SHALL ALSO BE REFERRED TO AS
				COLOSSUS 3
	THIS PROGRAM IS INTENDED FOR USE IN THE CM AS SPECIFIED
	IN REPORT R-577.  THIS PROGRAM WAS PREPARED UNDER OSR
	PROJECT 55-23890, SPONSORED BY THE MANNED SPACECRAFT
	CENTER OF THE NATIONAL AERONAUTICS AND SPACE
	ADMINISTRATION THROUGH CONTRACT NAS 9-4065 WITH THE
	CHARLES STARK DRAPER LABORATORY, MASSACHUSETTS INSTITUTE OF
	TECHNOLOGY, CAMBRIDGE, MASS.

018426,000002:                                                                                                 #  Copyright:     Public domain.
018427,000003:                                                                                                 #  Filename:      GIMBAL_LOCK_AVOIDANCE.agc
018428,000004:                                                                                                 #  Purpose:       Part of the source code for Artemis (i.e., Colossus 3),
018429,000005:                                                                                                 #                 build 072.  This is for the Command Module's (CM) 
018430,000006:                                                                                                 #                 Apollo Guidance Computer (AGC), we believe for 
018431,000007:                                                                                                 #                 Apollo 15-17.
018432,000008:                                                                                                 #  Assembler:     yaYUL
018433,000009:                                                                                                 #  Contact:       Sergio Navarro <sergionavarrog@gmail.com>
018434,000010:                                                                                                 #  Website:       www.ibiblio.org/apollo/index.html
018435,000011:                                                                                                 #  Page scans:    www.ibiblio.org/apollo/ScansForConversion/Artemis072/
018436,000012:                                                                                                 #  Mod history:   2009-08-19 SN   Adapted from corresponding Comanche 055 file.
018437,000013:                                                                                                 #                 2009-09-04 JL   Minor changes.
018438,000014:                                                                                                 #                 2010-02-20 RSB  Un-##'d this header.
018439,000015: 

Page 416

018441,000017: 
018442,000018: 22,2000                                          SETLOC   KALCMON1                              
018443,000019: 22,2000                                          BANK                                           
018444,000020: 
018445,000021: 22,2745                                          COUNT*   $$/KALC                               
018446,000022: 22,2745  E6,1661                                 EBANK=   BCDU                                  
018447,000023: 
018448,000024:                                                                                                 #  DETECTING GIMBAL LOCK
018449,000025: 22,2745  22,2745               LOCSKIRT          EQUALS   WCALC                                 
018450,000026: 22,2745           70740        WCALC             LXC,1    DLOAD*                                
018451,000027: 22,2746           00774                                   RATEINDX                              
018452,000028: 22,2747           05002                                   ARATE,1                               
018453,000029: 22,2750           45002                          SR4      CALL                                  #  COMPUTE THE INCREMENTAL ROTATION MATRIX
018454,000030: 22,2751           44522                                   DELCOMP                               #  DEL CORRESPONDING TO A 1 SEC ROTATION
018455,000031:                                                                                                 #  ABOUT COF
018456,000032: 22,2752           74343                          DLOAD*   VXSC                                  
018457,000033: 22,2753           05002                                   ARATE,1                               
018458,000034: 22,2754           03343                                   COF                                   
018459,000035: 22,2755           77721                          MXV                                            
018460,000036: 22,2756           05014                                   QUADROT                               
018461,000037: 22,2757           17311                          STODL    BRATE                                 
018462,000038: 22,2760           03365                                   AM                                    
018463,000039: 22,2761           55605                          DMP      DDV*                                  
018464,000040: 22,2762           05012                                   ANGLTIME                              
018465,000041: 22,2763           05002                                   ARATE,1                               
018466,000042: 22,2764           77661                          SR                                             
018467,000043: 22,2765           20606                                   5                                     
018468,000044: 22,2766           03317                          STORE    TM                                    
018469,000045: 22,2767           77214                          BON      VLOAD                                 
018470,000046: 22,2770           00313                                   CYC61FLG                              
018471,000047: 22,2771           71747                                   RCYCLR61                              
018472,000048: 22,2772           03311                                   BRATE                                 
018473,000049: 22,2773           77761                          VXSC                                           
018474,000050: 22,2774           05036                                   BIASCALE                              
018475,000051: 22,2775           03275                          STORE    BIASTEMP                              #  ATTITUDE ERROR BIAS TO PREVENT OVERSHOOT
018476,000052:                                                                                                 #  IN SYSTEM
018477,000053: 22,2776           77614                          SETGO                                          #  STATE SWITCH CALCMAN2 (43D)
018478,000054: 22,2777           01035                                   CALCMAN2                              #  0(OFF) = BYPASS STARTING PROCEDURE
018479,000055: 22,3000           45053                                   NEWANGL    +1                         #  1(ON) = START MANEUVER
018480,000056: 
018481,000057: 
018482,000058: 22,3001           00044 15053  ARATE             2DEC     .0022222222                            #  = .05 DEG/SEC
018483,000059: 22,3003           00221 24255                    2DEC     .0088888889                            #  = .2 DEG/SEC
018484,000060: 22,3005           00554 02660                    2DEC     .0222222222                            #  = .5 DEG/SEC
018485,000061: 22,3007           02660 13301                    2DEC     .0888888889                            #  = 2 DEG/SEC                $22.5 DEG/SEC
018486,000062: 22,3011           00003 04000  ANGLTIME          2DEC     .000190735                            #  = 100B - 19
018487,000063:                                                                                                 #  MANEUVER ANGLE TO MANEUVER TIME

Page 417

018489,000065: 22,3013           03146 14632  QUADROT           2DEC     .1                                    #  ROTATION MATRIX FROM S/C AXES TO CONTROL
018490,000066: 22,3015           00000 00000                    2DEC     0          B-28                       #  AXES (X ROT = -7.25 DEG)
018491,000067: 22,3017           00000 00000                    2DEC     0          B-28                       
018492,000068: 22,3021           00000 00000                    2DEC     0          B-28                       
018493,000069: 22,3023           03131 11275                    2DEC     .099200                               #  =(.1)COS7.25
018494,000070: 22,3025           77461 47370                    2DEC     -.012620                              #  =-(.1)SIN7.25
018495,000071: 22,3027           00000 00000                    2DEC     0          B-28                       
018496,000072: 22,3031           00316 30407                    2DEC     .012620                               #  (.1)SIN7.25
018497,000073: 22,3033           03131 11275                    2DEC     .099200                               #  (.1)COS7.25
018498,000074: 22,3035           00004 05253  BIASCALE          2DEC     .0002543132                            #  = (450/180)(1/0.6)(1/16384)

End of include-file GIMBAL_LOCK_AVOIDANCE.agc.  Parent file is MAIN.agc