From e403c5d683c98965fce4b7d93e0b3e90941b0303 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 18 Sep 2026 15:11:27 -0400 Subject: [PATCH] Update config -z to take pacsat camera image --- config | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/config b/config index 12223745..e8b0525e 100755 --- a/config +++ b/config @@ -2345,7 +2345,23 @@ elif [ "$1" = "-w" ]; then echo cat $CONFIG echo - + +elif [ "$1" = "-z" ]; then + + if [[ $(grep 'bullseye' /etc/os-release) ]]; then + echo "Pi OS is Bullseye (Debian 11)" + raspistill -o /home/pi/CubeSatSim/camera.jpg -w 86 -h 64 &>/dev/null + elif [[ $(grep 'bookworm' /etc/os-release) ]]; then + echo "Pi OS is Bookworm (Debian 12)" + rpicam-still -o /home/pi/CubeSatSim/camera.jpg --width 86 --height 64 -q 70 &>/dev/null + elif [[ $(grep 'trixie' /etc/os-release) ]]; then + echo "Pi OS is Trixie (Debian 13)" + rpicam-still -o /home/pi/CubeSatSim/camera.jpg --width 86 --height 64 -q 70 &>/dev/null + fi + + echo "Taking camera image and copying to pacsat img directory" + cp /home/pi/CubeSatSim/camera.jpg /home/pi/PacSat/pacsat/img/camera.jpg + elif [ "$1" = "-h" ]; then echo "config OPTION" @@ -2394,6 +2410,7 @@ elif [ "$1" = "-h" ]; then echo " -K Change the Doppler frequency shift setting" echo " -V Set the maximum CPUs" echo " -w Show PiOS boot files" + echo " -z Take camera image for PacSat" echo exit