swh:1:snp:79c9132b4a8931e989e318225e00e088ef6f383d
Raw File
Tip revision: 3577d0b1de1ac147c1710524517c563b2bfe231c authored by Ronald Burkey on 30 May 2021, 19:14:00 UTC
Merge pull request #1147 from smithery1/Issue/1143
Tip revision: 3577d0b
SimLuminary131
#!/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


back to top