Source Code

These source-code files are part of a reconstructed copy of Comanche 45/2 (AKA Manche45 revision 2), the final, flown mission release of the Apollo 10 Command Module (CM) Apollo Guidance Computer (AGC) software. Comanche 45/2 was preceded by Comanche 44 and Comanche 45. The reconstruction is believed to be exactly accurate, but in the absence of an actual Apollo-era listing of Comanche 45/2, some explanation of the reconstruction process is needed to insure confidence in that accuracy.

The starting point was the source code of Comanche 45 (itself previously accurately reconstructed). Comanche 45 source code was then modified by incorporating changes known from contemporary documentation to have been made between revisions 45 and 45/2. The now-reconstructed Comanche 45/2 source code was verified by assembling it and checking that the assembled code had the expected known-correct memory-bank checksums. Note that page numbers in the reconstructed code tend to match those in the Comanche 55, the most-similar revision of Comanche for which we have access to an actual non-reconstructed hardcopy; the source code would likely have different page numbers in a contemporary Comanche 45 listing.

Annotations that were not present in the contemporary source code have been added to the reconstructed code to justify each change relative to Comanche 44. Here's a guide to the Apollo documentation referenced in those annotations:
Comments expected to have been present in 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.

044605,000002:                                                                                                  ## Copyright:   Public domain.
044606,000003:                                                                                                  ## Filename:    AUTOMATIC_MANEUVERS.agc
044607,000004:                                                                                                  ## Purpose:     A section of Manche45 revision 2.
044608,000005:                                                                                                  ##              It is part of the reconstructed source code for the
044609,000006:                                                                                                  ##              final, flown release of the flight software for the Command
044610,000007:                                                                                                  ##              Module's (CM) Apollo Guidance Computer (AGC) for Apollo 10.
044611,000008:                                                                                                  ##              The code has been recreated from a copy of Comanche 055. It
044612,000009:                                                                                                  ##              has been adapted such that the resulting bugger words
044613,000010:                                                                                                  ##              exactly match those specified for Manche 45/2 in NASA drawing
044614,000011:                                                                                                  ##              2021153D, which gives relatively high confidence that the
044615,000012:                                                                                                  ##              reconstruction is correct.
044616,000013:                                                                                                  ## Assembler:   yaYUL
044617,000014:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
044618,000015:                                                                                                  ## Website:     www.ibiblio.org/apollo/index.html
044619,000016:                                                                                                  ## Mod history: 2020-12-24 MAS  Created from Comanche 45.
044620,000017: 

Page 1025

044622,000019: 21,3250                                           BANK     21                                    
044623,000020: 21,2000                                           SETLOC   DAPS3                                 
044624,000021: 21,2000                                           BANK                                           
044625,000022: 
044626,000023: 21,3250                                           COUNT    21/DAPAM                              
044627,000024: 
044628,000025: 21,3250  E6,1510                                  EBANK=   KMPAC                                 
044629,000026: 21,3250           00006        AHFNOROT           EXTEND                                         
044630,000027: 21,3251           00031                           READ     CHAN31                                
044631,000028: 21,3252           75002                           MASK     BIT14                                 
044632,000029: 21,3253           00006                           EXTEND                                         
044633,000030: 21,3254           63272                           BZMF     FREECONT                              
044634,000031: 21,3255           31501                           CA       RCSFLAGS                              #  SEE IF RATE FILTER HAS BEEN INITIALIZED
044635,000032: 21,3256           75002                           MASK     BIT14                                 
044636,000033: 21,3257           10000                           CCS      A                                     #  IF SO, PROCEED WITH ATTITUDE CONTROL
044637,000034: 21,3260           12534                           TCF      REINIT                                #  IF NOT, RECYCLE TO INITIALIZE FILTER
044638,000035:                                                                                                  #  AUTOMATIC CONTROL YET
044639,000036: 21,3261           00006                           EXTEND                                         
044640,000037: 21,3262           00031                           READ     CHAN31                                
044641,000038: 21,3263           75003                           MASK     BIT13                                 
044642,000039: 21,3264           00006                           EXTEND                                         
044643,000040: 21,3265           63372                           BZMF     HOLDFUNC                              
044644,000041: 
044645,000042: 21,3266           31332        AUTOCONT           CA       HOLDFLAG                              #  IF HOLDFLAG IS +, GO TO GRABANG.
044646,000043: 21,3267           00006                           EXTEND                                         #  OTHERWISE, GO TO ATTHOLD.
044647,000044: 21,3270           63322                           BZMF     ATTHOLD                               
044648,000045: 21,3271           13376                           TCF      GRABANG                               
044649,000046: 
044650,000047:                                                                                                  #  MINIMUM IMPULSE CONTROL
044651,000048: 
044652,000049: 21,3272           35017        FREECONT           CAF      ONE                                   
044653,000050: 21,3273           55332                           TS       HOLDFLAG                              #  RESET HOLDFLAG
044654,000051:                                                                                                  #  INHIBIT AUTOMATIC STEERING
044655,000052: 21,3274           00006                           EXTEND                                         
044656,000053: 21,3275           00032                           READ     CHAN32                                
044657,000054: 21,3276           54001                           TS       L                                     
044658,000055: 21,3277           40000                           COM                                            
044659,000056: 21,3300           73036                           MASK     MANROT                                
044660,000057: 21,3301           71633                           MASK     CHANTEMP                              
044661,000058: 21,3302           23633                           LXCH     CHANTEMP                              
044662,000059: 21,3303           03130                           TC       STICKCHK                              
044663,000060: 21,3304           51656                           INDEX    RMANNDX                               
044664,000061: 21,3305           33316                           CA       MINTAU                                #  MINTAU        +0
044665,000062: 21,3306           55561                           TS       TAU                                   #                +1      +14MS MINIMUM IMPULSE
044666,000063: 21,3307           51657                           INDEX    PMANNDX                               #                +2      -14MS TIME
044667,000064: 21,3310           33316                           CA       MINTAU                                #                +3      +0
044668,000065: 21,3311           55562                           TS       TAU1                                  
044669,000066: 21,3312           51660                           INDEX    YMANNDX                               
044670,000067: 21,3313           33316                           CA       MINTAU                                

