Source Code

These source-code files are part of a reconstructed copy of Artemis 071, the first release of the Apollo 15 through 17 Command Module (CM) Apollo Guidance Computer (AGC) software.

The reconstruction began with source code of Artemis 072 previously transcribed from a digitized copy of that program. The code was then updated by undoing changes between the two versions. The reconstruction was verified by matching memory-bank checksums to those listed in drawing 2021154-. Note that page numbers in the reconstructed code match those on the Artemis 072 printout, although the changed code would likely have changed page numbers for a real Artemis 071 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.

044921,000002:                                                                                                  ## Copyright:   Public domain.
044922,000003:                                                                                                  ## Filename:    AUTOMATIC_MANEUVERS.agc
044923,000004:                                                                                                  ## Purpose:     A section of Artemis revision 071.
044924,000005:                                                                                                  ##              It is part of the reconstructed source code for the first
044925,000006:                                                                                                  ##              release of the flight software for the Command Module's
044926,000007:                                                                                                  ##              (CM) Apollo Guidance Computer (AGC) for Apollo 15 through
044927,000008:                                                                                                  ##              17. The code has been recreated from a copy of Artemis 072.
044928,000009:                                                                                                  ##              It has been adapted such that the resulting bugger words
044929,000010:                                                                                                  ##              exactly match those specified for Artemis 071 in NASA
044930,000011:                                                                                                  ##              drawing 2021154-, which gives relatively high confidence
044931,000012:                                                                                                  ##              that the reconstruction is correct.
044932,000013:                                                                                                  ## Reference:   1024
044933,000014:                                                                                                  ## Assembler:   yaYUL
044934,000015:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
044935,000016:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
044936,000017:                                                                                                  ## Mod history: 2019-08-14 MAS  Created from Artemis 072.
044937,000018: 

Page 1024

044939,000020: 21,2000                                           SETLOC   DAPS3                                 
044940,000021: 21,2000                                           BANK                                           
044941,000022: 
044942,000023: 21,3272                                           COUNT*   $$/DAPAM                              
044943,000024: 21,3272  E6,1510                                  EBANK=   KMPAC                                 
044944,000025: 21,3272           34753        AHFNOROT           CAF      BIT14                                 
044945,000026: 21,3273           05654                           TC       C31BTCHK                              
044946,000027: 21,3274           13310                           TCF      FREECONT                              
044947,000028: 21,3275           31501                           CA       RCSFLAGS                              #  SEE IF RATE FILTER HAS BEEN INITIALIZED
044948,000029: 21,3276           74753                           MASK     BIT14                                 
044949,000030: 21,3277           10000                           CCS      A                                     #  IF SO, PROCEED WITH ATTITUDE CONTROL
044950,000031: 21,3300           12541                           TCF      REINIT                                #  IF NOT, RECYCLE TO INITIALIZE FILTER
044951,000032:                                                                                                  #  AUTOMATIC CONTROL YET
044952,000033: 21,3301           34754                           CAF      BIT13                                 
044953,000034: 21,3302           05654                           TC       C31BTCHK                              
044954,000035: 21,3303           13404                           TCF      HOLDFUNC                              
044955,000036: 21,3304           31340        AUTOCONT           CA       HOLDFLAG                              #  IF HOLDFLAG IS +, GO TO GRABANG.
044956,000037: 21,3305           00006                           EXTEND                                         #  OTHERWISE, GO TO ATTHOLD.
044957,000038: 21,3306           63334                           BZMF     ATTHOLD                               
044958,000039: 21,3307           13410                           TCF      GRABANG                               
044959,000040: 
044960,000041:                                                                                                  #  MINIMUM IMPULSE CONTROL
044961,000042: 
044962,000043: 21,3310           34770        FREECONT           CAF      ONE                                   
044963,000044: 21,3311           55340                           TS       HOLDFLAG                              #  RESET HOLDFLAG
044964,000045:                                                                                                  #  INHIBIT AUTOMATIC STEERING
044965,000046: 21,3312           00006                           EXTEND                                         
044966,000047: 21,3313           00032                           READ     CHAN32                                
044967,000048: 21,3314           54001                           TS       L                                     
044968,000049: 21,3315           40000                           COM                                            
044969,000050: 21,3316           71633                           MASK     CHANTEMP                              
044970,000051: 21,3317           23633                           LXCH     CHANTEMP                              
044971,000052: 21,3320           73063        RHCMINP            MASK     MANROT                                
044972,000053: 21,3321           03152                           TC       STICKCHK                              
044973,000054: 21,3322           51656                           INDEX    RMANNDX                               
044974,000055: 21,3323           34614                           CA       MINTAU                                #  MINTAU  +0
044975,000056: 21,3324           55561                           TS       TAU                                   #             +1   +14MS MINIMUM IMPULSE
044976,000057: 21,3325           51657                           INDEX    PMANNDX                               #             +2   -14MS TIME
044977,000058: 21,3326           34614                           CA       MINTAU                                #             +3   +0
044978,000059: 21,3327           55562                           TS       TAU1                                  
044979,000060: 21,3330           51660                           INDEX    YMANNDX                               
044980,000061: 21,3331           34614                           CA       MINTAU                                
044981,000062: 21,3332           55563                           TS       TAU2                                  
044982,000063: 21,3333           13105                           TCF      T6PROGM                               
044983,000064: 
044984,000065: 
044985,000066:    4000                                           SETLOC   FFTAG12                               
044986,000067:    4000                                           BANK                                           
044987,000068: 
044988,000069:    4614                                           COUNT*   $$/DAPAM                              

