From f9920c4462e9064b2b5bc27bea463b8fb6551871 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 5 Jan 2024 07:40:39 -0500 Subject: [PATCH] added -v and -p config options --- config | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/config b/config index 1973426a..2026b98d 100755 --- a/config +++ b/config @@ -180,6 +180,8 @@ elif [ "$1" = "-h" ]; then echo " -q Change the Squelch setting for command receiver" echo " -F Change the rx and tx frequency" echo " -H Chnage the Balloon mode" + echo " -p Display payload sensor data" + echo " -v Display voltage and current data" echo exit @@ -665,7 +667,19 @@ elif [ "$1" = "-H" ]; then echo sudo systemctl restart cubesatsim - + +elif [ "$1" = "-p" ]; then + + echo "Real-time output from the serial port from the Pico:" + echo + sleep 2 + + timeout 3 cat /dev/serial0 + +elif [ "$1" = "-v" ]; then + + /home/pi/CubeSatSim/telem + fi # sudo systemctl restart cubesatsim