From b3be16c07ed0913f17332cc6e350bef5785e3475 Mon Sep 17 00:00:00 2001 From: Pascal Date: Sat, 30 Jan 2021 14:59:35 +0000 Subject: [PATCH] changed the syntax of gain to allow autop_gain --- receive.sh | 2 +- receive_iss.sh | 2 +- receive_meteor.sh | 2 +- templates/noaa.conf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/receive.sh b/receive.sh index 9f9a43b..bce8a50 100755 --- a/receive.sh +++ b/receive.sh @@ -31,7 +31,7 @@ fi # $7 = Satellite max elevation log "Starting rtl_fm record" "INFO" -timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -f "${2}"M -s 60k -g $GAIN -E wav -E deemp -F 9 - | /usr/bin/sox -t raw -e signed -c 1 -b 16 -r 60000 - "${RAMFS_AUDIO}/audio/${3}.wav" rate 11025 +timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -f "${2}"M -s 60k $GAIN -E wav -E deemp -F 9 - | /usr/bin/sox -t raw -e signed -c 1 -b 16 -r 60000 - "${RAMFS_AUDIO}/audio/${3}.wav" rate 11025 if [ "${SUN_ELEV}" -gt "${SUN_MIN_ELEV}" ]; then ENHANCEMENTS="ZA MCIR MCIR-precip MSA MSA-precip HVC-precip HVCT-precip HVC HVCT" diff --git a/receive_iss.sh b/receive_iss.sh index b38385d..702b7bb 100755 --- a/receive_iss.sh +++ b/receive_iss.sh @@ -26,7 +26,7 @@ fi # $7 = Satellite max elevation log "Starting rtl_fm record" "INFO" -timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -M fm -f 145.8M -s 48k -g $GAIN -E dc -E wav -E deemp -F 9 - | sox -t raw -r 48k -c 1 -b 16 -e s - -t wav "${NOAA_OUTPUT}/audio/${3}.wav" rate 11025 +timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -M fm -f 145.8M -s 48k $GAIN -E dc -E wav -E deemp -F 9 - | sox -t raw -r 48k -c 1 -b 16 -e s - -t wav "${NOAA_OUTPUT}/audio/${3}.wav" rate 11025 if [ -f "$NOAA_HOME/demod.py" ]; then log "Decoding ISS pass" "INFO" diff --git a/receive_meteor.sh b/receive_meteor.sh index 69724db..12b5c0b 100755 --- a/receive_meteor.sh +++ b/receive_meteor.sh @@ -43,7 +43,7 @@ fi # $7 = Satellite max elevation log "Starting rtl_fm record" "INFO" -timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -M raw -f "${2}"M -s 288k -g $GAIN | sox -t raw -r 288k -c 2 -b 16 -e s - -t wav "${RAMFS_AUDIO}/audio/${3}.wav" rate 96k +timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -M raw -f "${2}"M -s 288k $GAIN | sox -t raw -r 288k -c 2 -b 16 -e s - -t wav "${RAMFS_AUDIO}/audio/${3}.wav" rate 96k log "Demodulation in progress (QPSK)" "INFO" meteor_demod -B -o "${METEOR_OUTPUT}/${3}.qpsk" "${RAMFS_AUDIO}/audio/${3}.wav" diff --git a/templates/noaa.conf b/templates/noaa.conf index eaa9b5d..9cd7183 100644 --- a/templates/noaa.conf +++ b/templates/noaa.conf @@ -11,5 +11,5 @@ LON=change_longitude BIAS_TEE="enable_bias_tee" DELETE_AUDIO="true" FLIP_METEOR_IMG="true" -GAIN=50 +GAIN="-g 50" SCHEDULE_ISS="false"