Skip to content

Commit

Permalink
Added the simulation scripts from the latest 20090421 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ohommes committed Apr 23, 2009
1 parent ce8cf48 commit 9dca68c
Show file tree
Hide file tree
Showing 25 changed files with 503 additions and 0 deletions.
18 changes: 18 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,18 @@
LICENSE, 03/25/2009
-------------------

The bulk of the Virtual AGC PC software is licensed under the GNU
General Public License (GPL) version 2 or later, although some
portions may be under a less-restrictive license or in the public
domain. A special exception to the GPL has been made to allow use
of Virtual AGC software in the Orbiter spacecraft simulator.

The software for the Apollo Guidance Computer (AGC) and LM Abort
Guidance Computer (AGS) is believed to be in the public domain.

Refer to individual source files for their exact licensing.

------------------------------------------------------------------
Ron Burkey <info@sandroid.org>
www.ibiblio.org/apollo

15 changes: 15 additions & 0 deletions README.txt
@@ -0,0 +1,15 @@
INSTALLATION NOTES, 03/25/2009
------------------------------

VirtualAGC for Windows is tested only on the Windows XP platform,
and your success on other versions of Windows may vary. For
Vista, the following steps may need to be performed manually after
installation:

1.
2.

------------------------------------------------------------------
Ron Burkey <info@sandroid.org>
www.ibiblio.org/apollo

30 changes: 30 additions & 0 deletions SimArtemis072
@@ -0,0 +1,30 @@
#!/bin/bash
# This shell script runs the CM elements of the Virtual AGC
# emulation for software version 072 of Artemis (i.e., Colossus 3).

# What all the stuff with PIDS does is to record the process IDs of all the
# programs we start. We use this list to terminate all of them if any of
# them terminates.

# Notice a lot of commented-out lines that say "xterm ...". It's nicer in
# a lot of ways to run these various apps inside of X-terminals, but opens
# up so incredibly many windows on the screen that I don't do it normally.
# Just remove the comment symbol from in front of any apps that you want in
# an xterm. For example, if you want to run yaAGC with the --debug switch.

# If --test-downlink is used, always run yaDSKY in an xterm, or else
# displaying the digital downlink lists will be really crummy..
xterm -geometry 80x43 -e yadsky $1 --cfg=CM.ini --test-downlink &
PIDS="$!"
xterm -sb -geometry 72x1 -e \
LM_Simulator --cfg=lm_simulator_nodsky.ini --port=19701 &
PIDS="$! ${PIDS}"
#xterm -sb -geometry 112x40 -e \
yaAGC --core=Artemis072.bin --cfg=CM.ini $2 &
PIDS="$! ${PIDS}"
export PIDS

# Scan for any of the programs to exit.
SimStop


22 changes: 22 additions & 0 deletions SimArtemis072.bat
@@ -0,0 +1,22 @@
# This batch file runs the CM elements of the Virtual AGC
# emulation for software version 072 of Artemis (i.e., Colossus 3).
rem What it WANTS to do by default is jump down to :WinAGC. The other
rem (legacy) stuff is just there in case I hear of some excruciatingly
rem awful problem with WinAGC.
c:
cd \mingw\bin
if f==f%NOTWINAGC% goto WinAGC
if f==f%XPPRO% goto notxppro
start /min "CMyaAGC" yaAGC --core=Artemis072.bin %2
start "CMyaDSKY" yaDSKY %1 --cfg=CM.ini --test-downlink
start "CMsimulator" LM_Simulator "--cfg=lm_simulator_nodsky.ini" "--port=19701"
SimStop CMyaAGC CMyaDSKY CMsimulator
goto done
:notxppro
start /min yaAGC --core=Artemis072.bin %2
start yaDSKY %1 --cfg=CM.ini --test-downlink
start LM_Simulator "--cfg=lm_simulator_windows_nodsky.ini" "--port=19701"
:WinAGC
WinAGC <SimArtemis072.xeq
:done

5 changes: 5 additions & 0 deletions SimArtemis072.xeq
@@ -0,0 +1,5 @@
# Processes used in SimArtemis072 for Win32.
yaAGC --core=Artemis072.bin --cfg=CM.ini
yaDSKY --half-size --cfg=CM.ini --test-downlink
wish lm_simulator.tcl --cfg=lm_simulator_nodsky.ini --port=19701