Page 1025

044990,000071: 
044991,000072:    4614           00000        MINTAU             DEC      0          B-14                       
044992,000073:    4615           00027        DEC23              DEC      23         B-14                       #  = 14 MS
044993,000074:    4616           77750        DECNEG23           DEC      -23        B-14                       #  = -14 MS
044994,000075:    4617           00000                           DEC      0          B-14                       
044995,000076: 
044996,000077: 
044997,000078: 21,2000                                           SETLOC   DAPS3                                 
044998,000079: 21,2000                                           BANK                                           
044999,000080: 
045000,000081: 21,3334                                           COUNT*   $$/DAPAM                              
045001,000082: 

Page 1026

045003,000084:                                                                                                  #  CALCULATION OF ATTITUDE ERRORS-
045004,000085: 
045005,000086:                                                                                                  #        -    *     -      -          -
045006,000087:                                                                                                  #        AK = AMGB (CDUX - THETADX) + BIAS
045007,000088: 
045008,000089:                                                                                                  #  IE    *AK *   * 1   SIN(PSI)            0     ** CDUX - THETADX *    *BIAS *
045009,000090:                                                                                                  #        *   *   *                               **                *    *     *
045010,000091:                                                                                                  #        *AK1* = * 0   COS(PSI)COS(PHI)  SIN(PHI)** CDUY - THETADY *  + *BIAS1*
045011,000092:                                                                                                  #        *   *   *                               **                *    *     *
045012,000093:                                                                                                  #        *AK2*   * 0  -COS(PSI)SIN(PHI)  COS(PHI)** CDUZ - THETADZ *    *BIAS2*
045013,000094: 
045014,000095:                                                                                                  #  THE BIASES ARE ADDED ONLY WHILE PERFORMING AUTOMATIC MANEUVERS (ESP KALCMANU) TO PROVIDE ADDITIONAL LEAD
045015,000096:                                                                                                  #  AND PREVENT OVERSHOOT WHEN STARTING AN AUTOMATIC MANEUVER. NORMALLY THE REQUIRED LEAD IS ONLY 1-2 DEGREES.
045016,000097:                                                                                                  #  BUT DURING HIGH RATE MANEUVERS IT CAN BE AS MUCH AS 7 DEGREES.  THE BIASES ARE COMPUTED BY KALCMANU AND REMAIN
045017,000098:                                                                                                  #  FIXED UNTIL THE MANEUVER IS COMPLETED AT WHICH TIME THEY ARE RESET TO ZERO.
045018,000099: 
045019,000100: 21,3334           30032        ATTHOLD            CA       CDUX                                  
045020,000101: 21,3335           00006                           EXTEND                                         
045021,000102: 21,3336           21572                           MSU      THETADX                               
045022,000103: 21,3337           55567                           TS       ERRORX                                
045023,000104: 21,3340           30033                           CA       CDUY                                  
045024,000105: 21,3341           00006                           EXTEND                                         
045025,000106: 21,3342           21573                           MSU      THETADY                               
045026,000107: 21,3343           55502                           TS       T5TEMP                                
045027,000108: 21,3344           00006                           EXTEND                                         
045028,000109: 21,3345           71640                           MP       AMGB1                                 
045029,000110: 21,3346           27567                           ADS      ERRORX                                
045030,000111: 21,3347           31502                           CA       T5TEMP                                
045031,000112: 21,3350           00006                           EXTEND                                         
045032,000113: 21,3351           71641                           MP       AMGB4                                 
045033,000114: 21,3352           55570                           TS       ERRORY                                
045034,000115: 21,3353           31502                           CA       T5TEMP                                
045035,000116: 21,3354           00006                           EXTEND                                         
045036,000117: 21,3355           71643                           MP       AMGB7                                 
045037,000118: 21,3356           55571                           TS       ERRORZ                                
045038,000119: 21,3357           30034                           CA       CDUZ                                  
045039,000120: 21,3360           00006                           EXTEND                                         
045040,000121: 21,3361           21574                           MSU      THETADZ                               
045041,000122: 21,3362           55502                           TS       T5TEMP                                
045042,000123: 21,3363           00006                           EXTEND                                         
045043,000124: 21,3364           71642                           MP       AMGB5                                 
045044,000125: 21,3365           27570                           ADS      ERRORY                                
045045,000126: 21,3366           31502                           CA       T5TEMP                                
045046,000127: 21,3367           00006                           EXTEND                                         
045047,000128: 21,3370           71644                           MP       AMGB8                                 
045048,000129: 21,3371           27571                           ADS      ERRORZ                                
045049,000130: 21,3372           41340                           CS       HOLDFLAG                              
045050,000131: 21,3373           00006                           EXTEND                                         

