2016-07-31 22:32:55 +00:00
|
|
|
# Copyright: Public domain.
|
|
|
|
# Filename: R60_R62.agc
|
|
|
|
# Purpose: Part of the source code for Luminary 1A build 099.
|
|
|
|
# It is part of the source code for the Lunar Module's (LM)
|
|
|
|
# Apollo Guidance Computer (AGC), for Apollo 11.
|
|
|
|
# Assembler: yaYUL
|
|
|
|
# Contact: Ron Burkey <info@sandroid.org>.
|
|
|
|
# Website: www.ibiblio.org/apollo.
|
|
|
|
# Pages: 472-485
|
2016-12-28 16:11:25 +00:00
|
|
|
# Mod history: 2009-05-17 RSB Adapted from the corresponding
|
|
|
|
# Luminary131 file, using page
|
2016-07-31 22:32:55 +00:00
|
|
|
# images from Luminary 1A.
|
|
|
|
#
|
|
|
|
# This source code has been transcribed or otherwise adapted from
|
|
|
|
# digitized images of a hardcopy from the MIT Museum. The digitization
|
|
|
|
# was performed by Paul Fjeld, and arranged for by Deborah Douglas of
|
|
|
|
# the Museum. Many thanks to both. The images (with suitable reduction
|
|
|
|
# in storage size and consequent reduction in image quality as well) are
|
|
|
|
# available online at www.ibiblio.org/apollo. If for some reason you
|
|
|
|
# find that the images are illegible, contact me at info@sandroid.org
|
|
|
|
# about getting access to the (much) higher-quality images which Paul
|
|
|
|
# actually created.
|
|
|
|
#
|
|
|
|
# Notations on the hardcopy document read, in part:
|
|
|
|
#
|
2020-08-04 01:09:29 +00:00
|
|
|
# Assemble revision 001 of AGC program LMY99 by NASA 2021112-061
|
2016-12-28 16:11:25 +00:00
|
|
|
# 16:27 JULY 14, 1969
|
2016-07-31 22:32:55 +00:00
|
|
|
|
|
|
|
# Page 472
|
2020-11-11 03:00:57 +00:00
|
|
|
# MOD NO: 0 DATE: 1 MAY 1968
|
|
|
|
# MOD BY: DIGITAL DEVEL GROUP LOG SECTION R60,R62
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
|
|
|
# FUNCTIONAL DESCRIPTION:
|
|
|
|
#
|
|
|
|
# CALLED AS A GENERAL SUBROUTINE TO MANEUVER THE LM TO A SPECIFIED
|
|
|
|
# ATTITUDE.
|
|
|
|
#
|
|
|
|
# 1. IF THE 3-AXIS FLAG IS NOT SET THE FINAL CDU ANGLES ARE
|
|
|
|
# CALCULATED (VECPOINT).
|
|
|
|
#
|
|
|
|
# 2. THE FDAI BALL ANGLES (NOUN 18) ARE CALCULATED (BALLANGS).
|
|
|
|
#
|
|
|
|
# 3. REQUEST FLASHING DISPLAY V50 N18 PLEASE PERFORM AUTO MANEUVER.
|
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# 4. IF PRIORITY DISPLAY FLAG IS SET DO A PHASECHANGE. THEN AWAIT
|
2016-07-31 22:32:55 +00:00
|
|
|
# ASTRONAUT RESPONSE.
|
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# 5. DISPLAY RESPONSE RETURNS:
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# A. ENTER - RESET 3-AXIS FLAG AND RETURN TO CLIENT.
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# B. TERMINATE - IF IN P00 GO TO STEP 5A. OTHERWISE CHECK IF R61 IS
|
|
|
|
# THE CALLING PROGRAM. IF IN R61 AN EXIT IS MADE TO GOTOV56. IF
|
|
|
|
# NOT IN R61 AN EXIT IS DONE VIA GOTOPOOH.
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# C. PROCEED - CONTINUE WITH PROGRAM AT STEP 6.
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
|
|
|
# 6. IF THE 3-AXISFLAG IS NOT SET, THE FINAL CDU ANGLES ARE CALCULATED
|
2020-11-11 03:00:57 +00:00
|
|
|
# (VECPOINT).
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
|
|
|
# 7. THE FDAI BALL ANGLES (NOUN 18) ARE CALCULATED (BALLANGS).
|
|
|
|
#
|
|
|
|
# 8. IF THE G+N SWITCH IS NOT SET GO BACK TO STEP 3.
|
2016-12-28 16:11:25 +00:00
|
|
|
#
|
2016-07-31 22:32:55 +00:00
|
|
|
# 9. IF THE AUTO SWITCH IS NOT SET GO BACK TO STEP 3.
|
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# 10. NONFLASHING DISPLAY V06N18 (FDAI ANGLES).
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# 11. DO A PHASECHANGE.
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
|
|
|
# 12. DO A MANEUVER CALCULATION AND ICDU DRIVE ROUTINE TO ACHIEVE FINAL
|
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# GIMBAL ANGLES (GOMANUR).
|
|
|
|
# 13. AT END OF MANEUVER GO TO STEP 3.
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# IF SATISFACTORY MANEUVER STEP 5A EXITS R60.
|
|
|
|
# FOR FURTHER ADJUSTMENT OF THE VEHICLE ATTITUDE ABOUT THE
|
|
|
|
# DESIRED VECTOR, THE ROUTINE MAY BE PERFORMED AGAIN STARTING AT
|
2016-07-31 22:32:55 +00:00
|
|
|
# Page 473
|
2020-11-11 03:00:57 +00:00
|
|
|
# STEP 5C.
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# CALLING SEQUENCE: TC BANKCALL
|
|
|
|
# CADR R60LEM
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# ERASABLE INITIALIZATION REQUIRED : SCAXIS, POINTVSM (FOR VECPOINT)
|
|
|
|
# 3AXISFLG.
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# SUBROUTINES CALLED: VECPOINT, BALLANGS, GOPERF2R, LINUS, GODSPER,
|
|
|
|
# GOMANUR, DOWNFLAG, PHASCHNG, UPFLAG
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# NORMAL EXIT MODES: CAE TEMPR60 (CALLERS RETURN ADDRESS)
|
|
|
|
# TC BANKJUMP
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
|
|
|
# ALARMS: NONE
|
|
|
|
#
|
|
|
|
# OUTPUT: NONE
|
|
|
|
#
|
|
|
|
# DEBRIS: CPHI, CTHETA, CPSI, 3AXISFLG, TBASE2
|
|
|
|
|
|
|
|
BANK 34
|
|
|
|
SETLOC MANUVER
|
|
|
|
BANK
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
EBANK= TEMPR60
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
COUNT* $$/R06
|
|
|
|
R60LEM TC MAKECADR
|
|
|
|
TS TEMPR60
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
REDOMANN CAF 3AXISBIT
|
|
|
|
MASK FLAGWRD5 # IS 3-AXIS FLAG SET
|
|
|
|
CCS A
|
|
|
|
TCF TOBALL # YES
|
|
|
|
TC INTPRET
|
|
|
|
CALL
|
|
|
|
VECPOINT # TO COMPUTE FINAL ANGLES
|
2020-11-11 03:00:57 +00:00
|
|
|
STORE CPHI # STORE FINAL ANGLES - CPHI,CTHETA,CPSI
|
2016-07-31 22:32:55 +00:00
|
|
|
EXIT
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TOBALL TC BANKCALL
|
|
|
|
CADR BALLANGS # TO CONVERT ANGLES TO FDAI
|
|
|
|
TOBALLA CAF V06N18
|
|
|
|
TC BANKCALL
|
|
|
|
CADR GOPERF2R # DISPLAY PLEASE PERFORM AUTO MANEUVER
|
|
|
|
TC R61TEST
|
|
|
|
TC REDOMANC # PROCEED
|
2020-11-11 03:00:57 +00:00
|
|
|
TC ENDMANU1 # ENTER I.E. FINISHED WITH R60
|
2016-07-31 22:32:55 +00:00
|
|
|
# Page 474
|
|
|
|
TC CHKLINUS # TO CHECK FOR PRIORITY DISPLAYS
|
|
|
|
TC ENDOFJOB
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
REDOMANC CAF 3AXISBIT
|
|
|
|
MASK FLAGWRD5 # IS 3-AXIS FLAG SET
|
|
|
|
CCS A
|
|
|
|
TCF TOBALLC # YES
|
|
|
|
TC INTPRET
|
|
|
|
CALL
|
|
|
|
VECPOINT # TO COMPUTE FINAL ANGLES
|
|
|
|
STORE CPHI # STORE ANGLES
|
|
|
|
EXIT
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TOBALLC TC BANKCALL
|
|
|
|
CADR BALLANGS # TO CONVERT ANGLES TO FDAI
|
|
|
|
TC G+N,AUTO # CHECK AUTO MODE
|
|
|
|
CCS A
|
|
|
|
TCF TOBALLA # NOT AUTO, GO REREQUEST AUTO MANEUVER.
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
AUTOMANV CAF V06N18 # STATIC DISPLAY DURING AUTO MANEUVER
|
|
|
|
TC BANKCALL
|
|
|
|
CADR GODSPR
|
|
|
|
TC CHKLINUS # TO CHECK FOR PRIORITY DISPLAYS
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
STARTMNV TC BANKCALL # PERFORM MANEUVER VIA KALCMANU
|
|
|
|
CADR GOMANUR
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
ENDMANUV TCF TOBALLA # FINISHED MANEUVER.
|
|
|
|
ENDMANU1 TC DOWNFLAG # RESET 3-AXIS FLAG
|
|
|
|
ADRES 3AXISFLG
|
|
|
|
CAE TEMPR60
|
|
|
|
TC BANKJUMP
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CHKLINUS CS FLAGWRD4
|
|
|
|
MASK PDSPFBIT # IS PRIORITY DISPLAY FLAG SET?
|
|
|
|
CCS A
|
2020-11-11 03:00:57 +00:00
|
|
|
TC Q # NO - EXIT
|
2016-07-31 22:32:55 +00:00
|
|
|
CA Q
|
|
|
|
TS MPAC +2 # SAVE RETURN
|
|
|
|
CS THREE # OBTAIN LOCATION FOR RESTART
|
2020-11-11 03:00:57 +00:00
|
|
|
AD BUF2 # HOLDS Q OF LAST DISPLAY
|
2016-07-31 22:32:55 +00:00
|
|
|
TS TBASE2
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TC PHASCHNG
|
|
|
|
OCT 00132
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CAF BIT7
|
|
|
|
TC LINUS # GO SET BITS FOR PRIORITY DISPLAY
|
|
|
|
TC MPAC +2
|
2016-12-28 16:11:25 +00:00
|
|
|
|
|
|
|
# Page 475
|
2016-07-31 22:32:55 +00:00
|
|
|
RELINUS CAF PRIO26 # RESTORE ORIGINAL PRIORITY
|
|
|
|
TC PRIOCHNG
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CAF TRACKBIT # DON'T CONTINUE R60 UNLESS TRACKFLAG ON.
|
|
|
|
MASK FLAGWRD1
|
|
|
|
CCS A
|
|
|
|
TCF RER60
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CAF RNDVZBIT # IS IT P20?
|
|
|
|
MASK FLAGWRD0
|
|
|
|
CCS A
|
|
|
|
TC +4 # YES
|
|
|
|
TC PHASCHNG # NO, MUST BE P25, SET 2.11 SPOT
|
|
|
|
OCT 40112
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TC ENDOFJOB
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TC PHASCHNG # SET 2.7 SPOT FOR P20
|
|
|
|
OCT 40072
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TC ENDOFJOB
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
RER60 TC UPFLAG # SET PRIO DISPLAY FLAG AFTER RESTART
|
|
|
|
ADRES PDSPFLAG
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TC TBASE2
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
R61TEST CA MODREG # IF WE ARE IN P00 IT MUST BE V49 OR V89
|
|
|
|
EXTEND
|
|
|
|
BZF ENDMANU1 # THUS WE GO TO ENDEXT VIA USER
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2020-11-11 03:00:57 +00:00
|
|
|
CA FLAGWRD4 # ARE WE IN R61 (P20 OR P25)
|
2016-07-31 22:32:55 +00:00
|
|
|
MASK PDSPFBIT
|
|
|
|
EXTEND
|
2020-03-04 17:17:16 +00:00
|
|
|
BZF GOTOPOOH # NO
|
2016-07-31 22:32:55 +00:00
|
|
|
TC GOTOV56 # YES
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
BIT14+7 OCT 20100
|
|
|
|
OCT203 OCT 203
|
|
|
|
V06N18 VN 0618
|
|
|
|
|
2020-11-11 03:00:57 +00:00
|
|
|
# SUBROUTINE TO CHECK FOR G+N CONTROL. AUTO STABILIZATION
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# RETURNS WITH C(A) = + IF NOT SET FOR G+N, AUTO
|
|
|
|
# RETURNS WITH C(A) = +0 IF SWITCHES ARE SET
|
2016-07-31 22:32:55 +00:00
|
|
|
|
|
|
|
G+N,AUTO EXTEND
|
|
|
|
READ CHAN30
|
|
|
|
MASK BIT10
|
|
|
|
CCS A
|
2020-11-11 03:00:57 +00:00
|
|
|
TC Q # NOT IN G+N C(A) = +
|
2016-12-28 16:11:25 +00:00
|
|
|
# Page 476
|
2016-07-31 22:32:55 +00:00
|
|
|
ISITAUTO EXTEND # CHECK FOR AUTO MODE
|
|
|
|
READ CHAN31
|
|
|
|
MASK BIT14
|
2020-11-11 03:00:57 +00:00
|
|
|
TC Q # (+) = NOT IN AUTO, (+0) = AOK
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
# Page 477
|
|
|
|
# PROGRAM DESCRIPTION BALLANGS
|
2020-11-11 03:00:57 +00:00
|
|
|
# MOD NO. LOG SECTION R60,R62
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# WRITTEN BY RAMA M.AIYAWAR
|
2016-07-31 22:32:55 +00:00
|
|
|
# FUNCTIONAL DESCRIPTION
|
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# COMPUTES LM FDAI BALL DISPLAY ANGLES
|
2016-07-31 22:32:55 +00:00
|
|
|
# CALLING SEQUENCE
|
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# TC BALLANGS
|
2016-07-31 22:32:55 +00:00
|
|
|
# NORMAL EXIT MODE
|
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# TC BALLEXIT # (SAVED Q)
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# ALARM OR EXIT MODE NIL
|
2016-07-31 22:32:55 +00:00
|
|
|
# SUBROUTINES CALLED
|
2020-11-11 03:00:57 +00:00
|
|
|
# CD*TR*G
|
|
|
|
# ARCTAN
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
|
|
|
# INPUT
|
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# CPHI,CTHETA,CPSI ARE THE ANGLES CORRESPONDING TO AOG,AIG,AMG. THEY ARE
|
|
|
|
# SP,2S COMPLIMENT SCALED TO HALF REVOLUTION.
|
2016-07-31 22:32:55 +00:00
|
|
|
# OUTPUT
|
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# FDAIX,FDAIY,FDAIZ ARE THE REQUIRED BALL ANGLES SCALED TO HALF REVOLUTION
|
|
|
|
# SP,2S COMPLIMENT.
|
|
|
|
# THESE ANGLES WILL BE DISPLAYED AS DEGREES AND HUNDREDTHS. IN THE ORDER ROLL, PITCH, YAW, USING NOUNS 18 & 19.
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
|
|
|
# ERASABLE INITIALIZATION REQUIRED
|
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# CPHI,CTHETA,CPSI EACH A SP REGISTER
|
2016-07-31 22:32:55 +00:00
|
|
|
# DEBRIS
|
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# A,L,Q,MPAC,SINCDU,COSCDU,PUSHLIS,BALLEXIT
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
#
|
|
|
|
# NOMENCLATURE: CPHI, CTHETA, & CPSI REPRESENT THE OUTER, INNER, & MIDDLE GIMBAL ANGLES, RESPECTIVELY; OR
|
|
|
|
# EQUIVALENTLY, CDUX, CDUY, & CDUZ.
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
|
|
|
# NOTE: ARCTAN CHECKS FOR OVERFLOW AND SHOULD BE ABLE TO HANDLE ANY SINGULARITIES.
|
|
|
|
|
|
|
|
SETLOC BAWLANGS
|
|
|
|
BANK
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
COUNT* $$/BALL
|
|
|
|
BALLANGS TC MAKECADR
|
|
|
|
TS BALLEXIT
|
|
|
|
CA CPHI
|
|
|
|
# Page 478
|
|
|
|
TS CDUSPOT +4
|
|
|
|
CA CTHETA
|
|
|
|
TS CDUSPOT
|
|
|
|
CA CPSI
|
|
|
|
TS CDUSPOT +2
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TC INTPRET
|
|
|
|
SETPD CALL
|
|
|
|
0D
|
|
|
|
CD*TR*G
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
DLOAD DMP
|
|
|
|
SINCDUX # SIN (OGA)
|
|
|
|
COSCDUZ # COS (MGA)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
SL1 DCOMP # SCALE
|
|
|
|
ARCSIN PDDL # YAW = ARCSIN(-SXCZ) INTO 0 PD
|
2016-12-28 16:11:25 +00:00
|
|
|
SINCDUZ
|
2016-07-31 22:32:55 +00:00
|
|
|
STODL SINTH # (SINTH = 18D IN PD)
|
|
|
|
COSCDUZ
|
|
|
|
DMP SL1 # RESCALE
|
|
|
|
COSCDUX
|
2020-11-11 03:00:57 +00:00
|
|
|
STCALL COSTH # (COSTH= 16D IN PD)
|
2016-07-31 22:32:55 +00:00
|
|
|
ARCTAN
|
|
|
|
PDDL DMP # ROLL = ARCTAN(SZ/CZCX) INTO 2 PD
|
|
|
|
SINCDUZ
|
|
|
|
SINCDUX
|
|
|
|
SL2 PUSH # SXSZ INTO 4 PD
|
|
|
|
DMP PDDL # SXSZCY INTO 4 PD
|
|
|
|
COSCDUY
|
|
|
|
DMP PDDL # SXSZSY INTO 6 PD
|
|
|
|
SINCDUY
|
|
|
|
COSCDUX
|
|
|
|
DMP SL1 # CXCY
|
|
|
|
COSCDUY
|
2020-11-11 03:00:57 +00:00
|
|
|
DSU STADR # PULL UP FROM 6 PD
|
2016-07-31 22:32:55 +00:00
|
|
|
STODL COSTH # COSTH = CXCY - SXSZSY
|
|
|
|
SINCDUY
|
|
|
|
DMP SL1
|
|
|
|
COSCDUX # CXSY
|
2020-11-11 03:00:57 +00:00
|
|
|
DAD STADR # PULL UP FROM 4 PD
|
2016-07-31 22:32:55 +00:00
|
|
|
STCALL SINTH # SINTH = CXSY + SXSZCY
|
|
|
|
ARCTAN # RETURNS WITH D(MPAC) = PITCH
|
2020-11-11 03:00:57 +00:00
|
|
|
PDDL VDEF # PITCH INTO 2 PD, ROLL INTO MPAC FROM 2PD
|
2016-07-31 22:32:55 +00:00
|
|
|
RTB # VDEF MAKES V(MPAC) = ROLL, PITCH, YAW
|
|
|
|
V1STO2S
|
|
|
|
STORE FDAIX # MODE IS TP
|
|
|
|
EXIT
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
ENDBALL CA BALLEXIT
|
|
|
|
|
|
|
|
# Page 479
|
|
|
|
TC BANKJUMP
|
|
|
|
|
|
|
|
# Page 480
|
2020-11-11 03:00:57 +00:00
|
|
|
# PROGRAM DESCRIPTION - VECPOINT
|
|
|
|
#
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# THIS INTERPRETIVE SUBROUTINE MAY BE USED TO POINT A SPACECRAFT AXIS IN A DESIRED DIRECTION. THE AXIS
|
2016-07-31 22:32:55 +00:00
|
|
|
# TO BE POINTED MUST APPEAR AS A HALF UNIT DOUBLE PRECISION VECTOR IN SUCCESSIVE LOCATIONS OF ERASABLE MEMORY
|
|
|
|
# BEGINNING WITH THE LOCATION CALLED SCAXIS. THE COMPONENTS OF THIS VECTOR ARE GIVEN IN SPACECRAFT COORDINATES.
|
|
|
|
# THE DIRECTION IN WHICH THIS AXIS IS TO BE POINTED MUST APPEAR AS A HALF UNIT DOUBLE PRECISION VECTOR IN
|
|
|
|
# SUCCESSIVE LOCATIONS OF ERASABLE MEMORY BEGINNING WITH THE ADDRESS CALLED POINTVSM. THE COMPONENTS OF THIS
|
2020-11-11 03:00:57 +00:00
|
|
|
# VECTOR ARE GIVEN IN STABLE MEMBER COORDINATES. WITH THIS INFORMATION VECPOINT COMPUTES A SET OF THREE GIMBAL
|
|
|
|
# ANGLES (2S COMPLEMENT) CORESPONDING TO THE CROSS-PRODUCT ROTATION BETWE EN SCAXIS AND POINTVSM AND STORES THEM
|
2016-07-31 22:32:55 +00:00
|
|
|
# IN T(MPAC) BEFORE RETURNING TO THE CALLER.
|
2020-11-11 03:00:57 +00:00
|
|
|
# THIS ROTATION, HOWEVER, MAY BRING THE S/C INTO GIMBAL LOCK. WHEN POINTING A VECTOR IN THE Y-Z PLANE,
|
2016-07-31 22:32:55 +00:00
|
|
|
# THE TRANSPONDER AXIS, OR THE AOT FOR THE LEM, THE PROGRAM WILL CORRECT THIS PROBLEM BY ROTATING THE CROSS-
|
|
|
|
# PRODUCT ATTITUDE ABOUT POINTVSM BY A FIXED AMOUNT SUFFICIENT TO ROTATE THE DESIRED S/C ATTITUDE OUT OF GIMBAL
|
2020-11-11 03:00:57 +00:00
|
|
|
# LOCK. IF THE AXIS TO BE POINTED IS MORE THAN 40.6 DEGREES BUT LESS THAN 60.5 DEG FROM THE +X (OR-X) AXIS,
|
|
|
|
# THE ADDITIONAL ROTATION TO AVOID GIMAL LOCK IS 35 DEGREES. IF THE AXIS IS MORE THAN 60.5 DEGEES FROM +X (OR -X)
|
2016-07-31 22:32:55 +00:00
|
|
|
# THE ADDITIONAL ROTATION IS 35 DEGREES. THE GIMBAL ANGLES CORRESPONDING TO THIS ATTITUDE ARE THEN COMPUTED AND
|
2020-11-11 03:00:57 +00:00
|
|
|
# STORED AS 2S COMPLIMENT ANGLES IN T(MPAC) BEFORE RETURNING TO THE CALLER.
|
|
|
|
# WHEN POINTING THE X-AXIS, OR THE THRUST VECTOR, OR ANY VECTOR WITHIN 40.6 DEG OF THE X-AXIS, VECPOINT
|
2016-07-31 22:32:55 +00:00
|
|
|
# CANNOT CORRECT FOR A CROSS-PRODUCT ROTATION INTO GIMBAL LOCK. IN THIS CASE A PLATFORM REALIGNMENT WOULD BE
|
|
|
|
# REQUIRED TO POINT THE VECTOR IN THE DESIRED DIRECTION. AT PRESENT NO INDICATION IS GIVEN FOR THIS SITUATION
|
|
|
|
# EXCEPT THAT THE FINAL MIDDLE GIMBAL ANGLE IN MPAC +2 IS GREATER THAN 59 DEGREES.
|
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# CALLING SEQUENCE -
|
|
|
|
# 1) LOAD SCAXIS, POINTVSM
|
|
|
|
# 2) CALL
|
|
|
|
# VECPOINT
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# RETURNS WITH
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# 1) DESIRED OUTER GIMBAL ANGLE IN MPAC
|
|
|
|
# 2) DESIRED INNER GIMBAL ANGLE IN MPAC +1
|
|
|
|
# 3) DESIRED MIDDLE GIMBAL ANGLE IN MPAC +2
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# ERASABLES USED -
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# 1) SCAXIS 6
|
|
|
|
# 2) POINTVSM 6
|
|
|
|
# 3) MIS 18
|
|
|
|
# 4) DEL 18
|
|
|
|
# 5) COF 6
|
|
|
|
# 6) VECQTEMP 1
|
|
|
|
# 7) ALL OF VAC AREA 43
|
2016-07-31 22:32:55 +00:00
|
|
|
#
|
2020-11-11 03:00:57 +00:00
|
|
|
# TOTAL 99
|
2016-07-31 22:32:55 +00:00
|
|
|
|
|
|
|
SETLOC VECPT
|
|
|
|
BANK
|
|
|
|
# Page 481
|
|
|
|
COUNT* $$/VECPT
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
EBANK= BCDU
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
VECPNT1 STQ BOV # THIS ENTRY USES DESIRED CDUS
|
2020-11-11 03:00:57 +00:00
|
|
|
VECQTEMP # NOT PRESENT-ENTER WITH CDUD'S IN MPAC
|
2016-07-31 22:32:55 +00:00
|
|
|
VECPNT2
|
|
|
|
VECPNT2 AXC,2 GOTO
|
|
|
|
MIS
|
|
|
|
STORANG
|
|
|
|
VECPOINT STQ BOV # SAVE RETURN ADDRESS
|
|
|
|
VECQTEMP
|
|
|
|
VECLEAR # AND CLEAR OVFIND
|
|
|
|
VECLEAR AXC,2 RTB
|
|
|
|
MIS # READ THE PRESENT CDU ANGLES AND
|
|
|
|
READCDUK # STORE THEM IN PD25, 26, 27
|
|
|
|
STORANG STCALL 25D
|
|
|
|
CDUTODCM # S/C AXES TO STABLE MEMBER AXES (MIS)
|
|
|
|
VLOAD VXM
|
|
|
|
POINTVSM # RESOLVE THE POINTING DIRECTION VF INTO
|
2020-11-11 03:00:57 +00:00
|
|
|
MIS # INITIAL S/C AXES ( VF = POINTVSM)
|
2016-07-31 22:32:55 +00:00
|
|
|
UNIT
|
|
|
|
STORE 28D
|
|
|
|
# PD 28 29 30 31 32 33
|
|
|
|
VXV UNIT # TAKE THE CROSS PRODUCT VF X VI
|
|
|
|
SCAXIS # WHERE VI = SCAXIS
|
|
|
|
BOV VCOMP
|
|
|
|
PICKAXIS
|
|
|
|
STODL COF # CHECK MAGNITUDE
|
|
|
|
36D # OF CROSS PRODUCT
|
|
|
|
DSU BMN # VECTOR, IF LESS
|
|
|
|
DPB-14 # THAN B-14 ASSUME
|
|
|
|
PICKAXIS # UNIT OPERATION
|
2020-11-11 03:00:57 +00:00
|
|
|
VLOAD DOT # INVALID.
|
2016-07-31 22:32:55 +00:00
|
|
|
SCAXIS
|
|
|
|
28D
|
|
|
|
SL1 ARCCOS
|
|
|
|
COMPMATX CALL # NOW COMPUTE THE TRANSFORMATION FROM
|
2020-11-11 03:00:57 +00:00
|
|
|
DELCOMP # FINAL S/C AXES TO INITIAL S/C AXES MFI
|
2016-07-31 22:32:55 +00:00
|
|
|
AXC,1 AXC,2
|
|
|
|
MIS # COMPUTE THE TRANSFORMATION FROM FINAL
|
|
|
|
KEL # S/C AXES TO STABLE MEMBER AXES
|
|
|
|
CALL # MFS = MIS MFI
|
|
|
|
MXM3 # (IN PD LIST)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
DLOAD ABS
|
2020-11-11 03:00:57 +00:00
|
|
|
6 # MFS6 = SIN(CPSI) $2
|
2016-07-31 22:32:55 +00:00
|
|
|
DSU BMN
|
2020-11-11 03:00:57 +00:00
|
|
|
SINGIMLC # = SIN(59 DEGS) $2
|
|
|
|
FINDGIMB # /CPSI/ LESS THAN 59 DEGS
|
2016-07-31 22:32:55 +00:00
|
|
|
# Page 482
|
2020-11-11 03:00:57 +00:00
|
|
|
# I.E. DESIRED ATTITUDE NOT IN GIMBAL LOCK
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
DLOAD ABS # CHECK TO SEE IF WE ARE POINTING
|
|
|
|
SCAXIS # THE THRUST AXIS
|
|
|
|
DSU BPL
|
2020-11-11 03:00:57 +00:00
|
|
|
SINVEC1 # SIN 49.4 DEGS $2
|
2016-07-31 22:32:55 +00:00
|
|
|
FINDGIMB # IF SO, WE ARE TRYING TO POINT IT INTO
|
|
|
|
VLOAD # GIMBAL LOCK, ABORT COULD GO HERE
|
|
|
|
STADR
|
2020-11-11 03:00:57 +00:00
|
|
|
STOVL MIS +12D
|
2016-07-31 22:32:55 +00:00
|
|
|
STADR # STORE MFS (IN PD LIST) IN MIS
|
2020-11-11 03:00:57 +00:00
|
|
|
STOVL MIS +6
|
2016-07-31 22:32:55 +00:00
|
|
|
STADR
|
|
|
|
STOVL MIS
|
2020-11-11 03:00:57 +00:00
|
|
|
MIS +6 # INNER GIMBAL AXIS IN FINAL S/C AXES
|
2016-07-31 22:32:55 +00:00
|
|
|
BPL VCOMP # LOCATE THE IG AXIS DIRECTION CLOSEST TO
|
|
|
|
IGSAMEX # FINAL X S/C AXIS
|
2016-12-28 16:11:25 +00:00
|
|
|
|
|
|
|
IGSAMEX VXV BMN # FIND THE SHORTEST WAY OF ROTATING THE
|
|
|
|
SCAXIS # S/C OUT OF GIMBAL LOCK BY A ROTATION
|
2020-11-11 03:00:57 +00:00
|
|
|
U=SCAXIS # ABOUT +- SCAXIS, I.E. IF (IG (SGN MFS3)
|
2016-07-31 22:32:55 +00:00
|
|
|
# X SCAXIS . XF) LESS THAN 0, U = SCAXIS
|
2020-11-11 03:00:57 +00:00
|
|
|
# OTHERWISE U = -SCAXIS
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
VLOAD VCOMP
|
|
|
|
SCAXIS
|
|
|
|
STCALL COF # ROTATE ABOUT -SCAXIS
|
|
|
|
CHEKAXIS
|
|
|
|
U=SCAXIS VLOAD
|
|
|
|
SCAXIS
|
|
|
|
STORE COF # ROTATE ABOUT + SCAXIS
|
|
|
|
CHEKAXIS DLOAD ABS
|
|
|
|
SCAXIS # SEE IF WE ARE POINTING THE AOT
|
|
|
|
DSU BPL
|
2020-11-11 03:00:57 +00:00
|
|
|
SINVEC2 # SIN 29.5 DEGS $2
|
2016-07-31 22:32:55 +00:00
|
|
|
PICKANG1 # IF SO, ROTATE 50 DEGS ABOUT +- SCAXIS
|
|
|
|
DLOAD GOTO # IF NOT, MUST BE POINTING THE TRANSPONDER
|
|
|
|
VECANG2 # OR SOME VECTOR IN THE Y, OR Z PLANE
|
|
|
|
COMPMFSN # IN THIS CASE ROTATE 35 DEGS TO GET OUT
|
|
|
|
# OF GIMBAL LOCK (VECANG2 $360)
|
|
|
|
PICKANG1 DLOAD
|
2020-11-11 03:00:57 +00:00
|
|
|
VECANG1 # = 50 DEGS $ 360
|
2016-07-31 22:32:55 +00:00
|
|
|
COMPMFSN CALL
|
|
|
|
DELCOMP # COMPUTE THE ROTATION ABOUT SCAXIS TO
|
|
|
|
AXC,1 AXC,2 # BRING MFS OUT OF GIMBAL LOCK
|
|
|
|
MIS
|
|
|
|
KEL
|
|
|
|
CALL # COMPUTE THE NEW TRANSFORMATION FROM
|
|
|
|
MXM3 # DESIRED S/C AXES TO STABLE MEMBER AXES
|
|
|
|
# WHICH WILL ALIGN VI WITH VF AND AVOID
|
|
|
|
# Page 483
|
|
|
|
# GIMBAL LOCK
|
|
|
|
FINDGIMB AXC,1 CALL
|
|
|
|
0 # EXTRACT THE COMMANDED CDU ANGLES FROM
|
|
|
|
DCMTOCDU # THIS MATRIX
|
|
|
|
RTB SETPD
|
2020-11-11 03:00:57 +00:00
|
|
|
V1STO2S # CONVERT TO 2:S COMPLEMENT
|
2016-07-31 22:32:55 +00:00
|
|
|
0
|
|
|
|
GOTO
|
|
|
|
VECQTEMP # RETURN TO CALLER
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2020-11-11 03:00:57 +00:00
|
|
|
PICKAXIS VLOAD DOT # IF VF X VI = 0, FIND VF . VI
|
2016-07-31 22:32:55 +00:00
|
|
|
28D
|
|
|
|
SCAXIS
|
|
|
|
BMN TLOAD
|
|
|
|
ROT180
|
|
|
|
25D
|
|
|
|
GOTO # IF VF = VI, CDU DESIRED = PRESENT CDU
|
|
|
|
VECQTEMP # PRESENT CDU ANGLES
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
BANK 35
|
|
|
|
SETLOC MANUVER1
|
|
|
|
BANK
|
|
|
|
ROT180 VLOAD VXV # IF VF, VI ANTIPARALLEL, 180 DEG ROTATION
|
2020-11-11 03:00:57 +00:00
|
|
|
MIS +6 # IS REQUIRED. Y STABLE MEMBER AXIS IN
|
2016-07-31 22:32:55 +00:00
|
|
|
HIDPHALF # INITIAL S/C AXES.
|
|
|
|
UNIT VXV # FIND Y(SM) X X(I)
|
|
|
|
SCAXIS # FIND UNIT(VI X UNIT(Y(SM) X X(I)))
|
2020-11-11 03:00:57 +00:00
|
|
|
UNIT BOV # I.E. PICK A VECTOR IN THE PLANE OF X(I),
|
2016-07-31 22:32:55 +00:00
|
|
|
PICKX # Y(SM) PERPENDICULAR TO VI
|
|
|
|
STODL COF
|
|
|
|
36D # CHECK MAGNITUDE
|
|
|
|
DSU BMN # OF THIS VECTOR.
|
|
|
|
DPB-14 # IF LESS THAN B-14,
|
|
|
|
PICKX # PICK X-AXIS.
|
|
|
|
VLOAD
|
|
|
|
COF
|
|
|
|
XROT STODL COF
|
|
|
|
HIDPHALF
|
|
|
|
GOTO
|
|
|
|
COMPMATX
|
|
|
|
PICKX VLOAD GOTO # PICK THE XAXIS IN THIS CASE
|
|
|
|
HIDPHALF
|
|
|
|
XROT
|
2020-11-11 03:00:57 +00:00
|
|
|
SINGIMLC 2DEC .4285836003 # =SIN(59) $2
|
2016-07-31 22:32:55 +00:00
|
|
|
|
2020-11-11 03:00:57 +00:00
|
|
|
SINVEC1 2DEC .3796356537 # =SIN(49.4) $2
|
2016-07-31 22:32:55 +00:00
|
|
|
|
2020-11-11 03:00:57 +00:00
|
|
|
SINVEC2 2DEC .2462117800 # =SIN(29.5) $2
|
2016-07-31 22:32:55 +00:00
|
|
|
|
2020-11-11 03:00:57 +00:00
|
|
|
VECANG1 2DEC .1388888889 # = 50 DEGREES $360
|
2016-07-31 22:32:55 +00:00
|
|
|
# Page 484
|
2020-11-11 03:00:57 +00:00
|
|
|
VECANG2 2DEC .09722222222 # = 35 DEGREES $360
|
2016-07-31 22:32:55 +00:00
|
|
|
|
2020-11-11 03:00:57 +00:00
|
|
|
1BITDP OCT 0 # KEEP THIS BEFORE DPB(-14) *********
|
2016-07-31 22:32:55 +00:00
|
|
|
DPB-14 OCT 00001
|
|
|
|
OCT 00000
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
# Page 485
|
|
|
|
# ROUTINE FOR INITIATING AUTOMATIC MANEUVER VIA KEYBOARD (V49)
|
|
|
|
|
|
|
|
BANK 34
|
|
|
|
SETLOC R62
|
|
|
|
BANK
|
|
|
|
EBANK= BCDU
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
COUNT* $$/R62
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
R62DISP EQUALS R62FLASH
|
|
|
|
|
|
|
|
R62FLASH CAF V06N22 # FLASH V06N22 AND
|
|
|
|
TC BANKCALL # ICDU ANGLES
|
|
|
|
CADR GOFLASH
|
|
|
|
TCF ENDEXT # TERMINATE
|
|
|
|
TCF GOMOVE # PROCEED
|
|
|
|
TCF R62FLASH # ENTER
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
# ASTRONAUT MAY LOAD NEW ICDUS AT THIS
|
2020-11-11 03:00:57 +00:00
|
|
|
# POINT
|
2016-07-31 22:32:55 +00:00
|
|
|
GOMOVE TC UPFLAG # SET FOR 3-AXIS MANEUVER
|
|
|
|
ADRES 3AXISFLG
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TC BANKCALL
|
|
|
|
CADR R60LEM
|
|
|
|
TCF ENDEXT # END R62
|