Page 1026

044672,000069: 21,3314           55563                           TS       TAU2                                  
044673,000070: 21,3315           13067                           TCF      T6PROGM                               
044674,000071: 
044675,000072: 21,3316           00000        MINTAU             DEC      0          B-14                       
044676,000073: 21,3317           00027                           DEC      23         B-14                       #  = 14MS
044677,000074: 21,3320           77750                           DEC      -23        B-14                       #  = -14MS
044678,000075: 21,3321           00000                           DEC      0          B-14                       
044679,000076: 

Page 1027

044681,000078:                                                                                                  #  CALCULATION OF ATTITUDE ERRORS-
044682,000079:                                                                                                  #        -    *     -      -          -
044683,000080:                                                                                                  #        AK = AMGB (CDUX - THETADX) + BIAS
044684,000081: 
044685,000082:                                                                                                  #  IE    *AK *   * 1        SIN(PSI)        0    ** CDUX - THETADX *    *BIAS *
044686,000083:                                                                                                  #        *   *   *                               **                *    *     *
044687,000084:                                                                                                  #        *AK1* = * 0   COS(PSI)COS(PHI)  SIN(PHI)** CDUY - THETADY *  + *BIAS1*
044688,000085:                                                                                                  #        *   *   *                               **                *    *     *
044689,000086:                                                                                                  #        *AK2*   * 0  -COS(PSI)SIN(PHI)  COS(PHI)** CDUZ - THETADZ *    *BIAS2*
044690,000087: 
044691,000088:                                                                                                  #  THE BIASES ARE ADDED ONLY WHILE PERFORMING AUTOMATIC MANEUVERS (ESP KALCMANU) TO PROVIDE ADDITIONAL LEAD
044692,000089:                                                                                                  #  AND PREVENT OVERSHOOT WHEN STARTING AN AUTOMATIC MANEUVER.  NORMALLY THE REQUIRED LEAD IS ONLY 1-2 DEGREES.
044693,000090:                                                                                                  #  BUT DURING HIGH RATE MANEUVERS IT CAN BE AS MUCH AS 7 DEGREES.  THE BIASES ARE COMPUTED BY KALCMANU AND REMAIN
044694,000091:                                                                                                  #  FIXED UNTIL THE MANEUVER IS COMPLETED AT WHICH TIME THEY ARE RESET TO ZERO.
044695,000092: 
044696,000093: 21,3322           30032        ATTHOLD            CA       CDUX                                  
044697,000094: 21,3323           00006                           EXTEND                                         
044698,000095: 21,3324           21572                           MSU      THETADX                               
044699,000096: 21,3325           55567                           TS       ERRORX                                
044700,000097: 21,3326           30033                           CA       CDUY                                  
044701,000098: 21,3327           00006                           EXTEND                                         
044702,000099: 21,3330           21573                           MSU      THETADY                               
044703,000100: 21,3331           55502                           TS       T5TEMP                                
044704,000101: 21,3332           00006                           EXTEND                                         
044705,000102: 21,3333           71640                           MP       AMGB1                                 
044706,000103: 21,3334           27567                           ADS      ERRORX                                
044707,000104: 21,3335           31502                           CA       T5TEMP                                
044708,000105: 21,3336           00006                           EXTEND                                         
044709,000106: 21,3337           71641                           MP       AMGB4                                 
044710,000107: 21,3340           55570                           TS       ERRORY                                
044711,000108: 21,3341           31502                           CA       T5TEMP                                
044712,000109: 21,3342           00006                           EXTEND                                         
044713,000110: 21,3343           71643                           MP       AMGB7                                 
044714,000111: 21,3344           55571                           TS       ERRORZ                                
044715,000112: 21,3345           30034                           CA       CDUZ                                  
044716,000113: 21,3346           00006                           EXTEND                                         
044717,000114: 21,3347           21574                           MSU      THETADZ                               
044718,000115: 21,3350           55502                           TS       T5TEMP                                
044719,000116: 21,3351           00006                           EXTEND                                         
044720,000117: 21,3352           71642                           MP       AMGB5                                 
044721,000118: 21,3353           27570                           ADS      ERRORY                                
044722,000119: 21,3354           31502                           CA       T5TEMP                                
044723,000120: 21,3355           00006                           EXTEND                                         
044724,000121: 21,3356           71644                           MP       AMGB8                                 
044725,000122: 21,3357           27571                           ADS      ERRORZ                                
044726,000123: 21,3360           41332                           CS       HOLDFLAG                              
044727,000124: 21,3361           00006                           EXTEND                                         