Page 1027

045052,000133: 21,3374           63452                           BZMF     JETS                                  
045053,000134: 21,3375           31564                           CA       BIAS                                  #  AD BIASES ONLY IF PERFORMING AUTOMATIC
045054,000135: 21,3376           27567                           ADS      ERRORX                                
045055,000136: 21,3377           31565                           CA       BIAS1                                 
045056,000137: 21,3400           27570                           ADS      ERRORY                                
045057,000138: 21,3401           31566                           CA       BIAS2                                 
045058,000139: 21,3402           27571                           ADS      ERRORZ                                
045059,000140: 21,3403           13452                           TCF      JETS                                  
045060,000141: 
045061,000142: 
045062,000143: 21,3404           11340        HOLDFUNC           CCS      HOLDFLAG                              
045063,000144: 21,3405           13410                           TCF      +3                                    
045064,000145: 21,3406           13334                           TCF      ATTHOLD                               
045065,000146: 21,3407           13410                           TCF      +1                                    
045066,000147: 21,3410           34772        GRABANG            CAF      ZERO                                  #  ZERO WBODYS AND BIASES
045067,000148: 21,3411           55525                           TS       WBODY                                 
045068,000149: 21,3412           55526                           TS       WBODY      +1                         
045069,000150: 21,3413           55527                           TS       WBODY1                                
045070,000151: 21,3414           55530                           TS       WBODY1     +1                         
045071,000152: 21,3415           55531                           TS       WBODY2                                
045072,000153: 21,3416           55532                           TS       WBODY2     +1                         
045073,000154: 21,3417           55564                           TS       BIAS                                  
045074,000155: 21,3420           55565                           TS       BIAS1                                 
045075,000156: 21,3421           55566                           TS       BIAS2                                 
045076,000157: 
045077,000158: 21,3422           31501                           CA       RCSFLAGS                              
045078,000159: 21,3423           73064                           MASK     OCT16000                              
045079,000160: 21,3424           00006                           EXTEND                                         #  IS RATE DAMPING COMPLETED
045080,000161: 21,3425           13433                           BZF      ENDDAMP                               #  IF SO, GO TO ENDDAMP
045081,000162: 21,3426           34772                           CAF      ZERO                                  #  OTHERWISE, ZERO ERRORS
045082,000163: 21,3427           55567                           TS       ERRORX                                
045083,000164: 21,3430           55570                           TS       ERRORY                                
045084,000165: 21,3431           55571                           TS       ERRORZ                                
045085,000166: 21,3432           13452                           TCF      JETS                                  
045086,000167: 
045087,000168: 21,3433           55340        ENDDAMP            TS       HOLDFLAG                              #  SET HOLDFLAG +0
045088,000169: 21,3434           00006                           EXTEND                                         
045089,000170: 21,3435           30033                           DCA      CDUX                                  #  PICK UP CDU ANGLES FOR ATTITUDE HOLD
045090,000171: 21,3436           53573                           DXCH     THETADX                               #  REFERENCES
045091,000172: 21,3437           30034                           CA       CDUZ                                  
045092,000173: 21,3440           55574                           TS       THETADZ                               
045093,000174: 21,3441           13334                           TCF      ATTHOLD                               
045094,000175: 

Page 1028

