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/demo.sh

31 lines
734 B

#!/bin/bash
echo -e "\nDemo of CubeSatSim sends FSK, BPSK, and AFSK telemetry alternately at 434.9 MHz continuously\n\n"
#exit
sudo killall -9 rpitx
sudo killall -9 sendiq
sudo fuser -k 8080/tcp
y=$(last reboot | grep ^reboot | wc -l)
echo $y
if (( $y % 2 == 0 ))
then
echo -e "\n Continuous FSK Mode\n\n"
/home/pi/CubeSatSim/radioafsk f 7
else
echo -e "\n Alternating FSK, BPSK, and AFSK telemetry Mode \n\n"
while true; do
sleep 1;
echo -e "\n Changing mode ********************************************************************************\n\n"
timeout 25 /home/pi/CubeSatSim/radioafsk c 3
sudo killall -9 rpitx
sudo killall -9 sendiq
sudo fuser -k 8080/tcp
done
fi

Powered by TurnKey Linux.