From 69fb7e9adacb11ffe0d30ceb1d6e0fbf4e99a107 Mon Sep 17 00:00:00 2001 From: Glenn Dwiyatcita Date: Sun, 11 Mar 2018 12:57:09 +0100 Subject: [PATCH 1/2] Proof LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES (#224) --- ...UNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES.agc | 45 +++++++------------ 1 file changed, 16 insertions(+), 29 deletions(-) diff --git a/Comanche055/LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES.agc b/Comanche055/LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES.agc index eef38b68e..50e95e4da 100644 --- a/Comanche055/LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES.agc +++ b/Comanche055/LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES.agc @@ -43,13 +43,6 @@ # A NINTH DEGREE POLYNOMIAL APPROXIMATION WHICH IS VALID OVER A 15 # DAY INTERVAL BEGINNING SHORTLY BEFORE LAUNCH. THEREFORE THE TIME # INPUT BY THE USER SHOULD FALL WITHIN THIS 15 DAY INTERVAL. -## The 9th-degree polynomial spoken of here is a pad load, meaning -## that it is not actually hardcoded into the software. Additional -## information about calculating the polynomial can be found on the -## -## Orbiter NASSP wiki, as well as information about calculation -## of the -## solar ephemerides. # # LSPOS COMPUTES THE POSITION VECTORS OF THE SUN AND THE MOON. # @@ -69,44 +62,43 @@ # # 1) SPECIFIED GROUND ELAPSED TIME IN CS x B-28 LOADED IN MPAC. # -# 2) TIMEMO -- TIME AT THE CENTER OF THE RANGE OVER WHICH THE LUNAR +# 2) TIMEMO - TIME AT THE CENTER OF THE RANGE OVER WHICH THE LUNAR # POSITION POLYNOMIAL IS VALID IN CS x B-42. # -# 3) VECOEM -- VECTOR COEFFICIENTS OF THE LUNAR POSITION POLYNOMIAL +# 3) VECOEM - VECTOR COEFFICIENTS OF THE LUNAR POSITION POLYNOMIAL # LOADED IN DESCENDING SEQUENCE IN METERS/CS**N x B-2 # -# 4) RESO -- POSITION VECTOR OF THE SUN RELATIVE TO THE EARTH AT -# TIMEMO IN METERS x B-38 +# 4) RESO - POSITION VECTOR OF THE SUN RELATIVE TO THE EARTH AT +# TIMEMO IN METERS x B-38. # -# 5) VESO -- VELOCITY VECTOR OF THE SUN RELATIVE TO THE EARTH AT -# TIMEMO IN METERS/CS x B-9 +# 5) VESO - VELOCITY VECTOR OF THE SUN RELATIVE TO THE EARTH AT +# TIMEMO IN METERS/CS x B-9. # -# 6) OMEGAES -- ANGULAR VELOCITY OF THE VECTOR RESO AT TIMEMO IN -# REV/CS x B+26 +# 6) OMEGAES - ANGULAR VELOCITY OF THE VECTOR RESO AT TIMEMO IN +# REV/CS x B+26. # # ALL EXCEPT THE FIRST INPUT ARE INCLUDED IN THE PRE-LAUNCH # ERASABLE DATA LOAD. # -# OUTPUT -- LSPOS +# OUTPUT - LSPOS # Page 786 -# # 1) 2D OF VAC AREA CONTAINS THE POSITION VECTOR OF THE SUN RELATIVE # TO THE EARTH AT TIME INPUT BY THE USER IN METERS x B-38. # # 2) MPAC CONTAINS THE POSITION VECTOR OF THE MOON RELATIVE TO THE -# EARTH AT TIME INPUT BY THE USER IN METERS x B-29 +# EARTH AT TIME INPUT BY THE USER IN METERS x B-29. # -# OUTPUT -- LUNPOS +# OUTPUT - LUNPOS # # MPAC CONTAINS THE POSITION VECTOR OF THE MOON RELATIVE TO THE -# EARTH AT THE TIME INPUT BY USER IN METERS x B-29 +# EARTH AT THE TIME INPUT BY USER IN METERS x B-29. # -# OUTPUT -- LUNVEL +# OUTPUT - LUNVEL # # MPAC CONTAINS THE VELOCITY VECTOR OF THE MOON RELATIVE TO THE -# EARTH AT THE TIME INPUT BY THE USER IN METERS/CS x B-7 +# EARTH AT THE TIME INPUT BY THE USER IN METERS/CS x B-7. # -# OUTPUT -- SOLPOS +# OUTPUT - SOLPOS # # MPAC CONTAINS THE POSITION VECTOR OF THE SUN RELATIVE TO THE EARTH # AT TIME INPUT BY THE USER IN METERS x B-38. @@ -120,11 +112,9 @@ # THE VAC AREA IS USED FOR STORAGE OF INTERMEDIATE AND FINAL RESULTS # OF COMPUTATIONS. # -# S1, X1, AND X2 ARE USED BY THESE SUBROUTINES. -# +# S1, X1 AND X2 ARE USED BY THESE SUBROUTINES. # PRELAUNCH ERASABLE DATA LOAD ARE ONLY ERASABLE STORAGE USED BY # THESE SUBROUTINES. -# # RESTARTS DURING OPERATION OF THESE SUBROUTINES MUST BE HANDLED BY # THE USER. @@ -206,6 +196,3 @@ VEMA VXSC NINEB4 2DEC 9.0 B-4 ONEB4 2DEC 1.0 B-4 - - - From b292f92fd2e28550d83f8b32f885e0e58257e6e1 Mon Sep 17 00:00:00 2001 From: Glenn Dwiyatcita Date: Wed, 14 Mar 2018 01:09:01 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=91=8C=20Follow=20"triple=20space"=20?= =?UTF-8?q?rule=20for=20indentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES.agc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Comanche055/LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES.agc b/Comanche055/LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES.agc index 50e95e4da..a1a9d3ab8 100644 --- a/Comanche055/LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES.agc +++ b/Comanche055/LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES.agc @@ -63,19 +63,19 @@ # 1) SPECIFIED GROUND ELAPSED TIME IN CS x B-28 LOADED IN MPAC. # # 2) TIMEMO - TIME AT THE CENTER OF THE RANGE OVER WHICH THE LUNAR -# POSITION POLYNOMIAL IS VALID IN CS x B-42. +# POSITION POLYNOMIAL IS VALID IN CS x B-42. # # 3) VECOEM - VECTOR COEFFICIENTS OF THE LUNAR POSITION POLYNOMIAL -# LOADED IN DESCENDING SEQUENCE IN METERS/CS**N x B-2 +# LOADED IN DESCENDING SEQUENCE IN METERS/CS**N x B-2 # # 4) RESO - POSITION VECTOR OF THE SUN RELATIVE TO THE EARTH AT -# TIMEMO IN METERS x B-38. +# TIMEMO IN METERS x B-38. # # 5) VESO - VELOCITY VECTOR OF THE SUN RELATIVE TO THE EARTH AT -# TIMEMO IN METERS/CS x B-9. +# TIMEMO IN METERS/CS x B-9. # # 6) OMEGAES - ANGULAR VELOCITY OF THE VECTOR RESO AT TIMEMO IN -# REV/CS x B+26. +# REV/CS x B+26. # # ALL EXCEPT THE FIRST INPUT ARE INCLUDED IN THE PRE-LAUNCH # ERASABLE DATA LOAD. @@ -83,10 +83,10 @@ # OUTPUT - LSPOS # Page 786 # 1) 2D OF VAC AREA CONTAINS THE POSITION VECTOR OF THE SUN RELATIVE -# TO THE EARTH AT TIME INPUT BY THE USER IN METERS x B-38. +# TO THE EARTH AT TIME INPUT BY THE USER IN METERS x B-38. # # 2) MPAC CONTAINS THE POSITION VECTOR OF THE MOON RELATIVE TO THE -# EARTH AT TIME INPUT BY THE USER IN METERS x B-29. +# EARTH AT TIME INPUT BY THE USER IN METERS x B-29. # # OUTPUT - LUNPOS #