045096,000177:                                                                                                  #  JET SWITCHING LOGIC AND CALCULATION OF REQUIRED ROTATION COMMANDS
045097,000178: 
045098,000179:                                                                                                  #  DETERMINE THE LOCATION OF THE RATE ERROR AND THE ATTITUDE ERROR RELATIVE TO THE SWITCHING LOGIC IN THE PHASE
045099,000180:                                                                                                  #  PLANE.
045100,000181:                                                                                                  #  COMPUTE THE CHANGE IN RATE CORRESPONDING TO THE ATTITUDE ERROR NECESSARY TO DRIVE THE THE S/C INTO THE
045101,000182:                                                                                                  #  APPROPRIATE DEADZONE.
045102,000183: 
045103,000184: 
045104,000185:                                                                                                  #                                      .
045105,000186:                                                                                                  #    R22                          RATE . ERROR
045106,000187:                                                                                                  #         WL+H                         .
045107,000188:                                                                                                  #  *********************************   .                                 ***** SWITCH LINES ENCLOSING DEADZONES
045108,000189:                                                                                                  #    R23  WL                        *  .
045109,000190:                                                                                                  #  --------------------------------- * .                                 ----- DESIRED RATE LINES
045110,000191:                                                                                                  #    R23  WL-H       -                *.
045111,000192:                                                                                                  #  ****************** -                .                                 R20, R21, R22, ETC  REGIONS IN PHASE
045112,000193:                                                                                                  #                    * -               .* R18      R20       R21         PLANE FOF COMPUTING DESIRED RESPONSE
045113,000194:                                                                                                  #                     *                . *
045114,000195:                                                                                                  #                      *-              .  *
045115,000196:                                                                                                  #    R22             R24*-     R23     .   *
045116,000197:                                                                                                  #                        *-            .    *
045117,000198:                                                                                                  #                         *            .     *
045118,000199:                                                                                                  #                          + -ADB      .      * AF              ATTITUDE
045119,000200:                                                                                                  #  .........................+--+---------------+--+........................
045120,000201:                                                                                                  #                            AF *      .     +ADB  +             ERROR
045121,000202:                                                                                                  #                                *     .            *
045122,000203:                                                                                                  #                                 *    .            -*
045123,000204:                                                                                                  #                                  *   .             -*
045124,000205:                                                                                                  #                                   *  .              -*
045125,000206:                                                                                                  #                                    * .                *
045126,000207:                                                                                                  #                                     *.               - *
045127,000208:                                                                                                  #                                      .                - *****************
045128,000209:                                                                                                  #                                      .*                -
045129,000210:                                                                                                  #                                      . * --------------------------------
045130,000211:                                                                                                  #                                      .  *
045131,000212:                                                                                                  #                                      .   ********************************
045132,000213:                                                                                                  #                                      .
045133,000214: 
045134,000215:                                                                                                  #                        FIG. 1  PHASE PLANE SWITCHING LOGIC
045135,000216: 
045136,000217: 
045137,000218:                                                                                                  #  CONSTANTS FOR JET SWITCHING LOGIC
045138,000219: 
045139,000220: 21,3442           00114        WLH/SLOP           DEC      .00463                                #  = WL+H/SLOPE = .83333 DEG     $180
045140,000221: 21,3443     5006               WL-H/SLP           =        DEC45                                 #  = WL-H/SLOPE = .5 DEG          $180
045141,000222: 21,3443           00022 06426  WLH                2DEC     .0011111111                            #  = WL+H = 0.5 DEG/SEC          $450
045142,000223: 21,3445           00012 35415  WLMH               2DEC     .0006666666                            #  = WL-H = 0.3 DEG/SEC          $450
045143,000224: 21,3447           00016 22021  WL                 2DEC     .0008888888                            #  = WL   = 0.4 DEG/SEC          $450
045144,000225: 

Page 1029