Page 1028

044729,000126: 21,3362           63441                           BZMF     JETS                                  
044730,000127: 21,3363           31564                           CA       BIAS                                  #  AD BIASES ONLY IF PERFORMING AUTOMATIC
044731,000128: 21,3364           27567                           ADS      ERRORX                                
044732,000129: 21,3365           31565                           CA       BIAS1                                 
044733,000130: 21,3366           27570                           ADS      ERRORY                                
044734,000131: 21,3367           31566                           CA       BIAS2                                 
044735,000132: 21,3370           27571                           ADS      ERRORZ                                
044736,000133: 21,3371           13441                           TCF      JETS                                  
044737,000134: 
044738,000135: 21,3372           11332        HOLDFUNC           CCS      HOLDFLAG                              
044739,000136: 21,3373           13376                           TCF      +3                                    
044740,000137: 21,3374           13322                           TCF      ATTHOLD                               
044741,000138: 21,3375           13376                           TCF      +1                                    
044742,000139: 21,3376           35021        GRABANG            CAF      ZERO                                  #  ZERO WBODYS AND BIASES
044743,000140: 21,3377           55525                           TS       WBODY                                 
044744,000141: 21,3400           55526                           TS       WBODY      +1                         
044745,000142: 21,3401           55527                           TS       WBODY1                                
044746,000143: 21,3402           55530                           TS       WBODY1     +1                         
044747,000144: 21,3403           55531                           TS       WBODY2                                
044748,000145: 21,3404           55532                           TS       WBODY2     +1                         
044749,000146: 21,3405           55564                           TS       BIAS                                  
044750,000147: 21,3406           55565                           TS       BIAS1                                 
044751,000148: 21,3407           55566                           TS       BIAS2                                 
044752,000149: 
044753,000150: 21,3410           31501                           CA       RCSFLAGS                              
044754,000151: 21,3411           73037                           MASK     OCT16000                              
044755,000152: 21,3412           00006                           EXTEND                                         #  IS RATE DAMPING COMPLETED
044756,000153: 21,3413           13421                           BZF      ENDDAMP                               #  IF SO, GO TO ENDDAMP
044757,000154: 21,3414           35021                           CAF      ZERO                                  #  OTHERWISE, ZERO ERRORS
044758,000155: 21,3415           55567                           TS       ERRORX                                
044759,000156: 21,3416           55570                           TS       ERRORY                                
044760,000157: 21,3417           55571                           TS       ERRORZ                                
044761,000158: 21,3420           13441                           TCF      JETS                                  
044762,000159: 
044763,000160: 21,3421           55332        ENDDAMP            TS       HOLDFLAG                              #  SET HOLDFLAG +0
044764,000161: 21,3422           00006                           EXTEND                                         
044765,000162: 21,3423           30033                           DCA      CDUX                                  #  PICK UP CDU ANGLES FOR ATTITUDE HOLD
044766,000163: 21,3424           53573                           DXCH     THETADX                               #  REFERENCES
044767,000164: 21,3425           30034                           CA       CDUZ                                  
044768,000165: 21,3426           55574                           TS       THETADZ                               
044769,000166: 21,3427           13322                           TCF      ATTHOLD                               
044770,000167: 

