From 35fbabbd3e5f38c9a8692ed80997772a576df381 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 8 Jun 2025 15:00:54 -0400 Subject: [PATCH] Update fctelem.sh read fctelem.cfg --- groundstation/fctelem.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/groundstation/fctelem.sh b/groundstation/fctelem.sh index 6bd71b1f..81fd8e77 100755 --- a/groundstation/fctelem.sh +++ b/groundstation/fctelem.sh @@ -58,7 +58,23 @@ if [[ $(/home/pi/fcdctl/fcdctl -l | grep "No FCD found") ]]; then exit else echo "FCD Found! Setting Gain" - /home/pi/fcdctl/fcdctl -g 1 -m 1 -i 0 + + FILE=/home/pi/fctelem/fctelem.cfg + if [ -f "$FILE" ]; then + +# config_string=$(> FILE + fi + + /home/pi/fcdctl/fcdctl $config_string + + # /home/pi/fcdctl/fcdctl -g 1 -m 1 -i 0 echo fi