045146,000227: 21,3451           12173        SLOPE2             DEC      .32                                   #  = 0.8 DEG/SEC/DEG             $450/180
045147,000228: 21,3452           31655        JETS               CA       ADB                                   
045148,000229: 21,3453           64766                           AD       FOUR                                  #  AF = FLAT REGION = .044 DEG
045149,000230: 21,3454           55502                           TS       T5TEMP                                #  ADB+AF
045150,000231: 21,3455           34767                           CAF      TWO                                   
045151,000232: 21,3456           55506        JLOOP              TS       SPNDX                                 
045152,000233: 21,3457           60000                           DOUBLE                                         
045153,000234: 21,3460           55507                           TS       DPNDX                                 
045154,000235: 21,3461           00006                           EXTEND                                         
045155,000236: 21,3462           50000                           INDEX    A                                     
045156,000237: 21,3463           31534                           DCA      ADOT                                  
045157,000238: 21,3464           53516                           DXCH     EDOT                                  
045158,000239: 21,3465           31340                           CA       HOLDFLAG                              #  HOLDFLAG = +0 MEANS THAT DAP IS IN
045159,000240: 21,3466           00006                           EXTEND                                         #  ATTITUDE HOLD AND RATE DAMPING IS OVER.
045160,000241: 21,3467           13474                           BZF      INHOLD                                #  IF THIS IS THE CASE, BYPASS ADDITION
045161,000242:                                                                                                  #  OF WBODY AND GO TO INHOLD
045162,000243: 21,3470           00006                           EXTEND                                         
045163,000244: 21,3471           51507                           INDEX    DPNDX                                 
045164,000245: 21,3472           41526                           DCS      WBODY                                 
045165,000246: 21,3473           21516                           DAS      EDOT                                  #  = ADOT-WBODY
045166,000247: 21,3474           51506        INHOLD             INDEX    SPNDX                                 
045167,000248: 21,3475           31567                           CA       ERRORX                                
045168,000249: 21,3476           55517                           TS       AERR                                  #  AERR = BIAS + AK
045169,000250: 
045170,000251: 21,3477           11515                           CCS      EDOT                                  
045171,000252: 21,3500           13510                           TCF      POSVEL                                
045172,000253: 21,3501           13503                           TCF      SIGNCK1                               
045173,000254: 21,3502           13520                           TCF      NEGVEL                                
045174,000255: 21,3503           11516        SIGNCK1            CCS      EDOT       +1                         
045175,000256: 21,3504           13510                           TCF      POSVEL                                
045176,000257: 21,3505           13510                           TCF      POSVEL                                
045177,000258: 21,3506           13520                           TCF      NEGVEL                                
045178,000259: 21,3507           13520                           TCF      NEGVEL                                
045179,000260: 21,3510           00006        POSVEL             EXTEND                                         
045180,000261: 21,3511           31516                           DCA      EDOT                                  
045181,000262: 21,3512           53521                           DXCH     EDOTVEL                               
045182,000263: 21,3513           31502                           CA       T5TEMP                                
045183,000264: 21,3514           55523                           TS       ADBVEL                                #  +(ADB+AF)
045184,000265: 21,3515           31517                           CA       AERR                                  
045185,000266: 21,3516           55522                           TS       AERRVEL                               
045186,000267: 21,3517           03527                           TC       J6.                                   
045187,000268: 21,3520           00006        NEGVEL             EXTEND                                         
045188,000269: 21,3521           41516                           DCS      EDOT                                  
045189,000270: 21,3522           53521                           DXCH     EDOTVEL                               
045190,000271: 21,3523           41502                           CS       T5TEMP                                
045191,000272: 21,3524           55523                           TS       ADBVEL                                #  -(ADB+AF)
045192,000273: 21,3525           41517                           CS       AERR                                  
045193,000274: 21,3526           55522                           TS       AERRVEL                               
045194,000275: 
045195,000276: 21,3527           00006        J6.                EXTEND                                         

Page 1030

