forked from chrislgarry/Apollo-11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
P34-35_P74-75.s
1739 lines (1646 loc) · 34.5 KB
/
P34-35_P74-75.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Copyright: Public domain.
# Filename: P34-35_P74-75.agc
# Purpose: Part of the source code for Comanche, build 055. It
# is part of the source code for the Command Module's
# (CM) Apollo Guidance Computer (AGC), Apollo 11.
# Assembler: yaYUL
# Reference: pp. 460-504
# Contact: Onno Hommes <[email protected]>
# Website: http://www.ibiblio.org/apollo.
# Mod history: 2009-05-10 OH Batch 2 Assignment Comanche Transcription
# 2009-05-23 RSB In DISPLAYE, corrected a CADR GOFLASHR
# to CADR GOFLASH.
#
# The contents of the "Comanche055" files, in general, are transcribed
# from scanned documents.
#
# Assemble revision 055 of AGC program Comanche by NASA
# 2021113-051. April 1, 1969.
#
# This AGC program shall also be referred to as Colossus 2A
#
# Prepared by
# Massachussets Institute of Technology
# 75 Cambridge Parkway
# Cambridge, Massachusetts
#
# under NASA contract NAS 9-4065.
#
# Refer directly to the online document mentioned above for further
# information. Please report any errors to [email protected].
# Page 460
# TRANSFER PHASE INITITIATION (TPI) PROGRAMS (P34 AND P74)
# MOD NO -1 LOG SECTION -- P32-P35, P72-P75
# MOD BY WHITE, P. DATE: 1 JUNE 67
#
# PURPOSE
# (1) TO CALCULATE THE REQUIRED DELTA V AND OTHER INITIAL CONDITIONS
# REQUIRED BY THE ACTIVE VEHICLE FOR EXECUTION OF THE TRANSFER
# PHASE INITITATION (TPI) MANEUVER, GIVEN --
# (A) TIME OF IGNITION TIG (TPI) OR THE ELEVATION ANGLE (E) OF
# THE ACTIVE/PASSIVE VEHICLE LOS AT TIG (TPI).
# (B) CENTRAL ANGLE OF TRANSFER (CENTANG) FROM TIG (TPI) TO
# INTERCEPT TIME (TIG (TPF)).
# (2) TO CALCULATE TIG (TPI) GIVEN E OR E GIVEN TIG (TPI).
# (3) TO CALCULATE THESE PARAMETERS BASED UPON MANEUVER DATA
# APPROVED AND KEYED INTO THE DSKY BY THE ASTRONAUT.
# (4) TO DISPLAY TO THE ASTRONAUT AND THE GROUND CERTAIN DEPENDENT
# VARIABLES ASSOCIATED WITH THE MANEUVER FOR APPROVAL BY THE
# ASTRONAUT/GROUND.
# (5) TO STORE THE TPI TARGET PARAMETERS FOR USE BY THE DESIRED
# THRUSTING PROGRAM.
#
# ASSUMPTIONS
# (1) LM ONLY -- THIS PROGRAM IS BASED UPON PREVIOUS COMPLETION OF
# THE CONSTANT DELTA ALTITUDE (CDH) PROGRAM (P33/P73).
# THEREFORE --
# (A) AT A SELECTED TPI TIME (NOW IN STORAGE) THE LINE OF SIGHT
# BETWEEN THE ACTIVE AND PASSIVE VEHICLES WAS SELECTED TO BE
# A PRESCRIBED ANGLE (E) (NOW IN STORAGE) FROM THE
# HORIZONTAL PLANE DEFINED BY THE ACTIVE VEHICLE POSITION.
# (B) THE TIME BETWEEN CDH IGNITION AND TPI IGNITION WAS
# COMPUTED TO BE GREATER THAN 10 MINUTES.
# (C) THE VARIATION OF TEH ALTITUDE DIFFERENCE BETWEEN THE
# ORBITS WAS MINIMIZED.
# (D) THE PERICENTER ALTITUDES OF ORBITS FOLLOWING CSI AND
# CDH WERE COMPUTED TO BE GREATER THAN 35,000 FT FOR LUNAR
# Page 461
# ORBIT OR 85 NM FOR EARTH ORBIT.
# (E) THE CSI AND CDH MANEUVERS WERE ASSUMED TO BE PARALLEL TO
# THE PLANE OF THE PASSIVE VEHICLE ORBIT. HOWEVER, CREW
# MODIFICATION OF DELTA V (LV) COMPONENTS MAY HAVE RESULTED
# IN AN OUT-OF-PLANE MANEUVER.
# (2) STATE VECTOR UPDATED BY P27 ARE DISALLOWED DURING AUTOMATIC
# STATE VECTOR UPDATING INITIATED BY P20 (SEE ASSUMPTION (4)).
# (3) THIS PROGRAM MUST BE DONE OVER A TRACKING STATION FOR REAL
# TIME GROUND PARTICIPATION IN DATA INPUT AND OUTPUT. COMPUTED
# VARIABLES MAY BE STORED FOR LATER VERIFICATION BY THE GROUND.
# THESE STORAGE CAPABILITIES ARE LIMITED ONLY TO THE PARAMETERS
# FOR ONE THRUSTING MANEUVER AT A TIME EXCEPT FOR CONCENTRIC
# FLIGHT PLAN MANEUVER SEQUENCES.
# (4) THE RENDEZVOUS RADAR MAY OR MAY NOT BE USED TO UPDATE THE LM
# OR CSM STATE VECTORS FOR THIS PROGRAM. IF RADAR USE IS
# DESIRED THE RADAR WAS TURNED ON AND LOCKED ON THE CSM BY
# PREVIOUS SELECTION OF P20. RADAR SIGHTING MARKS WILL BE MADE
# AUTOMATICALLY APPROXIMATELY ONCE A MINUTE WHEN ENABLED BY THE
# TRACK AND UPDATE FLAGS (SEE P20). THE RENDEZVOUS TRACKING
# MARK COUNTER IS ZEROED BY TEH SELECTION OF P20 AND AFTER EACH
# THRUSTING MANEUVER.
# (5) THE ISS NEED NOT BE ON TO COMPLETE THIS PROGRAM.
# (6) THE OPERATION OF THE PROGRAM UTILIZES THE FOLLOWING FLAGS --
#
# ACTIVE VEHICLE FLAG -- DESIGNATES THE VEHICLE WHICH IS
# DOING RENDEZVOUS THRUSTING MANEUVERS TO THE PROGRAM WHICH
# CALCULATES THE MANEUVER PARAMETERS. SET AT THE START OF
# EACH RENDEZVOUS PRE-THRUSTING PROGRAM.
#
# FINAL FLAG -- SELECTS FINAL PROGRAM DISPLAYS AFTER CREW HAS
# SELECTED THE FINAL MANEUVER COMPUTATION CYCLE.
#
# EXTERNAL DELTA V FLAG -- DESIGNATES THE TYPE OF STEERING
# REQUIRED FOR EXECUTION OF THIS MANEUVER BY THE THRUSTING
# PROGRAM SELECTED AFTER COMPLETION OF THIS PROGRAM.
#
# (7) ONCE THE PARAMETERS REQUIRED FOR COMPUTATION OF THE MANEUVER
# HAVE BEEN COMPLETELY SPECIFIED, TEH VALUE OF THE ACTIVE
# VEHICLE CENTRAL ANGLE OF TRANSFER IS COMPUTED AND STORED.
# THIS NUMBER WILL BE AVAILABLE FOR DISPLAY TO THE ASTRONAUT
# THROUGH THE USE OF V06N52.
#
# THE ASTRONAUT WILL CALL THIS DISPLAY TO VERIFY THAT THE
# CENTRAL ANGLE OF TRANSFER OF THE ACTIVE VEHICLE IS NOT WITHIN
# Page 462
# 170 TO 190 DEGREES. IF THE ANGLE IS WITHIN THIS ZONE THE
# ASTRONAUT SHOULD REASSES THE INPUT TARGETING PARAMETERS BASED
# UPON DELTA V AND EXPECTED MANEUVER TIME.
# (8) THIS PROGRAM IS SELECTED BY THE ASTRONAUT BY DSKY ENTRY --
#
# P34 IF THIS VEHICLE IS ACTIVE VEHICLE.
#
# P74 IF THIS VEHICLE IS PASSIVE VEHICLE.
#
# INPUT
# (1) TTPI TIME OF THE TPI MANEUVER.
# (2) ELEV DESIRED LOS ANGLE AT TPI
# (3) CENTANG ORBITAL CENTRAL ANGLE OF THE PASSIVE VEHICLE DURING
# TRANSFER FROM TPI TO TIME OF INTERCEPT
#
# OUTPUT
# (1) TRKMKCNT NUMBER OF MARKS
# (2) TTOGO TIME TO GO
# (3) +MGA MIDDLE GIMBAL ANGLE
# (4) TTPI COMPUTED TIME OF TPI MANEUVER
# OR
# ELEV COMPUTED LOS ANGLE AT TPI
# (5) POSTTPI PERIGEE ALTITUDE AFTER THE TPI MANEUVER
# (6) DELVTPI MAGNITUDE OF DELTA V AT TPI
# (7) DELVTPF MAGNITUDE OF DELTA V AT INTERCEPT
# (8) DVLOS DELTA VELOCITY AT TPI -- LINE OF SIGHT
# (9) DELVLVC DELTA VELOCITY AT TPI -- LOCAL VERTICAL COORDINATES
#
# DOWNLINK
# (1) TTPI TIME OF TPI MANEUVER
# (2) TIG TIME OF TPI MANEUVER
# (3) ELEV DESIRED LOS ANGLE AT TPI
# (4) CENTANG ORBITAL CENTRAL ANGLE OF THE PASSIVE VEHICLE DURING
# TRANSFER FROM TPI TO TIME OF INTERCEPT
# (5) DELVEET3 DELTA VELOCITY AT TPI -- REFERENCE COORDINATES
# (6) TPASS4 TIME OF INTERCEPT
#
# COMMUNICATION TO THRUSTING PROGRAMS
# (1) TIG TIME OF THE TPI MANEUVER
# (2) RTARG OFFSET TARGET POSITION
# (3) TPASS4 TIME OF INTERCEPT
# (4) XDELVFLG RESET TO INDICATE LAMBERT (AIMPOINT) VG COMPUTATION
#
# SUBROUTINES USED
# AVFLAGA
# Page 463
# AVFLAGP
# VNP00H
# DISPLAYE
# SELECTMU
# PRECSET
# S33/34.1
# ALARM
# BANKCALL
# GOFLASH
# GOTOP00H
# TIMETHET
# S34/35.2
# PERIAPO1
# SHIFTR1
# S34/35.5
# VN1645
SETLOC CSI/CDH
BANK
EBANK= SUBEXIT
COUNT 35/P3474
P34 TC AVFLAGA
TC P34/P74A
P74 TC AVFLAGP
P34/P74A TC P20FLGON # SET UPDATFLG, TRACKFLG
CAF V06N37 # TTPI
TC VNP00H # Onno: The scans look like O not zero
TC INTPRET
SSP EXIT
NN
0
TC DISPLAYE # ELEV AND CENTANG
TC INTPRET
CLEAR DLOAD
ETPIFLAG
TTPI
STODL TIG
ELEV
BZE SET
P34/P74B
ETPIFLAG
P34/P74B CALL
SELECTMU
DELELO EQUALS 26D
P34/P74C DLOAD SET
ZEROVECS
ITSWICH
BON CLEAR
ETPIFLAG
# Page 464
SWCHSET
ITSWICH
SWCHSET STORE NOMTPI
INTLOOP DLOAD DAD
TTPI
NOMTPI
STCALL TDEC1
PRECSET
CALL
S33/34.1
BZE EXIT
SWCHCLR
TC ALARM
OCT 611
CAF V05N09
TC BANKCALL
CADR GOFLASH
TC GOTOP00H
TC P34/P74A # PROCEED
TC -7 # V32
SWCHCLR BONCLR BON
ITSWICH
INTLOOP
ETPIFLAG
P34/P74D # DISPLAY TTPI
EXIT
TC DISPLAYE # DISPLAY ELEV AND CENTANG
TC P34/P74E
P34/P74D EXIT
CAF V06N37 # TTPI
TC VNP00H
P34/P74E TC INTPRET
SETPD DLOAD
0D
RTX1
STODL X1
CENTANG
PUSH COS
STODL CSTH
SIN
STOVL SNTH
RPASS3
VSR*
0,2
STOVL RVEC
VPASS3
VSR* SET
0,2
RVSW
# Page 465
STCALL VVEC
TIMETHET
DLOAD
TTPI
STORE INTIME # FOR INITVEL
DAD
T # RENDEZVOUS TIME
STCALL TPASS4 # FOR INITVEL
S34/35.2
VLOAD ABVAL
DELVEET3
STOVL DELVTPI
VPASS4
VSU ABVAL
VTPRIME
STOVL DELVTPF
RACT3
PDVL CALL
VIPRIME
PERIAPO1
CALL
SHIFTR1
STODL POSTTPI
TTPI
STORE TIG
EXIT
CAF V06N58
TC VNP00H
TC INTPRET
CALL
S34/35.5
CALL
VN1645
GOTO
P34/P74C
# Page 466
# RENDEZVOUS MID-COURSE MANEUVER PROGRAMS (P35 AND P75)
# MOD NO -1 LOG SECTION -- P32-P35, P72-P75
# MOD BY WHITE, P. DATE: 1 JUNE 67
#
# PURPOSE
# (1) TO CALCULATE THE REQUIRED DELTA V AND OTHER INITIAL CONDITIONS
# REQUIRED BY THE ACTIVE VEHICLE FOR EXECUTION OF THE NEXT
# MID-COURSE CORRECTION OF THE TRANSFER PHASE OF AN ACTIVE
# VEHICLE RENDEZVOUS.
# (2) TO DISPLAY TO THE ASTRONAUT AND THE GROUND CERTAIN DEPENDENT
# VARIABLES ASSOCIATED WITH THE MANEUVER FOR APPROVAL BY THE
# ASTRONAUT/GROUND.
# (3) TO STORE THE TPM TARGET PARAMETERS FOR USE BY THE DESIRED
# THRUSTING PROGRAM.
#
# ASSUMPTIONS
# (1) THE ISS NEED NOT BE ON TO COMPLETE THIS PROGRAM.
# (2) STATE VECTOR UPDATES BY P27 ARE DISALLOWED DURING AUTOMATIC
# STATE VECTOR UPDATING INITIATED BY P20 (SEE ASSUMPTION (3)).
# (3) THE RENDEZVOUS RADAR IS ON AND IS LOCKED ON THE CSM. THIS WAS
# DONE DURING PREVIOUS SELECTION OF P20. RADAR SIGHTING MARKS
# WILL BE MADE AUTOMATICALLY APPROXIMATELY ONCE A MINUTE WHEN
# ENABLED BY THE TRACK AND UPDATE FLAGS (SEE P20). THE
# RENDEZVOUS TRACKING MARK COUNTER IS ZEROED BY THE SELECTION OF
# P20 AND AFTER EACH THRUSTING MANEUVER.
# (4) THE OPERATION OF THE PROGRAM UTILIZES THE FOLLOWING FLAGS --
#
# ACTIVE VEHICLE FLAG -- DESIGNATES THE VEHICLE WHICH IS
# DOING RENDEZVOUS THRUSTING MANEUVERS TO THE PROGRAM WHICH
# CALCULATES THE MANEUVER PARAMETERS. SET AT THE START OF
# EACH RENDEZVOUS PRE-THRUSTING PROGRAM.
#
# FINAL FLAG -- SELECTS FINAL PROGRAM DISPLAYS AFTER CREW HAS
# SELECTED THE FINAL MANEUVER COMPUTATION CYCLE.
#
# EXTERNAL DELTA V FLAG -- DESIGNATES THE TYPE OF STEERING
# REQUIRED FOR EXECUTION OF THIS MANEUVER BY THE THRUSTING
# PROGRAM SELECTED AFTER COMPLETION OF THIS PROGRAM.
#
# (5) THE TIME OF INTERCEPT (T(INT)) WAS DEFINED BY PREVIOUS
# COMPLETION OF THE TRANSFER PHASE INITIATION (TPI) PROGRAM
# (P34/P74) AND IS PRESENTLY AVAILABLE IN STORAGE.
# Page 467
# (6) ONCE THE PARAMETERS REQUIRED FOR COMPUTATION OF THE MANEUVER
# HAVE BEEN COMPLETELY SPECIFIED, THE VALUE OF THE ACTIVE
# VEHICLE CENTRAL ANGLE OF TRANSFER IS COMPUTED AND STORED.
# THIS NUMBER WILL BE AVAILABLE FOR DISPLAY TO THE ASTRONAUT
# THROUGH THE USE OF V06N52
#
# THE ASTRONAUT WILL CALL THIS DISPLAY TO VERIFY THAT THE
# CENTRAL ANGLE OF TRANSFER OF THE ACTIVE VEHICLE IS NOT WITHIN
# 170 TO 190 DEGREES. IF THE ANGLE IS WITHIN THIS ZONE THE
# ASTRONAUT SHOULD REASSESS THE INPUT TARGETING PARAMETERS BASED
# UPON DELTA V AND EXPECTED MANEUVER TIME.
# (7) THIS PROGRAM IS SELECTED BY THE ASTRONAUT BY DSKY ENTRY --
#
# P35 IF THIS VEHICLE IS ACTIVE VEHICLE.
#
# P75 IF THIS VEHICLE IS PASSIVE VEHICLE.
#
# INPUT
# (1) TPASS4 TIME OF INTERCEPT -- SAVED FROM P34/P74
#
# OUTPUT
# (1) TRKMKCNT NUMBER OF MARKS
# (2) TTOGO TIME TO GO
# (3) +MGA MIDDLE GIMBAL ANGLE
# (4) DVLOS DELTA VELOCITY AT MID -- LINE OF SIGHT
# (5) DELVLVC DELTA VELOCITY AT MID -- LOCAL VERTICAL COORDINATES
#
# DOWNLINK
# (1) TIG TIME OF THE TPM MANEUVER
# (2) DELVEET3 DELTA VELOCITY AT TPM -- REFERENCE COORDINATES
# (3) TPASS4 TIME OF INTERCEPT
#
# COMMUNICATION TO THRUSTING PROGRAMS
# (1) TIG TIME OF THE TPM MANEUVER
# (2) RTARG OFFSET TARGET POSITION
# (3) TPASS4 TIME OF INTERCEPT
# (4) XDELVFLG RESET TO INDICATE LAMBERT (AIMPOINT) VG COMPUTATION.
#
# SUBROUTINES USED
# AVFLAGA
# AVFLAGP
# LOADTIME
# SELECTMU
# PRECSET
# S34/35.1
# S34/35.2
# Page 468
# S34/35.5
# VN1645
COUNT 35/P3575
EBANK= KT
P35 TC AVFLAGA
EXTEND
DCA ATIGINC
TC P35/P75A
P75 TC AVFLAGP
EXTEND
DCA PTIGINC
P35/P75A DXCH KT
TC P20FLGON # SET UPDATFLG, TRACKFLG
TC INTPRET
CALL
SELECTMU
P35/P75B RTB
LOADTIME
STORE TSTRT
DAD
KT
STORE TIG
STORE INTIME # FOR INITVEL
STCALL TDEC1
PRECSET # ADVANCE BOTH VEHICLES
CALL
S34/35.1 # GET NORM AND LOS FOR TRANSFORM
CALL
S34/35.2 # GET DELTA V(LV)
CALL
S34/35.5
CALL
VN1645
GOTO
P35/P75B
# Page 469
# ***** S33/34.1 *****
S33/34.1 STQ SSP
NORMEX
TITER
OCT 40000
DLOAD SETPD
MAX250
0D
STOVL SECMAX
RACT3
STOVL RAPREC
VACT3
STOVL VAPREC
RPASS3
STOVL RPPREC
VPASS3
STORE VPPREC
ELCALC CALL
S34/35.1 # NORMAL AND LOS
VXV PDVL
RACT3 # (RA*VA)*RA 0D
PDVL UNIT # ULOS AT 6D
RACT3
PDVL VPROJ # XCHNJ AND UP
VSL2 BVSU
ULOS
UNIT PDVL # UP AT 0D
DOT PDVL # UP.UN*RA AT 0D
0D # UP IN MPAC
DOT SIGN
ULOS
SL1 ACOS
PDVL DOT # EA AT 0D
ULOS
RACT3
BPL DLOAD
TESTY
DPPOSMAX
DSU PUSH
TESTY BOFF DLOAD
ITSWICH
ELEX
DELEL
STODL DELELO
DSU
ELEV
STORE DELEL
ABS DSU
ELEPS
# Page 470
BMN
TIMEX # COMMERCIALS EVERYWHERE
FIGTIME SLOAD SR1
TITER
BHIZ LXA,1
NORMEX # TOO MANY ITERATIONS
MPAC
SXA,1 VLOAD
TITER
RPASS3
UNIT PDDL
36D
PDVL UNIT
RACT3
PDDL
PDDL PUSH
36D
BDSU
12D
STODL 30D # RP-RA MAGNITUDES
DPHALF
DSU PUSH
ELEV
SIGN BMN
30D
NORMEX
DLOAD COS
DMP DDV
14D
12D
DCOMP # SINCE COS(180-A)=-COS A
STORE 28D
ABS BDSU
DPHALF
BMN VLOAD
NORMEX
UNRM
VXV UNIT
6D # UN*RA
DOT DMP
VACT3
12D
PDVL VXV
0D
VPASS3
VXV UNIT
0D # (RP*VP)*RP
DOT DMP
VPASS3
14D
# Page 471
BDSU
NORM PDVL # NORMALIZED WA-WP 12D
X1
6D
VXV DOT
0D
UNRM # RA*RP.UN 14D
PDVL DOT
0D
6D
SL1 ACOS
SIGN
DSU DAD # ALPHA PI
DPHALF
ELEV
PDDL ACOS
28D
BDSU SIGN
DPHALF
30D # CONTAINS RP-RA
DAD
DMP DDV
TWOPI
DMP
SL* DMP
0 -3,1
PUSH ABS
DSU BMN
SECMAX
OKMAX
DLOAD SIGN # REPLACE TIME WITH MAX TIME SIGNED
SECMAX
PUSH
OKMAX SLOAD BPL # TEST FIRST ITERATION
TITER
REPETE
SSP DLOAD
TITER
OCT 37777
GOTO
STORDELT
REPETE DLOAD DMP
DELEL
DELELO
BPL DLOAD
NEXTES
SECMAX
DMP
THIRD
STODL SECMAX
# Page 472
ABS SR1 # CROSSED OVER SOLUTION
DCOMP GOTO # DT=(-SIGN(DTO)//DT//)/2
RESIGN
NEXTES DLOAD ABS
DELEL
PDDL ABS
DELELO
DSU
BMN DLOAD
REVERS # WRONG DIRECTION
ABS
RESIGN SIGN GOTO
DELTEEO
STORDELT
REVERS DLOAD DCOMP
DELTEEO
PUSH SR1
STORE DELTEEO
DAD
GOTO
ADTIME
STORDELT STORE DELTEEO
ADTIME DAD
NOMTPI # SUM OF DELTA T:S
STORE NOMTPI
VLOAD PDVL
VAPREC
RAPREC
CALL
GOINT
CALL
ACTIVE # STORE NEW RACT3 VACT3
VLOAD PDVL
VPPREC
RPPREC
CALL
GOINT
CALL
PASSIVE # STORE NEW RPASS3 VPASS3
GOTO
ELCALC
ELEX DLOAD DAD
TTPI
NOMTPI
STODL TTPI
BON
ETPIFLAG
TIMEX
STORE ELEV
TIMEX DLOAD GOTO
# Page 473
ZEROVECS
NORMEX
# Page 474
# ***** S34/35.1 *****
# COMPUTE UNIT NORMAL AND LINE OF SIGHT VECTORS GIVEN THE ACTIVE AND
# PASSIVE POS AND VEL AT TIME T3
SETLOC S3435LOC
BANK
S34/35.1 VLOAD VSU
RPASS3
RACT3
UNIT PUSH
STOVL ULOS
RACT3
VXV UNIT
VACT3
STORE UNRM
RVQ
# Page 475
# ***** S34/35.2 *****
# ADVANCE PASSIVE VEH TO RENDEZVOUS TIME AND GET REQ VEL FROM LAMBERT
SETLOC CSI/CDH
BANK
S34/35.2 STQ VLOAD
SUBEXIT
VPASS3
PDVL PDDL
RPASS3
INTIME
PDDL PDDL
TPASS4
TWOPI # CONIC
PDDL BHIZ
NN
S3435.23
DLOAD PDDL
ZEROVECS # PRECISION
S3435.23 CALL
INTINT # GET TARGET VECTOR
S3435.25 STOVL RTARG
VATT
STOVL VPASS4
RTARG
# COMPUTE PHI = PI + (ACOS(UNIT RA.UNIT RP) - PI) SIGN(RA*RP.U)
UNIT PDVL # UNIT RP
RACT3
UNIT PUSH # UNIT RA
VXV DOT
0D
UNRM # RA*RP.U
PDVL
DOT SL1 # UNIT RA.UNIT RP
0D
ACOS SIGN
BPL DAD
NOPIE
DPPOSMAX # REASONABLE TWO PI
NOPIE STODL ACTCENT
TPASS4
DSU
INTIME
STORE DELLT4
SLOAD SETPD
NN # NUMBER OF OFFSETS
0D
PDDL PDVL
EPSFOUR
# Page 476
RACT3
STOVL RINIT
VACT3
STCALL VINIT
INITVEL
CALL
LOMAT
VLOAD MXV
DELVEET3
0D
VSL1
STCALL DELVLVC
SUBEXIT
# Page 477
# ***** S34/35.3 *****
S34/35.3 STQ CALL
NORMEX
LOMAT # GET MATRIX IN PUSH LIST
VLOAD VXM
DELVLVC # NEW DEL V TPI
0D
VSL1
STORE DELVEET3 # SAVE FOR TRANSFORM
VAD PDVL
VACT3 # NEW V REQ
RACT3
PDDL PDDL
TIG
TPASS4
PDDL PUSH
DPPOSMAX
CALL # INTEG. FOR NEW TARGET VEC
INTINT
VLOAD
RATT
STORE RTARG
NOVRWRT VLOAD PUSH
ULOS
VXV VCOMP
UNRM
UNIT PUSH
VXV VSL1
ULOS
PDVL
PDVL MXV
DELVEET3
0D
VSL1
STCALL DVLOS
NORMEX
# Page 478
# ***** S34/35.4 *****
S34/35.4 STQ SETPD NO ASTRONAUT OVERWRITE
NORMEX
0D
GOTO
NOVRWRT
# Page 479
# ***** LOMAT *****
LOMAT VLOAD VCOMP
UNRM
STOVL 6D # Y
RACT3
UNIT VCOMP
STORE 12D
VXV VSL1
UNRM # Z*-Y
STORE 0D
SETPD RVQ
18D
GOINT PDDL PDDL # DO
ZEROVECS # NOT
NOMTPI #
PUSH PUSH # ORDER OR INSERT BEFORE INTINT
INTINT STQ CALL
RTRN
INTSTALL
CLEAR DLOAD
INTYPFLG
BZE SET
+2
INTYPFLG
DLOAD STADR
STODL TDEC1
SET LXA,2
MOONFLAG
RTX2
BON CLEAR
CMOONFLG
ALLSET
MOONFLAG
ALLSET STOVL TET
VSR*
0,2
STOVL RCV
VSR*
0,2
STCALL VCV
INTEGRVS
VLOAD GOTO
RATT
RTRN
# Page 480
# ***** S34/35.5 *****
#
# SUBROUTINES USED
# BANKCALL
# GOFLASH
# GOTOP00H
# S34/35.3
# S34.35.4
# VNP00H
S34/35.5 STQ BON
SUBEXIT
FINALFLG
FLAGON
SET GOTO
UPDATFLG
FLAGOFF
FLAGON VLOAD
DELVLVC
STORE DVLOS # SAVE DELTA V BEFORE DISPLAY
EXIT
CAF V06N81
TC VNP00H
TC INTPRET
VLOAD VSU # TEST FOR OVERWRITE OF COMPUTED
DELVLVC # DELTA V
DVLOS
ABVAL BZE
NOCHG # NO OVERWRITE
CALL
S34/35.3
NOCHG CLEAR VLOAD
XDELVFLG
DELVEET3
STORE DELVSIN
FLAGOFF CALL
S34/35.4
EXIT
CAF V06N59
TC VNP00H
TC INTPRET
GOTO
SUBEXIT
# Page 481
# ***** VN1645 *****
#
# SUBROUTINES USED
# P3XORP7X
# GET+MGA
# BANKCALL
# DELAYJOB
# COMPTGO
# GOFLASHR
# GOTOP00H
# FLAGUP
VN1645 STQ DLOAD
SUBEXIT
DP-.01
STORE +MGA # MGA = -.01
BOFF DLOAD
FINALFLG
GET45
DP-.01
DAD
DP-.01
STORE +MGA # MGA = -.02
BOFF EXIT
REFSMFLG
GET45
TC P3XORP7X
TC +2 # P3X
TC GET45 +1 # P7X
TC INTPRET
VLOAD PUSH
DELVSIN
CALL # COMPUTE MGA
GET+MGA
GET45 EXIT
TC COMPTGO # INITIATE TASK TO UPDATE TTOGO
CA SUBEXIT
TS QSAVED
CAF 1SEC
TC BANKCALL
CADR DELAYJOB
CAF V16N45 # TRKMKCNT, TTOGO, +MGA
TC BANKCALL
CADR GOFLASH
TC KILCLOCK # TERMINATE
TC N45PROC # PROCEED
TC CLUPDATE # RECYCLE -- RETURN FOR INITIAL COMPUTATION
KILCLOCK CA Z
TS DISPDEX
# Page 482
TC GOTOP00H
N45PROC CS FLAGWRD2
MASK BIT6
EXTEND
BZF KILCLOCK # FINALFLG IS SET -- FLASH V37 -- AWAIT NEW PGM
TC PHASCHNG
OCT 04024
TC UPFLAG # SET
ADRES FINALFLG # FINALFLG
CLUPDATE CA Z
TS DISPDEX
TC PHASCHNG
OCT 04024
TC INTPRET
CLEAR GOTO
UPDATFLG
QSAVED
# Page 483
# ***** DISPLAYE *****
#
# SUBROUTINES USED
# BANKCALL
# GOFLASHR
# GOTOP00H
# BLANKET
# ENDOFJOB
DISPLAYE EXTEND
QXCH NORMEX
CAF V06N55
TCR BANKCALL
CADR GOFLASH
TCF GOTOP00H
TC NORMEX
TCF -5
# Page 484
# ***** P3XORP7X *****
P3XORP7X CAF HIGH9
MASK MODREG
EXTEND
BZF +2
INCR Q
RETURN
# ***** VNP00H *****
#
# SUBROUTINES USED
# BANKCALL
# GOFLASH
# GOTOP00H
SETLOC P30SUBS
BANK
VNP00H EXTEND
QXCH RTRN
TS VERBNOUN
CAF VNBANK # ***** THIS ROUTINE MUST REMAIN IN
XCH FBANK # FIXED-FIXED *****
TS TBASE5 # * WATCH OUT *
CA VERBNOUN
TCR BANKCALL
CADR GOFLASH
TCF GOTOP00H
TCF +2
VNBANK TC -5
CA TBASE5
TS FBANK
TC RTRN
# Page 485
# ***** CONSTANTS *****
V06N37 VN 0637
V06N55 VN 0655
V06N58 VN 0658
V06N59 VN 0659
V06N81 VN 0681
V16N45 VN 1645
SETLOC CSI/CDH
BANK
TWOPI 2DEC 6.283185307 B-4
MAX250 2DEC 25 E3 B-28 # RSB 2004 added the B-28. OH 2009 leave?
THIRD 2DEC .333333333