Highly fugly++ quick dirty script for rotator
parent
a8fd56273e
commit
16704dc86a
|
@ -0,0 +1,53 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Script to control a rotator and perform an RFI acquisition.
|
||||
#
|
||||
# GPLv3+
|
||||
# Copyright (C) 2023 Jeff Moe
|
||||
#
|
||||
# TODO:
|
||||
# Script should do a loop that queries the position until it is reached.
|
||||
# In lieu of actual programming, just sleep longer.
|
||||
# Make sure rotator has time to move to initial position
|
||||
# from furthest possible position.
|
||||
|
||||
set -x
|
||||
|
||||
cd ~/devel/spacecruft/CygnusRFI
|
||||
source env/bin/activate
|
||||
|
||||
spacecruft-greenctld-cmd "P 1 45"
|
||||
sleep 84
|
||||
PYTHONPATH=/usr/lib/python3/dist-packages:/usr/lib/python3/site-packages:$PYTHONPATH python CygnusRFI.py -b 2400000 -c 2048 -t 0.5 -d 5 -f 400000000 -F 430000000
|
||||
mv rfi_plot.png rfi_plot-1-45.png
|
||||
|
||||
spacecruft-greenctld-cmd "P 90 45"
|
||||
sleep 30
|
||||
echo "do somesuch test"
|
||||
PYTHONPATH=/usr/lib/python3/dist-packages:/usr/lib/python3/site-packages:$PYTHONPATH python CygnusRFI.py -b 2400000 -c 2048 -t 0.5 -d 5 -f 400000000 -F 430000000
|
||||
mv rfi_plot.png rfi_plot-90-45.png
|
||||
|
||||
spacecruft-greenctld-cmd "P 180 45"
|
||||
sleep 30
|
||||
echo "do somesuch test"
|
||||
PYTHONPATH=/usr/lib/python3/dist-packages:/usr/lib/python3/site-packages:$PYTHONPATH python CygnusRFI.py -b 2400000 -c 2048 -t 0.5 -d 5 -f 400000000 -F 430000000
|
||||
mv rfi_plot.png rfi_plot-180-45.png
|
||||
|
||||
spacecruft-greenctld-cmd "P 270 45"
|
||||
sleep 30
|
||||
echo "do somesuch test"
|
||||
PYTHONPATH=/usr/lib/python3/dist-packages:/usr/lib/python3/site-packages:$PYTHONPATH python CygnusRFI.py -b 2400000 -c 2048 -t 0.5 -d 5 -f 400000000 -F 430000000
|
||||
mv rfi_plot.png rfi_plot-270-45.png
|
||||
|
||||
spacecruft-greenctld-cmd "P 359 90"
|
||||
sleep 30
|
||||
echo "do somesuch test"
|
||||
PYTHONPATH=/usr/lib/python3/dist-packages:/usr/lib/python3/site-packages:$PYTHONPATH python CygnusRFI.py -b 2400000 -c 2048 -t 0.5 -d 5 -f 400000000 -F 430000000
|
||||
mv rfi_plot.png rfi_plot-359-90.png
|
||||
|
||||
spacecruft-greenctld-cmd "P 90 90"
|
||||
sleep 65
|
||||
echo "do somesuch test"
|
||||
PYTHONPATH=/usr/lib/python3/dist-packages:/usr/lib/python3/site-packages:$PYTHONPATH python CygnusRFI.py -b 2400000 -c 2048 -t 0.5 -d 5 -f 400000000 -F 430000000
|
||||
mv rfi_plot.png rfi_plot-90-90.png
|
||||
|
Loading…
Reference in New Issue