045197,000278: 21,3530           61655                           SU       ADB                                   
045198,000279: 21,3531           63442                           AD       WLH/SLOP                              
045199,000280: 21,3532           00006                           EXTEND                                         
045200,000281: 21,3533           63562                           BZMF     J8                                    
045201,000282: 
045202,000283: 21,3534           41502                           CS       T5TEMP                                #  (ADB+AF)
045203,000284: 21,3535           61522                           AD       AERRVEL                               
045204,000285: 21,3536           00006                           EXTEND                                         
045205,000286: 21,3537           63541                           BZMF     +2                                    
045206,000287: 21,3540           13553                           TCF      J7                                    
045207,000288: 21,3541           00006                           EXTEND                                         
045208,000289: 21,3542           41521                           DCS      EDOTVEL                               
045209,000290: 21,3543           00006                           EXTEND                                         
045210,000291: 21,3544           11654                           DV       SLOPE                                 
045211,000292: 21,3545           00006                           EXTEND                                         
045212,000293: 21,3546           61522                           SU       AERRVEL                               
045213,000294: 21,3547           61655                           AD       ADB                                   
045214,000295: 21,3550           00006                           EXTEND                                         
045215,000296: 21,3551           63641                           BZMF     J18                                   
045216,000297: 21,3552           13715                           TCF      J23                                   
045217,000298: 
045218,000299: 21,3553           45006        J7                 CS       WL-H/SLP                              
045219,000300: 21,3554           00006                           EXTEND                                         
045220,000301: 21,3555           61502                           SU       T5TEMP                                #  (ADB+AF)
045221,000302: 21,3556           61522                           AD       AERRVEL                               
045222,000303: 21,3557           00006                           EXTEND                                         
045223,000304: 21,3560           63645                           BZMF     J20                                   
045224,000305: 21,3561           13656                           TCF      J21                                   
045225,000306: 
045226,000307: 21,3562           00006        J8                 EXTEND                                         
045227,000308: 21,3563           43444                           DCS      WLH                                   
045228,000309: 21,3564           53514                           DXCH     WTEMP                                 
045229,000310: 21,3565           00006                           EXTEND                                         
045230,000311: 21,3566           31521                           DCA      EDOTVEL                               
045231,000312: 21,3567           21514                           DAS      WTEMP                                 
045232,000313: 21,3570           11513                           CCS      WTEMP                                 
045233,000314: 21,3571           13704                           TCF      J22                                   
045234,000315: 21,3572           13574                           TCF      SIGNCK2                               
045235,000316: 21,3573           13600                           TCF      NJ22                                  
045236,000317: 21,3574           11514        SIGNCK2            CCS      WTEMP      +1                         
045237,000318: 21,3575           13704                           TCF      J22                                   
045238,000319: 21,3576           13704                           TCF      J22                                   
045239,000320: 21,3577           13600                           TCF      NJ22                                  
045240,000321: 
045241,000322: 21,3600           00006        NJ22               EXTEND                                         
045242,000323: 21,3601           31521                           DCA      EDOTVEL                               
045243,000324: 21,3602           00006                           EXTEND                                         
045244,000325: 21,3603           11654                           DV       SLOPE                                 
045245,000326: 21,3604           61502                           AD       T5TEMP                                #  (ADB+AF)
045246,000327: 21,3605           61522                           AD       AERRVEL                               

Page 1031

045248,000329: 21,3606           10000                           CCS      A                                     
045249,000330: 21,3607           13715                           TCF      J23                                   
045250,000331: 21,3610           13715                           TCF      J23                                   
045251,000332: 21,3611           13613                           TCF      +2                                    
045252,000333: 21,3612           13715                           TCF      J23                                   
045253,000334: 
045254,000335: 21,3613           00006                           EXTEND                                         
045255,000336: 21,3614           43446                           DCS      WLMH                                  #  WL - H
045256,000337: 21,3615           53514                           DXCH     WTEMP                                 
045257,000338: 21,3616           00006                           EXTEND                                         
045258,000339: 21,3617           31521                           DCA      EDOTVEL                               
045259,000340: 21,3620           21514                           DAS      WTEMP                                 
045260,000341: 21,3621           11513                           CCS      WTEMP                                 
045261,000342: 21,3622           13715                           TCF      J23                                   
045262,000343: 21,3623           13625                           TCF      SIGNCK3                               
045263,000344: 21,3624           13631                           TCF      NJ23                                  
045264,000345: 21,3625           11514        SIGNCK3            CCS      WTEMP      +1                         
045265,000346: 21,3626           13715                           TCF      J23                                   
045266,000347: 21,3627           13715                           TCF      J23                                   
045267,000348: 21,3630           13631                           TCF      NJ23                                  
045268,000349: 
045269,000350: 21,3631           31522        NJ23               CA       AERRVEL                               
045270,000351: 21,3632           61502                           AD       T5TEMP                                #  (ADB+AF)
045271,000352: 21,3633           65006                           AD       WL-H/SLP                              
045272,000353: 21,3634           10000                           CCS      A                                     
045273,000354: 21,3635           13727                           TCF      J24                                   
045274,000355: 21,3636           13727                           TCF      J24                                   
045275,000356: 21,3637           13704                           TCF      J22                                   
045276,000357: 21,3640           13704                           TCF      J22                                   
045277,000358: 
045278,000359: 21,3641           00006        J18                EXTEND                                         
045279,000360: 21,3642           41516                           DCS      EDOT                                  
045280,000361: 21,3643           53511                           DXCH     KMPAC                                 
045281,000362: 21,3644           13740                           TCF      JTIME                                 
045282,000363: 
045283,000364: 21,3645           41517        J20                CS       AERR                                  
045284,000365: 21,3646           61523                           AD       ADBVEL                                
045285,000366: 21,3647           00006                           EXTEND                                         
045286,000367: 21,3650           73451                           MP       SLOPE2                                #  (HYSTERESIS SLOPE)
045287,000368: 21,3651           53511                           DXCH     KMPAC                                 
045288,000369: 21,3652           00006                           EXTEND                                         
045289,000370: 21,3653           41516                           DCS      EDOT                                  
045290,000371: 21,3654           21511                           DAS      KMPAC                                 
045291,000372: 21,3655           13740                           TCF      JTIME                                 
045292,000373: 
045293,000374: 21,3656           11515        J21                CCS      EDOT                                  
045294,000375: 21,3657           13675                           TCF      JP                                    
045295,000376: 21,3660           13662                           TCF      SIGNCK4                               
045296,000377: 21,3661           13666                           TCF      JN                                    
045297,000378: 21,3662           11516        SIGNCK4            CCS      EDOT       +1                         

