You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CubeSatSim/rpitx.sh

26 lines
726 B

#!/bin/bash
echo -e "\nrpitx for CubeSatSim at 434.9 MHz using python\n"
if [ "$1" = "c" ]; then
echo "Mode cycling"
y=$(last reboot | grep ^reboot | wc -l)
echo $y
if [ $(($y % 4)) = 3 ]; then
echo "Mode is continuous AFSK"
python3 -u /home/pi/CubeSatSim/rpitx.py a
elif [ $(($y % 4)) = 1 ]; then
echo "Mode is continuous BPSK"
python3 -u /home/pi/CubeSatSim/rpitx.py b
elif [ $(($y % 4)) = 2 ]; then
echo "Mode is continuous SSTV"
python3 -u /home/pi/CubeSatSim/rpitx.py s
else
echo "Mode is continuous FSK"
python3 -u /home/pi/CubeSatSim/rpitx.py f
fi
else
python3 -u /home/pi/CubeSatSim/rpitx.py $1
fi

Powered by TurnKey Linux.