Page 1029

044772,000169:                                                                                                  #  JET SWITCHING LOGIC AND CALCULATION OF REQUIRED ROTATION COMMANDS
044773,000170: 
044774,000171:                                                                                                  #  DETERMINE THE LOCATION OF THE RATE ERROR AND THE ATTITUDE ERROR RELATIVE TO THE SWITCHING LOGIC IN THE PHASE
044775,000172:                                                                                                  #  PLANE.
044776,000173: 
044777,000174:                                                                                                  #  COMPUTE THE CHANGE IN RATE CORRESPONDING TO THE ATTITUDE ERROR NECESSARY TO DRIVE THE THE S/C INTO THE
044778,000175:                                                                                                  #  APPROPRIATE DEADZONE.
044779,000176: 
044780,000177:                                                                                                  #                                      .
044781,000178:                                                                                                  #    R22                          RATE . ERROR
044782,000179:                                                                                                  #         WL+H                         .
044783,000180:                                                                                                  #  *********************************   .                                 ***** SWITCH LINES ENCLOSING DEADZONES
044784,000181:                                                                                                  #    R23  WL                        *  .
044785,000182:                                                                                                  #  --------------------------------- * .                                 ----- DESIRED RATE LINES
044786,000183:                                                                                                  #    R23  WL-H       -                *.
044787,000184:                                                                                                  #  ****************** -                .                                 R20, R21, R22, ETC REGIONS IN PHASE
044788,000185:                                                                                                  #                    * -               .* R18      R20       R21         PLANE FOF COMPUTING DESIRED RESPONSE
044789,000186:                                                                                                  #                     *                . *
044790,000187:                                                                                                  #                      *-              .  *
044791,000188:                                                                                                  #    R22             R24*-    R23      .   *
044792,000189:                                                                                                  #                        *-            .    *
044793,000190:                                                                                                  #                         *            .     *
044794,000191:                                                                                                  #                          + -ADB      .      * AF              ATTITUDE
044795,000192:                                                                                                  #  .........................+--+---------------+--+........................
044796,000193:                                                                                                  #                            AF *      .     +ADB  +             ERROR
044797,000194:                                                                                                  #                                *     .            *
044798,000195:                                                                                                  #                                 *    .            -*
044799,000196:                                                                                                  #                                  *   .             -*
044800,000197:                                                                                                  #                                   *  .              -*
044801,000198:                                                                                                  #                                    * .                *
044802,000199:                                                                                                  #                                     *.               - *
044803,000200:                                                                                                  #                                      .                - *****************
044804,000201:                                                                                                  #                                      .*                -
044805,000202:                                                                                                  #                                      . * --------------------------------
044806,000203:                                                                                                  #                                      .  *
044807,000204:                                                                                                  #                                      .   ********************************
044808,000205:                                                                                                  #                                      .
044809,000206:                                                                                                  #                        FIG. 1  PHASE PLANE SWITCHING LOGIC
044810,000207: 
044811,000208:                                                                                                  #  CONSTANTS FOR JET SWITCHING LOGIC
044812,000209: 
044813,000210: 21,3430           00114        WLH/SLOP           DEC      .00463                                #  = WL+H/SLOPE = .83333 DEG     $180
044814,000211: 21,3431           00055        WL-H/SLP           DEC      .00277                                #  = WL-H/SLOPE = .5 DEG         $180
044815,000212: 21,3432           00022 06426  WLH                2DEC     .0011111111                            #  = WL+H = 0.5 DEG/SEC          $450
044816,000213: 
044817,000214: 21,3434           00012 35415  WLMH               2DEC     .0006666666                            #  = WL-H = 0.3 DEG/SEC          $450
044818,000215: 
044819,000216: 21,3436           00016 22021  WL                 2DEC     .0008888888                            #  = WL   = 0.4 DEG/SEC          $450
044820,000217: 

Page 1030