28 changes: 28 additions & 0 deletions SimArtemis072_lite
@@ -0,0 +1,28 @@
#!/bin/bash
# This shell script runs the CM elements of the Virtual AGC
# emulation for software version Artemis 072 (Colossus 3). This "lite" version
# uses the DSKY simulation of the LM_Simulator program rather than yaDSKY.

# What all the stuff with PIDS does is to record the process IDs of all the
# programs we start. We use this list to terminate all of them if any of
# them terminates.

# Notice a lot of commented-out lines that say "xterm ...". It's nicer in
# a lot of ways to run these various apps inside of X-terminals, but opens
# up so incredibly many windows on the screen that I don't do it normally.
# Just remove the comment symbol from in front of any apps that you want in
# an xterm. For example, if you want to run yaAGC with the --debug switch.

xterm -sb -geometry 72x1 -e \
LM_Simulator --cfg=lm_simulator.ini --port=19701 &
PIDS="$!"
#xterm -sb -geometry 112x40 -e \
yaAGC --core=Artemis072.bin --cfg=CM.ini $1 &
PIDS="$! ${PIDS}"
export PIDS

# Scan for any of the programs to exit.
SimStop



22 changes: 22 additions & 0 deletions SimArtemis072_lite.bat
@@ -0,0 +1,22 @@
# This batch file runs the CM elements of the Virtual AGC
# emulation for software version Artemis 072 (Colossus 3).
rem What it WANTS to do by default is jump down to :WinAGC. The other
rem (legacy) stuff is just there in case I hear of some excruciatingly
rem awful problem with WinAGC.
c:
cd \mingw\bin
if f==f%NOTWINAGC% goto WinAGC
if f==f%XPPRO% goto notxppro
start /min "CMyaAGC" yaAGC --core=Artemis072.bin %2
start "CMsimulator" LM_Simulator "--cfg=lm_simulator.ini" "--port=19701"
SimStop CMyaAGC CMsimulator
goto done
:notxppro
start /min yaAGC --core=Artemis072.bin %2
start LM_Simulator "--cfg=lm_simulator_windows.ini" "--port=19701"
:WinAGC
WinAGC <SimArtemis072_lite.xeq
:done



4 changes: 4 additions & 0 deletions SimArtemis072_lite.xeq
@@ -0,0 +1,4 @@
# Processes used in SimArtemis072_lite for Win32.
yaAGC --core=Artemis072.bin --cfg=CM.ini
wish lm_simulator.tcl --cfg=lm_simulator.ini --port=19701

30 changes: 30 additions & 0 deletions SimColossus249
@@ -0,0 +1,30 @@
#!/bin/bash
# This shell script runs the CM elements of the Virtual AGC
# emulation for software version 249 of Colossus

# What all the stuff with PIDS does is to record the process IDs of all the
# programs we start. We use this list to terminate all of them if any of
# them terminates.

# Notice a lot of commented-out lines that say "xterm ...". It's nicer in
# a lot of ways to run these various apps inside of X-terminals, but opens
# up so incredibly many windows on the screen that I don't do it normally.
# Just remove the comment symbol from in front of any apps that you want in
# an xterm. For example, if you want to run yaAGC with the --debug switch.

# If --test-downlink is used, always run yaDSKY in an xterm, or else
# displaying the digital downlink lists will be really crummy..
xterm -geometry 80x43 -e yadsky $1 --cfg=CM.ini --test-downlink &
PIDS="$!"
xterm -sb -geometry 72x1 -e \
LM_Simulator --cfg=lm_simulator_nodsky.ini --port=19701 &
PIDS="$! ${PIDS}"
#xterm -sb -geometry 112x40 -e \
yaAGC --core=Colossus249.bin --cfg=CM.ini $2 &
PIDS="$! ${PIDS}"
export PIDS

# Scan for any of the programs to exit.
SimStop


22 changes: 22 additions & 0 deletions SimColossus249.bat
@@ -0,0 +1,22 @@
# This batch file runs the CM elements of the Virtual AGC
# emulation for software version 249 of Colossus.
rem What it WANTS to do by default is jump down to :WinAGC. The other
rem (legacy) stuff is just there in case I hear of some excruciatingly
rem awful problem with WinAGC.
c:
cd \mingw\bin
if f==f%NOTWINAGC% goto WinAGC
if f==f%XPPRO% goto notxppro
start /min "CMyaAGC" yaAGC --core=Colossus249.bin %2
start "CMyaDSKY" yaDSKY %1 --cfg=CM.ini --test-downlink
start "CMsimulator" LM_Simulator "--cfg=lm_simulator_nodsky.ini" "--port=19701"
SimStop CMyaAGC CMyaDSKY CMsimulator
goto done
:notxppro
start /min yaAGC --core=Colossus249.bin %2
start yaDSKY %1 --cfg=CM.ini --test-downlink
start LM_Simulator "--cfg=lm_simulator_windows_nodsky.ini" "--port=19701"
:WinAGC
WinAGC <SimColossus249.xeq
:done