Page 1032

045299,000380: 21,3663           13675                           TCF      JP                                    
045300,000381: 21,3664           13675                           TCF      JP                                    
045301,000382: 21,3665           13666                           TCF      JN                                    
045302,000383: 21,3666           00006        JN                 EXTEND                                         
045303,000384: 21,3667           41516                           DCS      EDOT                                  
045304,000385: 21,3670           53511                           DXCH     KMPAC                                 
045305,000386: 21,3671           00006                           EXTEND                                         
045306,000387: 21,3672           33450                           DCA      WL                                    
045307,000388: 21,3673           21511                           DAS      KMPAC                                 
045308,000389: 21,3674           13740                           TCF      JTIME                                 
045309,000390: 
045310,000391: 21,3675           00006        JP                 EXTEND                                         
045311,000392: 21,3676           41516                           DCS      EDOT                                  
045312,000393: 21,3677           53511                           DXCH     KMPAC                                 
045313,000394: 21,3700           00006                           EXTEND                                         
045314,000395: 21,3701           43450                           DCS      WL                                    
045315,000396: 21,3702           21511                           DAS      KMPAC                                 
045316,000397: 21,3703           13740                           TCF      JTIME                                 
045317,000398: 
045318,000399: 21,3704           11515        J22                CCS      EDOT                                  
045319,000400: 21,3705           13666                           TCF      JN                                    
045320,000401: 21,3706           13710                           TCF      SIGNCK5                               
045321,000402: 21,3707           13675                           TCF      JP                                    
045322,000403: 21,3710           11516        SIGNCK5            CCS      EDOT       +1                         
045323,000404: 21,3711           13666                           TCF      JN                                    
045324,000405: 21,3712           13666                           TCF      JN                                    
045325,000406: 21,3713           13675                           TCF      JP                                    
045326,000407: 21,3714           13675                           TCF      JP                                    
045327,000408: 
045328,000409: 21,3715           51506        J23                INDEX    SPNDX                                 
045329,000410: 21,3716           44754                           CS       BIT13                                 #  RESET RATE DAMPING FLAG
045330,000411: 21,3717           71501                           MASK     RCSFLAGS                              #  BIT13 FOR ROLL  (SPNDX = 0)
045331,000412: 21,3720           55501                           TS       RCSFLAGS                              #  BIT12 FOR PITCH (SPNDX = 1)
045332,000413:                                                                                                  #  BIT11 FOR YAW   (SPNDX = 2)
045333,000414: 
045334,000415: 21,3721           51506                           INDEX    SPNDX                                 
045335,000416: 21,3722           33060                           CAF      OCT01400                              #  IS THERE TO BE A FORCED FIRING ON THIS
045336,000417: 21,3723           71501                           MASK     RCSFLAGS                              #  AXIS
045337,000418: 21,3724           00006                           EXTEND                                         
045338,000419: 21,3725           13761                           BZF      DOJET      +2                         #  NO, GO TO DOJET +2 AND DO NOTHING
045339,000420: 
045340,000421: 21,3726           13641                           TCF      J18                                   #  YES, GO TO J18 AND FORCE A FIRING
045341,000422: 
045342,000423: 21,3727           41517        J24                CS       AERR                                  
045343,000424: 21,3730           00006                           EXTEND                                         
045344,000425: 21,3731           61523                           SU       ADBVEL                                
045345,000426: 21,3732           00006                           EXTEND                                         
045346,000427: 21,3733           73451                           MP       SLOPE2                                #  (HYSTERESIS SLOPE)
045347,000428: 21,3734           53511                           DXCH     KMPAC                                 
045348,000429: 21,3735           00006                           EXTEND                                         