044822,000219: 21,3440           12173        SLOPE2             DEC      .32                                   #  = 0.8 DEG/SEC/DEG             $450/180
044823,000220: 21,3441           31655        JETS               CA       ADB                                   
044824,000221: 21,3442           65015                           AD       FOUR                                  #  AF = FLAT REGION = .044 DEG
044825,000222: 21,3443           55502                           TS       T5TEMP                                #  ADB+AF
044826,000223: 21,3444           35016                           CAF      TWO                                   
044827,000224: 21,3445           55506        JLOOP              TS       SPNDX                                 
044828,000225: 21,3446           60000                           DOUBLE                                         
044829,000226: 21,3447           55507                           TS       DPNDX                                 
044830,000227: 21,3450           00006                           EXTEND                                         
044831,000228: 21,3451           50000                           INDEX    A                                     
044832,000229: 21,3452           31534                           DCA      ADOT                                  
044833,000230: 21,3453           53516                           DXCH     EDOT                                  
044834,000231: 21,3454           31332                           CA       HOLDFLAG                              #  HOLDFLAG = +0 MEANS THAT DAP IS IN
044835,000232: 21,3455           00006                           EXTEND                                         #  ATTITUDE HOLD AND RATE DAMPING IS OVER.
044836,000233: 21,3456           13463                           BZF      INHOLD                                #  IF THIS IS THE CASE, BYPASS ADDITION
044837,000234:                                                                                                  #  OF WBODY AND GO TO INHOLD
044838,000235: 21,3457           00006                           EXTEND                                         
044839,000236: 21,3460           51507                           INDEX    DPNDX                                 
044840,000237: 21,3461           41526                           DCS      WBODY                                 
044841,000238: 21,3462           21516                           DAS      EDOT                                  #  = ADOT-WBODY
044842,000239: 21,3463           51506        INHOLD             INDEX    SPNDX                                 
044843,000240: 21,3464           31567                           CA       ERRORX                                
044844,000241: 21,3465           55517                           TS       AERR                                  #  AERR = BIAS + AK
044845,000242: 
044846,000243: 21,3466           11515                           CCS      EDOT                                  
044847,000244: 21,3467           13477                           TCF      POSVEL                                
044848,000245: 21,3470           13472                           TCF      SIGNCK1                               
044849,000246: 21,3471           13507                           TCF      NEGVEL                                
044850,000247: 21,3472           11516        SIGNCK1            CCS      EDOT       +1                         
044851,000248: 21,3473           13477                           TCF      POSVEL                                
044852,000249: 21,3474           13477                           TCF      POSVEL                                
044853,000250: 21,3475           13507                           TCF      NEGVEL                                
044854,000251: 21,3476           13507                           TCF      NEGVEL                                
044855,000252: 21,3477           00006        POSVEL             EXTEND                                         
044856,000253: 21,3500           31516                           DCA      EDOT                                  
044857,000254: 21,3501           53521                           DXCH     EDOTVEL                               
044858,000255: 21,3502           31502                           CA       T5TEMP                                
044859,000256: 21,3503           55523                           TS       ADBVEL                                #  +(ADB+AF)
044860,000257: 21,3504           31517                           CA       AERR                                  
044861,000258: 21,3505           55522                           TS       AERRVEL                               
044862,000259: 21,3506           03516                           TC       J6.                                   
044863,000260: 21,3507           00006        NEGVEL             EXTEND                                         
044864,000261: 21,3510           41516                           DCS      EDOT                                  
044865,000262: 21,3511           53521                           DXCH     EDOTVEL                               
044866,000263: 21,3512           41502                           CS       T5TEMP                                
044867,000264: 21,3513           55523                           TS       ADBVEL                                #  -(ADB+AF)
044868,000265: 21,3514           41517                           CS       AERR                                  
044869,000266: 21,3515           55522                           TS       AERRVEL                               
044870,000267: 
044871,000268: 21,3516           00006        J6.                EXTEND                                         

Page 1031

