2016-07-31 22:32:55 +00:00
|
|
|
# Copyright: Public domain.
|
|
|
|
# Filename: IMU_COMPENSATION_PACKAGE.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: 326-337
|
2016-12-28 16:11:25 +00:00
|
|
|
# Mod history: 2009-05-16 RSB Adapted from the corresponding
|
|
|
|
# Luminary131 file, using page
|
2016-07-31 22:32:55 +00:00
|
|
|
# images from Luminary 1A.
|
|
|
|
# 2009-06-07 RSB Corrected a typo.
|
|
|
|
#
|
|
|
|
# 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 326
|
|
|
|
BANK 7
|
|
|
|
SETLOC IMUCOMP
|
|
|
|
BANK
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
EBANK= NBDX
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
COUNT* $$/ICOMP
|
|
|
|
1/PIPA CAF LGCOMP # SAVE EBANK OF CALLING PROGRAM
|
|
|
|
XCH EBANK
|
|
|
|
TS MODE
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CCS GCOMPSW # BYPASS IF GCOMPSW NEGATIVE
|
|
|
|
TCF +3
|
|
|
|
TCF +2
|
|
|
|
TCF IRIG1 # RETURN
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
1/PIPA1 CAF FOUR # PIPAZ, PIPAY, PIPAX
|
2020-10-14 16:55:46 +00:00
|
|
|
TS BUF +2
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
INDEX BUF +2
|
2016-07-31 22:32:55 +00:00
|
|
|
CA PIPASCF # (P.P.M.) X 2(-9)
|
|
|
|
EXTEND
|
2020-10-14 16:55:46 +00:00
|
|
|
INDEX BUF +2
|
2016-07-31 22:32:55 +00:00
|
|
|
MP DELVX # (PP) X 2(+14) NOW (PIPA PULSES) X 2(+5)
|
|
|
|
TS Q # SAVE MAJOR PART
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CA L # MINOR PART
|
|
|
|
EXTEND
|
2020-10-14 16:55:46 +00:00
|
|
|
MP BIT6 # SCALE 2(+9) SHIFT RIGHT 9
|
|
|
|
INDEX BUF +2
|
|
|
|
TS DELVX +1 # FRACTIONAL PIPA PULSES SCALED 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CA Q # MAJOR PART
|
|
|
|
EXTEND
|
|
|
|
MP BIT6 # SCALE 2(+9) SHIFT RIGHT 9
|
2020-10-14 16:55:46 +00:00
|
|
|
INDEX BUF +2
|
|
|
|
DAS DELVX # (PIPAI) + (PIPAI)(SFE)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
INDEX BUF +2
|
|
|
|
CS PIPABIAS # (PIPA PULSES)/(CS) X 2(-5) *
|
2016-07-31 22:32:55 +00:00
|
|
|
EXTEND
|
2020-10-14 16:55:46 +00:00
|
|
|
MP 1/PIPADT # (CS) X 2(+8) NOW (PIPA PULSES) X 2(+3)*
|
2016-07-31 22:32:55 +00:00
|
|
|
EXTEND
|
2020-10-14 16:55:46 +00:00
|
|
|
MP BIT4 # SCALE 2(+11) SHIFT RIGHT 11 *
|
|
|
|
INDEX BUF +2
|
2016-07-31 22:32:55 +00:00
|
|
|
DAS DELVX # (PIPAI) + (PIPAI)(SFE) - (BIAS)(DELTAT)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CCS BUF +2 # PIPAZ, PIPAY, PIPAX
|
|
|
|
AD NEG1
|
|
|
|
TCF 1/PIPA1 +1
|
|
|
|
# Page 327
|
|
|
|
NOOP # LESS THAN ZERO IMPOSSIBLE
|
|
|
|
|
|
|
|
# Page 328
|
|
|
|
IRIGCOMP TS GCOMPSW # INDICATE COMMANDS 2 PULSES OR LESS.
|
2020-10-14 16:55:46 +00:00
|
|
|
TS BUF # INDEX COUNTER . IRIGX, IRIGY, IRIGZ.
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TC IRIGX # COMPENSATE ACCELERATION TERMS
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CS NBDX # (GYRO PULSES)/(CS) X 2(-5)
|
2020-10-14 16:55:46 +00:00
|
|
|
TC DRIFTSUB # -(NBOX)(DELTAT) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TC IRIGY # COMPENSATE ACCELERATION TERMS
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CS NBDY # (GYRO PULSES)/(CS) X 2(-5)
|
2020-10-14 16:55:46 +00:00
|
|
|
TC DRIFTSUB # -(NBDY)(DELTAT) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TC IRIGZ # COMPENSATE ACCELERATION TERMS
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CA NBDZ # (GYRO PULSES)/(CS) X 2(-5)
|
2020-10-14 16:55:46 +00:00
|
|
|
TC DRIFTSUB # +(NBDZ)(DELTAT) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CCS GCOMPSW # ARE GYRO COMMANDS GREATER THAN 2 PULSES
|
2020-10-14 16:55:46 +00:00
|
|
|
TCF +2 # YES SEND OUT GYRO TORQUING COMMANDS.
|
|
|
|
TCF IRIG1 # NO RETURN
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
CA PRIO21 # PRIO GREATER THAN SERVICER
|
2016-07-31 22:32:55 +00:00
|
|
|
TC NOVAC # SEND OUT GYRO TORQUING COMMANDS.
|
|
|
|
EBANK= NBDX
|
|
|
|
2CADR 1/GYRO
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
RELINT
|
2020-10-14 16:55:46 +00:00
|
|
|
IRIG1 CA MODE # RESTORE CALLERS EBANK
|
2016-07-31 22:32:55 +00:00
|
|
|
TS EBANK
|
|
|
|
TCF SWRETURN
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
# Page 329
|
2016-12-28 16:11:25 +00:00
|
|
|
IRIGX EXTEND
|
2020-10-14 16:55:46 +00:00
|
|
|
QXCH MPAC +2 # SAVE Q
|
2016-07-31 22:32:55 +00:00
|
|
|
EXTEND
|
|
|
|
DCS DELVX # (PIPA PULSES) X 2(+14)
|
|
|
|
DXCH MPAC
|
2020-10-14 16:55:46 +00:00
|
|
|
CA ADIAX # (GYRO PULSES)/(PIPA PULSE) X 2(-6) *
|
|
|
|
TC GCOMPSUB # -(ADIAX)(PIPAX) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
|
|
|
EXTEND #
|
2020-10-14 16:55:46 +00:00
|
|
|
DCS DELVY # (PIPA PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
DXCH MPAC #
|
2020-10-14 16:55:46 +00:00
|
|
|
CS ADSRAX # (GYRO PULSES)/(PIPA PULSE) X 2(-6) *
|
|
|
|
TC GCOMPSUB # +(ADSRAX)(PIPAY) (GYRO PULSES) X 2(+14)
|
2016-07-31 22:32:55 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
# EXTEND # ***
|
|
|
|
# DCS DELVZ # *** (PIPA PULSES) X 2(+14)
|
|
|
|
# DXCH MPAC # ***
|
|
|
|
# CA ADOAX # *** (GYRO PULSES)/(PIPA PULSE) X 2(-6) *
|
|
|
|
# TC GCOMPSUB # *** -(ADOAX)(PIPAZ) (GYRO PULSES) X 2(+14)
|
2016-07-31 22:32:55 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
TC MPAC +2
|
2016-07-31 22:32:55 +00:00
|
|
|
|
|
|
|
IRIGY EXTEND
|
2020-10-14 16:55:46 +00:00
|
|
|
QXCH MPAC +2 # SAVE Q
|
2016-07-31 22:32:55 +00:00
|
|
|
EXTEND
|
|
|
|
DCS DELVY # (PIPA PULSES) X 2(+14)
|
|
|
|
DXCH MPAC
|
2020-10-14 16:55:46 +00:00
|
|
|
CA ADIAY # (GYRO PULSES)/(PIPA PULSE) X 2(-6) *
|
|
|
|
TC GCOMPSUB # -(ADIAY)(PIPAY) (GYRO PULSES) X 2(+14)
|
2016-07-31 22:32:55 +00:00
|
|
|
|
|
|
|
EXTEND
|
|
|
|
DCS DELVZ # (PIPA PULSES) X 2(+14)
|
|
|
|
DXCH MPAC
|
2020-10-14 16:55:46 +00:00
|
|
|
CS ADSRAY # (GYRO PULSES)/(PIPA PULSE) X 2(-6) *
|
|
|
|
TC GCOMPSUB # +(ADSRAY)(PIPAZ) (GYRO PULSES) X 2(+14)
|
2016-07-31 22:32:55 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
# EXTEND # ***
|
|
|
|
# DCS DELVX # *** (PIPA PULSES) X 2(+14)
|
|
|
|
# DXCH MPAC # ***
|
|
|
|
# CA ADOAY # *** (GYRO PULSES)/(PIPA PULSE) X 2(-6) *
|
|
|
|
# TC GCOMPSUB # *** -(ADOAY)(PIPAX) (GYRO PULSES) X 2(+14)
|
2016-07-31 22:32:55 +00:00
|
|
|
|
|
|
|
TC MPAC +2
|
|
|
|
|
|
|
|
IRIGZ EXTEND
|
|
|
|
QXCH MPAC +2 # SAVE Q
|
|
|
|
EXTEND
|
|
|
|
DCS DELVY # (PIPA PULSES) X 2(+14)
|
|
|
|
DXCH MPAC
|
2020-10-14 16:55:46 +00:00
|
|
|
CA ADSRAZ # (GYRO PULSES)/(PIPA PULSE) X 2(-6) *
|
2016-07-31 22:32:55 +00:00
|
|
|
# Page 330
|
2020-10-14 16:55:46 +00:00
|
|
|
TC GCOMPSUB # -(ADSRAZ)(PIPAY) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
EXTEND
|
|
|
|
DCS DELVZ # (PIPA PULSES) X 2(+14)
|
|
|
|
DXCH MPAC
|
2020-10-14 16:55:46 +00:00
|
|
|
CA ADIAZ # (GYRO PULSES)/(PIPA PULSE) X 2(-6) *
|
|
|
|
TC GCOMPSUB # -(ADIAZ)(PIPAZ) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
# EXTEND # ***
|
|
|
|
# DCS DELVX # *** (PIPA PULSE) X 2(+14)
|
|
|
|
# DXCH MPAC # ***
|
|
|
|
# CS ADOAZ # *** (GYRO PULSES)/(PIPA PULSE) X 2(-6) *
|
|
|
|
# TC GCOMPSUB # *** +(ADOAZ)(PIPAX) (GYRO PULSES) X 2(+14)
|
2016-07-31 22:32:55 +00:00
|
|
|
|
|
|
|
TC MPAC +2
|
|
|
|
|
|
|
|
# Page 331
|
|
|
|
GCOMPSUB XCH MPAC # ADIA OR ADSRA COEFFICIENT ARRIVES IN A
|
|
|
|
EXTEND # C(MPAC) = (PIPA PULSES) X 2(+14)
|
2020-10-14 16:55:46 +00:00
|
|
|
MP MPAC # (GYRO PULSES)/(PIPA PULSE) X 2(-6) *
|
|
|
|
DXCH VBUF # NOW = (GYRO PULSES) X 2(+8) *
|
2016-07-31 22:32:55 +00:00
|
|
|
|
|
|
|
CA MPAC +1 # MINOR PART OF PIPA PULSES
|
|
|
|
EXTEND
|
|
|
|
MP MPAC # ADIA OR ADSRA
|
|
|
|
TS L
|
|
|
|
CAF ZERO
|
2020-10-14 16:55:46 +00:00
|
|
|
DAS VBUF # NOW = (GYRO PULSES) X 2(+8) *
|
2016-07-31 22:32:55 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
CA VBUF # PARTIAL RESULT - MAJOR
|
2016-07-31 22:32:55 +00:00
|
|
|
EXTEND
|
2020-10-14 16:55:46 +00:00
|
|
|
MP BIT9 # SCALE 2(+6) SHIFT RIGHT *
|
2016-07-31 22:32:55 +00:00
|
|
|
INDEX BUF # RESULT = (GYRO PULSES) X 2(+14)
|
2020-10-14 16:55:46 +00:00
|
|
|
DAS GCOMP # HI(ADIA)(PIPAI) OR HI(ADSRA)(PIPAI)
|
2016-07-31 22:32:55 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
CA VBUF +1 # PARTIAL RESULT - MINOR
|
2016-07-31 22:32:55 +00:00
|
|
|
EXTEND
|
2020-10-14 16:55:46 +00:00
|
|
|
MP BIT9 # SCALE 2(+6) SHIFT RIGHT 6 *
|
2016-07-31 22:32:55 +00:00
|
|
|
TS L
|
|
|
|
CAF ZERO
|
|
|
|
INDEX BUF # RESULT = (GYRO PULSES) X 2(+14)
|
|
|
|
DAS GCOMP # (ADIA)(PIPAI) OR (ADSRA)(PIPAI)
|
|
|
|
|
|
|
|
TC Q
|
|
|
|
|
|
|
|
# Page 332
|
|
|
|
DRIFTSUB EXTEND
|
2020-10-14 16:55:46 +00:00
|
|
|
QXCH BUF +1
|
2016-07-31 22:32:55 +00:00
|
|
|
|
|
|
|
EXTEND # C(A) = NBD (GYRO PULSES)/(CS) X 2(-5)
|
2020-10-14 16:55:46 +00:00
|
|
|
MP 1/PIPADT # (CS) X 2(+8) NOW (GYRO PULSES) X 2(+3)
|
|
|
|
LXCH MPAC +1 # SAVE FOR FRACTIONAL COMPENSATION
|
2016-07-31 22:32:55 +00:00
|
|
|
EXTEND
|
2020-10-14 16:55:46 +00:00
|
|
|
MP BIT4 # SCALE 2(+11) SHIFT RIGHT 11
|
2016-07-31 22:32:55 +00:00
|
|
|
INDEX BUF
|
2020-10-14 16:55:46 +00:00
|
|
|
DAS GCOMP # HI(NBD)(DELTAT) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
CA MPAC +1 # NOW MINOR PART
|
2016-07-31 22:32:55 +00:00
|
|
|
EXTEND
|
2020-10-14 16:55:46 +00:00
|
|
|
MP BIT4 # SCALE 2(+11) SHIFT RIGHT 11
|
2016-07-31 22:32:55 +00:00
|
|
|
TS L
|
|
|
|
CAF ZERO
|
|
|
|
INDEX BUF # ADD IN FRACTIONAL COMPENSATION
|
2020-10-14 16:55:46 +00:00
|
|
|
DAS GCOMP # (NBD)(DELTAT) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
DRFTSUB2 CAF TWO # PIPAX, PIPAY, PIPAZ
|
|
|
|
AD BUF
|
|
|
|
XCH BUF
|
|
|
|
INDEX A
|
|
|
|
CCS GCOMP # ARE GYRO COMMANDS 1 PULSE OR GREATER
|
|
|
|
TCF +2 # YES
|
2020-10-14 16:55:46 +00:00
|
|
|
TC BUF +1 # NO
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
MASK COMPCHK # DEC -1
|
|
|
|
CCS A # ARE GYRO COMMANDS GREATER THAN 2 PULSES
|
2020-10-14 16:55:46 +00:00
|
|
|
TS GCOMPSW # YES - SET GCOMPSW POSITIVE
|
|
|
|
TC BUF +1 # NO
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
# Page 333
|
|
|
|
1/GYRO CAF FOUR # PIPAZ, PIPAY, PIPAX
|
|
|
|
TS BUF
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
INDEX BUF # SCALE GYRO COMMANDS FOR IMUPULSE
|
2020-10-14 16:55:46 +00:00
|
|
|
CA GCOMP +1 # FRACTIONAL PULSES
|
2016-07-31 22:32:55 +00:00
|
|
|
EXTEND
|
|
|
|
MP BIT8 # SHIFT RIGHT 7
|
|
|
|
INDEX BUF
|
2020-10-14 16:55:46 +00:00
|
|
|
TS GCOMP +1 # FRACTIONAL PULSES SCALED
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CAF ZERO # SET GCOMP = 0 FOR DAS INSTRUCTION
|
|
|
|
INDEX BUF
|
|
|
|
XCH GCOMP # GYRO PULSES
|
|
|
|
EXTEND
|
|
|
|
MP BIT8 # SHIFT RIGHT 7
|
|
|
|
INDEX BUF
|
|
|
|
DAS GCOMP # ADD THESE TO FRACTIONAL PULSES ABOVE
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CCS BUF # PIPAZ, PIPAY, PIPAX
|
|
|
|
AD NEG1
|
2020-10-14 16:55:46 +00:00
|
|
|
TCF 1/GYRO +1
|
2016-07-31 22:32:55 +00:00
|
|
|
LGCOMP ECADR GCOMP # LESS THAN ZERO IMPOSSIBLE
|
|
|
|
|
|
|
|
CAF LGCOMP
|
|
|
|
TC BANKCALL
|
|
|
|
CADR IMUPULSE # CALL GYRO TORQUING ROUTINE
|
|
|
|
TC BANKCALL
|
|
|
|
CADR IMUSTALL # WAIT FOR PULSES TO GET OUT
|
|
|
|
TCF ENDOFJOB # TEMPORARY
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
GCOMP1 CAF FOUR # PIPAZ, PIPAY, PIPAX
|
|
|
|
TS BUF
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
INDEX BUF # RESCALE
|
|
|
|
CA GCOMP +1
|
|
|
|
EXTEND
|
2020-10-14 16:55:46 +00:00
|
|
|
MP BIT8 # SHIFT MINOR PART LEFT 7 - MAJOR PART = 0
|
2016-07-31 22:32:55 +00:00
|
|
|
INDEX BUF
|
|
|
|
LXCH GCOMP +1 # BITS 8-14 OF MINOR PART WERE = 0
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CCS BUF # PIPAZ, PIPAY, PIPAX
|
|
|
|
AD NEG1
|
|
|
|
TCF GCOMP1 +1
|
|
|
|
COMPCHK DEC -1 # LESS THAN ZERO IMPOSSIBLE
|
|
|
|
TCF ENDOFJOB
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
# Page 334
|
|
|
|
NBDONLY CCS GCOMPSW # BYPASS IF GCOMPSW NEGATIVE
|
|
|
|
TCF +3
|
|
|
|
TCF +2
|
|
|
|
TCF ENDOFJOB
|
|
|
|
|
|
|
|
INHINT
|
|
|
|
CCS FLAGWRD2 # PREREAD T3RUPT MAY COINCIDE
|
|
|
|
TCF ENDOFJOB
|
|
|
|
TCF ENDOFJOB
|
|
|
|
TCF +1
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
CA FLAGWRD8 # IF SURFACE FLAG IS SET. SET TEM1
|
2016-07-31 22:32:55 +00:00
|
|
|
MASK BIT8 # POSITIVE SO THAT THE ACCELERATION TERMS
|
|
|
|
TS TEM1 # WILL BE COMPENSATED.
|
|
|
|
EXTEND
|
|
|
|
BZF +3 # ARE WE ON THE SURFACE
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TC IBNKCALL # ON THE SURFACE
|
2020-10-14 16:55:46 +00:00
|
|
|
CADR PIPASR +3 # READ PIPAS. BUT DO NOT SCALE THEM
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CA TIME1 # (CS) X 2(+14)
|
|
|
|
XCH 1/PIPADT # PREVIOUS TIME
|
|
|
|
RELINT
|
|
|
|
COM
|
|
|
|
AD 1/PIPADT # PRESENT TIME - PREVIOUS TIME
|
|
|
|
NBD2 AD HALF # CORRECT FOR POSSIBLE TIME1 TICK
|
|
|
|
AD HALF
|
2020-10-14 16:55:46 +00:00
|
|
|
XCH L # IF TIME1 DID NOT TICK. REMOVE RESULTING
|
2016-07-31 22:32:55 +00:00
|
|
|
XCH L # OVERFLOW.
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
NBD3 EXTEND # C(A) = DELTAT (CS) X 2(+14)
|
2016-07-31 22:32:55 +00:00
|
|
|
MP BIT10 # SHIFT RIGHT 5
|
|
|
|
DXCH VBUF +2
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CA ZERO
|
|
|
|
TS GCOMPSW # INDICATE COMMANDS 2 PULSES OR LESS.
|
2020-10-14 16:55:46 +00:00
|
|
|
TS BUF # INDEX X. Y, Z.
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
CCS TEM1 # IF SURFACE FLAG IS SET.
|
2016-07-31 22:32:55 +00:00
|
|
|
TC IRIGX # COMPENSATE ACCELERATION TERMS.
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
EXTEND
|
|
|
|
DCA VBUF +2
|
|
|
|
DXCH MPAC # DELTAT NOW SCALED (CS) X 2(+19)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CS NBDX # (GYRO PULSES)/(CS) X 2(-5)
|
2020-10-14 16:55:46 +00:00
|
|
|
TC FBIASSUB # -(NBDX)(DELTAT) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CCS TEM1 # IF SURFACE FLAG IS SET,
|
|
|
|
TC IRIGY # COMPENSATE ACCELERATION TERMS.
|
|
|
|
# Page 335
|
|
|
|
EXTEND
|
|
|
|
DCS VBUF +2
|
|
|
|
DXCH MPAC # DELTAT SCALED (CS) X 2(+19)
|
|
|
|
CA NBDY # (GYRO PULSES)/(CS) X 2(-5)
|
2020-10-14 16:55:46 +00:00
|
|
|
TC FBIASSUB # -(NBDY)(DELTAT) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2020-10-14 16:55:46 +00:00
|
|
|
CCS TEM1 # IF SURFACE FLAG IS SET.
|
2016-07-31 22:32:55 +00:00
|
|
|
TC IRIGZ # COMPENSATE ACCELERATION TERMS
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
EXTEND
|
|
|
|
DCS VBUF +2
|
|
|
|
DXCH MPAC # DELTAT SCALED (CS) X 2(+19)
|
|
|
|
CS NBDZ # (GYRO PULSES)/(CS) X 2(-5)
|
2020-10-14 16:55:46 +00:00
|
|
|
TC FBIASSUB # +(NBDZ)(DELTAT) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CCS GCOMPSW # ARE GYRO COMMANDS GREATER THAN 2 PULSES
|
|
|
|
TCF 1/GYRO # YES
|
|
|
|
TCF ENDOFJOB # NO
|
|
|
|
|
|
|
|
# Page 336
|
|
|
|
FBIASSUB XCH Q
|
|
|
|
TS BUF +1
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CA Q # NBD SCALED (GYRO PULSES)/(CS) X 2(-5)
|
|
|
|
EXTEND
|
|
|
|
MP MPAC # DELTAT SCALED (CS) X 2(+19)
|
|
|
|
INDEX BUF
|
2020-10-14 16:55:46 +00:00
|
|
|
DAS GCOMP # HI(NBD)(DELTAT) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CA Q # NOW FRACTIONAL PART
|
|
|
|
EXTEND
|
|
|
|
MP MPAC +1
|
|
|
|
TS L
|
|
|
|
CAF ZERO
|
|
|
|
INDEX BUF
|
2020-10-14 16:55:46 +00:00
|
|
|
DAS GCOMP # (NBD)(DELTAT) (GYRO PULSES) X 2(+14)
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TCF DRFTSUB2 # CHECK MAGNITUDE OF COMPENSATION
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
LASTBIAS TC BANKCALL
|
|
|
|
CADR PIPUSE1
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CCS GCOMPSW
|
|
|
|
TCF +3
|
|
|
|
TCF +2
|
|
|
|
TCF ENDOFJOB
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CA FLAGWRD8 # IF SURFACE FLAG IS SET, SET TEM1
|
|
|
|
MASK SURFFBIT # POSITIVE SO THAT THE ACCELERATION TERMS
|
|
|
|
TS TEM1 # WILL BE COMPENSATED.
|
|
|
|
|
|
|
|
CAF PRIO31 # 2 SECONDS SCALED (CS) X 2(+8)
|
|
|
|
XCH 1/PIPADT
|
|
|
|
COM
|
|
|
|
AD PIPTIME +1
|
|
|
|
TCF NBD2
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
GCOMPZER CAF LGCOMP # ROUTINE TO ZERO GCOMP BEFORE FIRST
|
|
|
|
XCH EBANK # CALL TO 1/PIPA
|
|
|
|
TS MODE
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
CAF ZERO
|
|
|
|
TS GCOMPSW
|
|
|
|
TS GCOMP
|
|
|
|
TS GCOMP +1
|
|
|
|
TS GCOMP +2
|
|
|
|
TS GCOMP +3
|
|
|
|
TS GCOMP +4
|
|
|
|
# Page 337
|
|
|
|
TS GCOMP +5
|
2016-12-28 16:11:25 +00:00
|
|
|
|
2016-07-31 22:32:55 +00:00
|
|
|
TCF IRIG1 # RESTORE EBANK AND RETURN
|