5 changes: 5 additions & 0 deletions SimColossus249.xeq
@@ -0,0 +1,5 @@
# Processes used in SimColossus249 for Win32.
yaAGC --core=Colossus249.bin --cfg=CM.ini
yaDSKY --half-size --cfg=CM.ini --test-downlink
wish lm_simulator.tcl --cfg=lm_simulator_nodsky.ini --port=19701

28 changes: 28 additions & 0 deletions SimColossus249_lite
@@ -0,0 +1,28 @@
#!/bin/bash
# This shell script runs the CM elements of the Virtual AGC
# emulation for software version 249 of Colossus. This "lite" version
# uses the DSKY simulation of the LM_Simulator program rather than yaDSKY.

# What all the stuff with PIDS does is to record the process IDs of all the
# programs we start. We use this list to terminate all of them if any of
# them terminates.

# Notice a lot of commented-out lines that say "xterm ...". It's nicer in
# a lot of ways to run these various apps inside of X-terminals, but opens
# up so incredibly many windows on the screen that I don't do it normally.
# Just remove the comment symbol from in front of any apps that you want in
# an xterm. For example, if you want to run yaAGC with the --debug switch.

xterm -sb -geometry 72x1 -e \
LM_Simulator --cfg=lm_simulator.ini --port=19701 &
PIDS="$!"
#xterm -sb -geometry 112x40 -e \
yaAGC --core=Colossus249.bin --cfg=CM.ini $1 &
PIDS="$! ${PIDS}"
export PIDS

# Scan for any of the programs to exit.
SimStop



22 changes: 22 additions & 0 deletions SimColossus249_lite.bat
@@ -0,0 +1,22 @@
# This batch file runs the CM elements of the Virtual AGC
# emulation for software version 249 of Colossus.
rem What it WANTS to do by default is jump down to :WinAGC. The other
rem (legacy) stuff is just there in case I hear of some excruciatingly
rem awful problem with WinAGC.
c:
cd \mingw\bin
if f==f%NOTWINAGC% goto WinAGC
if f==f%XPPRO% goto notxppro
start /min "CMyaAGC" yaAGC --core=Colossus249.bin %2
start "CMsimulator" LM_Simulator "--cfg=lm_simulator.ini" "--port=19701"
SimStop CMyaAGC CMsimulator
goto done
:notxppro
start /min yaAGC --core=Colossus249.bin %2
start LM_Simulator "--cfg=lm_simulator_windows.ini" "--port=19701"
:WinAGC
WinAGC <SimColossus249_lite.xeq
:done



4 changes: 4 additions & 0 deletions SimColossus249_lite.xeq
@@ -0,0 +1,4 @@
# Processes used in SimColossus249_lite for Win32.
yaAGC --core=Colossus249.bin --cfg=CM.ini
wish lm_simulator.tcl --cfg=lm_simulator.ini --port=19701

49 changes: 49 additions & 0 deletions SimLuminary131
@@ -0,0 +1,49 @@
#!/bin/bash
# This shell script runs the LM elements of the Virtual AGC
# emulation for software version 131 of Luminary.

# What all the stuff with PIDS does is to record the process IDs of all the
# programs we start. We use this list to terminate all of them if any of
# them terminates.

# Notice a lot of commented-out lines that say "xterm ...". It's nicer in
# a lot of ways to run these various apps inside of X-terminals, but opens
# up so incredibly many windows on the screen that I don't do it normally.
# Just remove the comment symbol from in front of any apps that you want in
# an xterm. For example, if you want to run yaAGC with the --debug switch.

# Comment out the following to retain contents of erasable memory.
#rm LM.core
#export DEBUGIT=--debug