044873,000270: 21,3517           61655                           SU       ADB                                   
044874,000271: 21,3520           63430                           AD       WLH/SLOP                              
044875,000272: 21,3521           00006                           EXTEND                                         
044876,000273: 21,3522           63551                           BZMF     J8                                    
044877,000274: 
044878,000275: 21,3523           41502                           CS       T5TEMP                                #  (ADB+AF)
044879,000276: 21,3524           61522                           AD       AERRVEL                               
044880,000277: 21,3525           00006                           EXTEND                                         
044881,000278: 21,3526           63530                           BZMF     +2                                    
044882,000279: 21,3527           13542                           TCF      J7                                    
044883,000280: 21,3530           00006                           EXTEND                                         
044884,000281: 21,3531           41521                           DCS      EDOTVEL                               
044885,000282: 21,3532           00006                           EXTEND                                         
044886,000283: 21,3533           11654                           DV       SLOPE                                 
044887,000284: 21,3534           00006                           EXTEND                                         
044888,000285: 21,3535           61522                           SU       AERRVEL                               
044889,000286: 21,3536           61655                           AD       ADB                                   
044890,000287: 21,3537           00006                           EXTEND                                         
044891,000288: 21,3540           63630                           BZMF     J18                                   
044892,000289: 21,3541           13704                           TCF      J23                                   
044893,000290: 
044894,000291: 21,3542           43431        J7                 CS       WL-H/SLP                              
044895,000292: 21,3543           00006                           EXTEND                                         
044896,000293: 21,3544           61502                           SU       T5TEMP                                #  (ADB+AF)
044897,000294: 21,3545           61522                           AD       AERRVEL                               
044898,000295: 21,3546           00006                           EXTEND                                         
044899,000296: 21,3547           63634                           BZMF     J20                                   
044900,000297: 21,3550           13645                           TCF      J21                                   
044901,000298: 
044902,000299: 21,3551           00006        J8                 EXTEND                                         
044903,000300: 21,3552           43433                           DCS      WLH                                   
044904,000301: 21,3553           53514                           DXCH     WTEMP                                 
044905,000302: 21,3554           00006                           EXTEND                                         
044906,000303: 21,3555           31521                           DCA      EDOTVEL                               
044907,000304: 21,3556           21514                           DAS      WTEMP                                 
044908,000305: 21,3557           11513                           CCS      WTEMP                                 
044909,000306: 21,3560           13673                           TCF      J22                                   
044910,000307: 21,3561           13563                           TCF      SIGNCK2                               
044911,000308: 21,3562           13567                           TCF      NJ22                                  
044912,000309: 21,3563           11514        SIGNCK2            CCS      WTEMP      +1                         
044913,000310: 21,3564           13673                           TCF      J22                                   
044914,000311: 21,3565           13673                           TCF      J22                                   
044915,000312: 21,3566           13567                           TCF      NJ22                                  
044916,000313: 
044917,000314: 21,3567           00006        NJ22               EXTEND                                         
044918,000315: 21,3570           31521                           DCA      EDOTVEL                               
044919,000316: 21,3571           00006                           EXTEND                                         
044920,000317: 21,3572           11654                           DV       SLOPE                                 
044921,000318: 21,3573           61502                           AD       T5TEMP                                #  (ADB+AF)
044922,000319: 21,3574           61522                           AD       AERRVEL                               

Page 1032

044924,000321: 21,3575           10000                           CCS      A                                     
044925,000322: 21,3576           13704                           TCF      J23                                   
044926,000323: 21,3577           13704                           TCF      J23                                   
044927,000324: 21,3600           13602                           TCF      +2                                    
044928,000325: 21,3601           13704                           TCF      J23                                   
044929,000326: 
044930,000327: 21,3602           00006                           EXTEND                                         
044931,000328: 21,3603           43435                           DCS      WLMH                                  #  WL - H
044932,000329: 21,3604           53514                           DXCH     WTEMP                                 
044933,000330: 21,3605           00006                           EXTEND                                         
044934,000331: 21,3606           31521                           DCA      EDOTVEL                               
044935,000332: 21,3607           21514                           DAS      WTEMP                                 
044936,000333: 21,3610           11513                           CCS      WTEMP                                 
044937,000334: 21,3611           13704                           TCF      J23                                   
044938,000335: 21,3612           13614                           TCF      SIGNCK3                               
044939,000336: 21,3613           13620                           TCF      NJ23                                  
044940,000337: 21,3614           11514        SIGNCK3            CCS      WTEMP      +1                         
044941,000338: 21,3615           13704                           TCF      J23                                   
044942,000339: 21,3616           13704                           TCF      J23                                   
044943,000340: 21,3617           13620                           TCF      NJ23                                  
044944,000341: 
044945,000342: 21,3620           31522        NJ23               CA       AERRVEL                               
044946,000343: 21,3621           61502                           AD       T5TEMP                                #  (ADB+AF)
044947,000344: 21,3622           63431                           AD       WL-H/SLP                              
044948,000345: 21,3623           10000                           CCS      A                                     
044949,000346: 21,3624           13716                           TCF      J24                                   
044950,000347: 21,3625           13716                           TCF      J24                                   
044951,000348: 21,3626           13673                           TCF      J22                                   
044952,000349: 21,3627           13673                           TCF      J22                                   
044953,000350: 
044954,000351: 21,3630           00006        J18                EXTEND                                         
044955,000352: 21,3631           41516                           DCS      EDOT                                  
044956,000353: 21,3632           53511                           DXCH     KMPAC                                 
044957,000354: 21,3633           13727                           TCF      JTIME                                 
044958,000355: 
044959,000356: 21,3634           41517        J20                CS       AERR                                  
044960,000357: 21,3635           61523                           AD       ADBVEL                                
044961,000358: 21,3636           00006                           EXTEND                                         
044962,000359: 21,3637           73440                           MP       SLOPE2                                #  (HYSTERESIS SLOPE)
044963,000360: 21,3640           53511                           DXCH     KMPAC                                 
044964,000361: 21,3641           00006                           EXTEND                                         
044965,000362: 21,3642           41516                           DCS      EDOT                                  
044966,000363: 21,3643           21511                           DAS      KMPAC                                 
044967,000364: 21,3644           13727                           TCF      JTIME                                 
044968,000365: 
044969,000366: 21,3645           11515        J21                CCS      EDOT                                  
044970,000367: 21,3646           13664                           TCF      JP                                    
044971,000368: 21,3647           13651                           TCF      SIGNCK4                               
044972,000369: 21,3650           13655                           TCF      JN                                    
044973,000370: 21,3651           11516        SIGNCK4            CCS      EDOT       +1                         