Page 1033

045350,000431: 21,3736           41516                           DCS      EDOT                                  
045351,000432: 21,3737           21511                           DAS      KMPAC                                 
045352,000433: 

Page 1034

045354,000435:                                                                                                  #  COMPUTE THE JET ON TIME NECESSARY TO ACCOMPLISH THE DESIRED CHANGE IN RATE, IE
045355,000436: 
045356,000437:                                                                                                  #             T  = J/M(DELTA W)
045357,000438:                                                                                                  #              J
045358,000439: 
045359,000440:                                                                                                  #        DELTA W = DESIRED CHANGE IN S/C ANGULAR RATE AS DETERMINED BY THE
045360,000441:                                                                                                  #                  SWITCHING LOGIC,  AT THIS POINT STORED IN KMPAC.
045361,000442: 
045362,000443:                                                                                                  #           J/M  = S/C INERTIA TO TORQUE 9ATIO SCALED BY
045363,000444:                                                                                                  #                    (57.3/450)(B24/1600)(1/.8)
045364,000445:                                                                                                  #                  FOR 1 JET OPERATION  (M = 700 FT-LB).
045365,000446:                                                                                                  #                  IE J/M = J(SLUG-FTFT) X 0.00000085601606
045366,000447: 
045367,000448:                                                                                                  #                  THE CORRESPONDING COMPUTER VARIABLES ESTABLISHED BY
045368,000449:                                                                                                  #                  KEYBOARD ENTRY ARE
045369,000450:                                                                                                  #                     J/M (ROLL)
045370,000451:                                                                                                  #                     J/M1 (PITCH)
045371,000452:                                                                                                  #                     J/M2 (YAW)
045372,000453: 
045373,000454:                                                                                                  #            T   = JET ON-TIME     SCALED 16384/1600 SEC
045374,000455:                                                                                                  #             J
045375,000456: 
045376,000457:                                                                                                  #                  THE COMPUTER VARIABLES ARE
045377,000458:                                                                                                  #                        TAU  (ROLL)
045378,000459:                                                                                                  #                        TAU1 (PITCH)
045379,000460:                                                                                                  #                        TAU2 (YAW)
045380,000461: 
045381,000462: 
045382,000463: 21,3740           51506        JTIME              INDEX    SPNDX                                 #  PICK UP S/C INERTIA/TORQUE RATIO
045383,000464: 21,3741           31623                           CA       J/M                                   #  SCALED (57.3/450)(B24/1600)
045384,000465: 21,3742           02060                           TC       SMALLMP                               #  FOR 1-JET OPERATION
045385,000466: 21,3743           34756                           CA       BIT11                                 
045386,000467: 21,3744           02060                           TC       SMALLMP                               
045387,000468: 21,3745           11510                           CCS      KMPAC                                 
045388,000469: 21,3746           13752                           TCF      +4                                    
045389,000470: 21,3747           13756                           TCF      TAUNORM                               
045390,000471: 21,3750           13754                           TCF      +4                                    
045391,000472: 21,3751           13756                           TCF      TAUNORM                               
045392,000473: 21,3752           34750                           CA       POSMAX                                
045393,000474: 21,3753           13757                           TCF      DOJET                                 
045394,000475: 21,3754           34752                           CA       NEGMAX                                
045395,000476: 21,3755           13757                           TCF      DOJET                                 
045396,000477: 
045397,000478: 21,3756           31511        TAUNORM            CA       KMPAC      +1                         
045398,000479: 21,3757           51506        DOJET              INDEX    SPNDX                                 
045399,000480: 21,3760           55561                           TS       TAU                                   
045400,000481: 21,3761           11506                 +2        CCS      SPNDX                                 
045401,000482: 21,3762           13456                           TCF      JLOOP                                 
045402,000483: 21,3763           00006        T6PROG             EXTEND                                         #  WHEN THE ROTATION COMMANDS (TAUS)
045403,000484: 21,3764           33770                           DCA      JETADDR                               #  HAVE BEEN DETERMINED

Page 1035

045405,000486: 21,3765           52113                           DXCH     T5LOC                                 #  RESET T5LOC FOR PHASE3
045406,000487: 21,3766           15323                           TCF      RESUME                                
045407,000488: 
045408,000489: 21,3767  E6,1510                                  EBANK=   KMPAC                                 
045409,000490: 21,3767           02541 36066  JETADDR            2CADR    JETSLECT                              

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