Source Code

These source-code files were transcribed from a printout in Don Eyles's personal collection, scanned by archive.org, and financially sponsored by Linden Sims. A team of volunteers performed the transcription and proof-reading. The scanned page images are available at the Virtual AGC Project website, as well as higher-quality (but much larger) images at the Virtual AGC Project's collection in the Internet Archive. Report any problems by creating "issues" at the Virtual AGC Project's GitHub Repository.

Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 56 OF AGC PROGRAM ZERLINA BY ZOROASTER
	9:12 OCT. 21,1970
Note that the date is the date of the printout, not the date of the program revision.

016362,000002:                                                                                                  ## Copyright:   Public domain.
016363,000003:                                                                                                  ## Filename:    GIMBAL_LOCK_AVOIDANCE.agc
016364,000004:                                                                                                  ## Purpose:     A log section of Zerlina 56, the final revision of
016365,000005:                                                                                                  ##              Don Eyles's offline development program for the variable 
016366,000006:                                                                                                  ##              guidance period servicer. It also includes a new P66 with LPD 
016367,000007:                                                                                                  ##              (Landing Point Designator) capability, based on an idea of John 
016368,000008:                                                                                                  ##              Young's. Neither of these advanced features were actually flown,
016369,000009:                                                                                                  ##              but Zerlina was also the birthplace of other big improvements to
016370,000010:                                                                                                  ##              Luminary including the terrain model and new (Luminary 1E)
016371,000011:                                                                                                  ##              analog display programs. Zerlina was branched off of Luminary 145,
016372,000012:                                                                                                  ##              and revision 56 includes all changes up to and including Luminary
016373,000013:                                                                                                  ##              183. It is therefore quite close to the Apollo 14 program,
016374,000014:                                                                                                  ##              Luminary 178, where not modified with new features.
016375,000015:                                                                                                  ## Reference:   p.  369
016376,000016:                                                                                                  ## Assembler:   yaYUL
016377,000017:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
016378,000018:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
016379,000019:                                                                                                  ## Mod history: 2017-07-28 MAS  Created from Luminary 210.
016380,000020:                                                                                                  ##              2017-08-22 RSB  Transcribed.
016381,000021: 

Page 369

016383,000023: 15,2050                                           BANK     15                                    
016384,000024: 
016385,000025: 22,2000                                           SETLOC   KALCMON1                              
016386,000026: 22,2000                                           BANK                                           
016387,000027: 
016388,000028: 
016389,000029:                                                                                                  #  DETECTING GIMBAL LOCK
016390,000030: 22,2744  22,2744               LOCSKIRT           EQUALS   NOGIMLOC                              
016391,000031: 
016392,000032: 22,2744           77614        NOGIMLOC           SET                                            
016393,000033: 22,2745           01074                                    CALCMAN3                              
016394,000034: 22,2746           70740        WCALC              LXC,1    DLOAD*                                
016395,000035: 22,2747           01322                                    RATEINDX                              #  CHOOSE THE DESIRED MANEUVER RATE
016396,000036: 22,2750           04772                                    ARATE,1                               #  FROM A LIST OF FOUR
016397,000037: 22,2751           45002                           SR4      CALL                                  #  COMPUTE THE INCREMENTAL ROTATION MATRIX
016398,000038: 22,2752           44527                                    DELCOMP                               #  DEL CORRESPONDING TO A 1 SEC ROTATION
016399,000039:                                                                                                  #  ABOUT COF
016400,000040: 22,2753           74343                           DLOAD*   VXSC                                  
016401,000041: 22,2754           04772                                    ARATE,1                               
016402,000042: 22,2755           03270                                    COF                                   
016403,000043: 22,2756           17325                           STODL    BRATE                                 #  COMPONENT MANEUVER RATES 45 DEG/SEC
016404,000044: 22,2757           03335                                    AM                                    
016405,000045: 22,2760           55605                           DMP      DDV*                                  
016406,000046: 22,2761           05002                                    ANGLTIME                              
016407,000047: 22,2762           04772                                    ARATE,1                               
016408,000048: 22,2763           77661                           SR                                             
016409,000049: 22,2764           20606                                    5                                     
016410,000050: 22,2765           03333                           STORE    TM                                    #  MANEUVER EXECUTION TIME SCALED AS T2
016411,000051: 22,2766           77614                           SETGO                                          
016412,000052: 22,2767           01035                                    CALCMAN2                              #  0(OFF) = CONTINUE MANEUVER
016413,000053: 22,2770           45010                                    NEWANGL    +1                         #  1(ON) = START MANEUVER
016414,000054:                                                                                                  #           THE FOUR SELECTABLE FREE FALL MANEUVER RATES SELECTED BY
016415,000055:                                                                                                  #           LOADING RATEINDX WITH 0,2,4,6, RESPECTIVELY
016416,000056: 
016417,000057: 
016418,000058: 22,2771           00221 24255  ARATE              2DEC     .0088888888                            #  = 0.2 DEG/SEC       $ 22.5 DEG/SEC
016419,000059: 22,2773           00554 02660                     2DEC     .0222222222                            #  = 0.5 DEG/SEC       $ 22.5 DEG/SEC
016420,000060: 22,2775           02660 13301                     2DEC     .0888888888                            #  = 2.0 DEG/SEC       $ 22.5 DEG/SEC
016421,000061: 22,2777           16161 30707                     2DEC     .4444444444                            #  = 10.0 DEG/SEC      $ 22.5 DEG/SEC
016422,000062: 
016423,000063: 22,3001           00003 04000  ANGLTIME           2DEC     .0001907349                            #  = 100B-19     FUDGE FACTOR TO CONVERT
016424,000064:                                                                                                  #  MANEUVER ANGLE TO MANEUVER TIME

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