Page 1033

044975,000372: 21,3652           13664                           TCF      JP                                    
044976,000373: 21,3653           13664                           TCF      JP                                    
044977,000374: 21,3654           13655                           TCF      JN                                    
044978,000375: 21,3655           00006        JN                 EXTEND                                         
044979,000376: 21,3656           41516                           DCS      EDOT                                  
044980,000377: 21,3657           53511                           DXCH     KMPAC                                 
044981,000378: 21,3660           00006                           EXTEND                                         
044982,000379: 21,3661           33437                           DCA      WL                                    
044983,000380: 21,3662           21511                           DAS      KMPAC                                 
044984,000381: 21,3663           13727                           TCF      JTIME                                 
044985,000382: 
044986,000383: 21,3664           00006        JP                 EXTEND                                         
044987,000384: 21,3665           41516                           DCS      EDOT                                  
044988,000385: 21,3666           53511                           DXCH     KMPAC                                 
044989,000386: 21,3667           00006                           EXTEND                                         
044990,000387: 21,3670           43437                           DCS      WL                                    
044991,000388: 21,3671           21511                           DAS      KMPAC                                 
044992,000389: 21,3672           13727                           TCF      JTIME                                 
044993,000390: 
044994,000391: 21,3673           11515        J22                CCS      EDOT                                  
044995,000392: 21,3674           13655                           TCF      JN                                    
044996,000393: 21,3675           13677                           TCF      SIGNCK5                               
044997,000394: 21,3676           13664                           TCF      JP                                    
044998,000395: 21,3677           11516        SIGNCK5            CCS      EDOT       +1                         
044999,000396: 21,3700           13655                           TCF      JN                                    
045000,000397: 21,3701           13655                           TCF      JN                                    
045001,000398: 21,3702           13664                           TCF      JP                                    
045002,000399: 21,3703           13664                           TCF      JP                                    
045003,000400: 
045004,000401: 21,3704           51506        J23                INDEX    SPNDX                                 
045005,000402: 21,3705           45003                           CS       BIT13                                 #  RESET RATE DAMPING FLAG
045006,000403: 21,3706           71501                           MASK     RCSFLAGS                              #  BIT13 FOR ROLL  (SPNDX = 0)
045007,000404: 21,3707           55501                           TS       RCSFLAGS                              #  BIT12 FOR PITCH (SPNDX = 1)
045008,000405:                                                                                                  #  BIT11 FOR YAW   (SPNDX = 2)
045009,000406: 
045010,000407: 21,3710           51506                           INDEX    SPNDX                                 
045011,000408: 21,3711           33033                           CAF      OCT01400                              #  IS THERE TO BE A FORCED FIRING ON THIS
045012,000409: 21,3712           71501                           MASK     RCSFLAGS                              #  AXIS
045013,000410: 21,3713           00006                           EXTEND                                         
045014,000411: 21,3714           13750                           BZF      DOJET      +2                         #  NO, GO TO DOJET +2 AND DO NOTHING
045015,000412: 
045016,000413: 21,3715           13630                           TCF      J18                                   #  YES, GO TO J18 AND FORCE A FIRING
045017,000414: 
045018,000415: 21,3716           41517        J24                CS       AERR                                  
045019,000416: 21,3717           00006                           EXTEND                                         
045020,000417: 21,3720           61523                           SU       ADBVEL                                
045021,000418: 21,3721           00006                           EXTEND                                         
045022,000419: 21,3722           73440                           MP       SLOPE2                                #  (HYSTERESIS SLOPE)
045023,000420: 21,3723           53511                           DXCH     KMPAC                                 
045024,000421: 21,3724           00006                           EXTEND                                         

Page 1034

045026,000423: 21,3725           41516                           DCS      EDOT                                  
045027,000424: 21,3726           21511                           DAS      KMPAC                                 
045028,000425: 