# If --test-downlink is used, always run yaDSKY in an xterm, or else
# displaying the digital downlink lists will be really crummy..
xterm -geometry 80x43 -e yadsky $1 --test-downlink --cfg=LM.ini --port=19797 &
PIDS="$!"
#xterm -sb -e \
yaDEDA $1 &
PIDS="$! ${PIDS}"
#xterm -sb -geometry 80x32 -e \
yaAGS --core=FP8.bin &
PIDS="$! ${PIDS}"
#xterm -sb -geometry 96x40 -e \
yaACA &
PIDS="$! ${PIDS}"
#xterm -sb -geometry 72x1 -e \
# LM_Simulator --cfg=lm_simulator_nodsky.ini &
#PIDS="$! ${PIDS}"
echo run --core=Luminary131.bin --symtab=Luminary131.symtab ${DEBUGIT} --port=19797 --cfg=LM.ini $2 >yaAGC.gdb.init
#ddd -x yaAGC.gdb.init yaAGC
xterm -sb -geometry 112x40 -e \
yaAGC --core=Luminary131.bin --symtab=Luminary131.symtab ${DEBUGIT} --port=19797 --cfg=LM.ini $2 &
#ddd yaAGC &
PIDS="$! ${PIDS}"
xterm -sb -geometry 72x1 -e \
LM_Simulator --cfg=lm_simulator_nodsky.ini &
PIDS="$! ${PIDS}"
export PIDS

# Scan for any of the programs to exit.
SimStop


29 changes: 29 additions & 0 deletions SimLuminary131.bat
@@ -0,0 +1,29 @@
rem Batch file for starting the Virtual AGC LM simulation.
rem What it WANTS to do by default is jump down to :WinAGC. The other
rem (legacy) stuff is just there in case I hear of some excruciatingly
rem awful problem with WinAGC.
c:
cd \mingw\bin
if f==f%NOTWINAGC% goto WinAGC
if f==f%XPPRO% goto notxppro
start /min "LMyaAGC" yaAGC --core=Luminary131.bin --port=19797 %2
start /min "LMyaAGS" yaAGS --core=FP8.bin %4
start "LMyaDEDA" yaDEDA %1
start "LMyaDSKY" yaDSKY %1 --cfg=LM.ini --port=19797 --test-downlink
start /min "LMyaACA" yaACA
start "LMsimulator" LM_Simulator "--cfg=lm_simulator_nodsky.ini"
SimStop LMyaAGC LMyaAGS LMyaDEDA LMyaDSKY LMyaACA LMsimulator
goto done
:notxppro
start /min yaAGC --core=Luminary131.bin --port=19797 %2
start /min yaAGS --core=FP8.bin %4
start yaDEDA %1
start yaDSKY %1 --cfg=LM.ini --port=19797 --test-downlink
start /min yaACA
start LM_Simulator "--cfg=lm_simulator_windows_nodsky.ini"
goto done
:WinAGC
WinAGC <SimLuminary131.xeq
:done


8 changes: 8 additions & 0 deletions SimLuminary131.xeq
@@ -0,0 +1,8 @@
# Processes used in SimLuminary131 for Win32.
yaAGC --core=Luminary131.bin --port=19797 --cfg=LM.ini
yaAGS --core=FP8.bin
yaDEDA --half-size
yaDSKY --half-size --cfg=LM.ini --port=19797 --test-downlink
yaACA
wish lm_simulator.tcl --cfg=lm_simulator_nodsky.ini

28 changes: 28 additions & 0 deletions SimLuminary131_lite
@@ -0,0 +1,28 @@
#!/bin/bash
# This shell script runs the LM elements of the Virtual AGC
# emulation for software version 131 of Luminary. This "lite" version
# uses the DSKY simulation of the LM_Simulator program rather than yaDSKY.

# What all the stuff with PIDS does is to record the process IDs of all the
# programs we start. We use this list to terminate all of them if any of
# them terminates.

# Notice a lot of commented-out lines that say "xterm ...". It's nicer in
# a lot of ways to run these various apps inside of X-terminals, but opens
# up so incredibly many windows on the screen that I don't do it normally.
# Just remove the comment symbol from in front of any apps that you want in
# an xterm. For example, if you want to run yaAGC with the --debug switch.

xterm -sb -geometry 72x1 -e \
LM_Simulator --cfg=lm_simulator.ini &
PIDS="$!"
#xterm -sb -geometry 112x40 -e \
yaAGC --core=Luminary131.bin --port=19797 --cfg=LM.ini $1 &
PIDS="$! ${PIDS}"
export PIDS

# Scan for any of the programs to exit.
SimStop



0 comments on commit 9dca68c

Please sign in to comment.