Page 1035

045030,000427:                                                                                                  #  COMPUTE THE JET ON TIME NECESSARY TO ACCOMPLISH THE DESIRED CHANGE IN RATE, IE
045031,000428: 
045032,000429:                                                                                                  #             T  = J/M(DELTA W)
045033,000430:                                                                                                  #              J
045034,000431: 
045035,000432:                                                                                                  #        DELTA W = DESIRED CHANGE IN S/C ANGULAR RATE AS DETERMINED BY THE
045036,000433:                                                                                                  #                  SWITCHING LOGIC, AT THIS POINT STORED IN KMPAC.
045037,000434: 
045038,000435:                                                                                                  #            J/M = S/C INERTIA TO TORQUE 9ATIO SCALED BY
045039,000436:                                                                                                  #                        (57.3/450)(B24/1600)(1/.8)
045040,000437:                                                                                                  #                  FOR 1 JET OPERATION  (M = 700 FT-LB).
045041,000438:                                                                                                  #                  IE J/M = J(SLUG-FTFT) X 0.00000085601606
045042,000439: 
045043,000440:                                                                                                  #                  THE CORRESPONDING COMPUTER VARIABLES ESTABLISHED BY
045044,000441:                                                                                                  #                  KEYBOARD ENTRY ARE
045045,000442:                                                                                                  #                        J/M  (ROLL)
045046,000443:                                                                                                  #                        J/M1 (PITCH)
045047,000444:                                                                                                  #                        J/M2 (YAW)
045048,000445: 
045049,000446:                                                                                                  #             T  = JET ON-TIME    SCALED 16384/1600 SEC
045050,000447:                                                                                                  #              J
045051,000448: 
045052,000449:                                                                                                  #                  THE COMPUTER VARIABLES ARE
045053,000450:                                                                                                  #                        TAU  (ROLL)
045054,000451:                                                                                                  #                        TAU1 (PITCH)
045055,000452:                                                                                                  #                        TAU2 (YAW)
045056,000453: 
045057,000454: 21,3727           51506        JTIME              INDEX    SPNDX                                 #  PICK UP S/C INERTIA/TORQUE RATIO
045058,000455: 21,3730           31623                           CA       J/M                                   #  SCALED (57.3/450)(B24/1600)
045059,000456: 21,3731           02042                           TC       SMALLMP                               #  FOR 1-JET OPERATION
045060,000457: 21,3732           35005                           CA       BIT11                                 
045061,000458: 21,3733           02042                           TC       SMALLMP                               
045062,000459: 21,3734           11510                           CCS      KMPAC                                 
045063,000460: 21,3735           13741                           TCF      +4                                    
045064,000461: 21,3736           13745                           TCF      TAUNORM                               
045065,000462: 21,3737           13743                           TCF      +4                                    
045066,000463: 21,3740           13745                           TCF      TAUNORM                               
045067,000464: 21,3741           34777                           CA       POSMAX                                
045068,000465: 21,3742           13746                           TCF      DOJET                                 
045069,000466: 21,3743           35001                           CA       NEGMAX                                
045070,000467: 21,3744           13746                           TCF      DOJET                                 
045071,000468: 
045072,000469: 21,3745           31511        TAUNORM            CA       KMPAC      +1                         
045073,000470: 21,3746           51506        DOJET              INDEX    SPNDX                                 
045074,000471: 21,3747           55561                           TS       TAU                                   
045075,000472: 21,3750           11506                           CCS      SPNDX                                 
045076,000473: 21,3751           13445                           TCF      JLOOP                                 
045077,000474: 21,3752           13757                           TCF      T6PROG                                
045078,000475: 

Page 1036

045080,000477: 21,3753           35021        ZEROCMDS           CAF      ZERO                                  
045081,000478: 21,3754           55561                           TS       TAU                                   
045082,000479: 21,3755           55562                           TS       TAU1                                  
045083,000480: 21,3756           55563                           TS       TAU2                                  
045084,000481: 21,3757           00006        T6PROG             EXTEND                                         #  WHEN THE ROTATION COMMANDS (TAUS)
045085,000482: 21,3760           33764                           DCA      JETADDR                               #  HAVE BEEN DETERMINED
045086,000483: 21,3761           53313                           DXCH     T5LOC                                 #  RESET T5LOC FOR PHASE3
045087,000484: 21,3762           15333                           TCF      RESUME                                
045088,000485: 
045089,000486: 21,3763  E6,1510                                  EBANK=   KMPAC                                 
045090,000487: 21,3763           02552 36066  JETADDR            2CADR    JETSLECT                              
045091,000488: 

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