From 79d7a0975793267853b722e42e0cff148e0af7d4 Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Sun, 4 Oct 2020 13:14:30 -0300 Subject: [PATCH] disable ramfs for meteor passes on <2Gi ram systems --- receive_meteor.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/receive_meteor.sh b/receive_meteor.sh index f9edefc..f9098bc 100755 --- a/receive_meteor.sh +++ b/receive_meteor.sh @@ -31,10 +31,10 @@ 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 48 -p 1 | sox -t raw -r 288k -c 2 -b 16 -e s - -t wav "${METEOR_OUTPUT}/audio/${3}.wav" rate 96k +timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -M raw -f "${2}"M -s 288k -g 48 -p 1 | sox -t raw -r 288k -c 2 -b 16 -e s - -t wav "${RAMFS_AUDIO}/audio/${3}.wav" rate 96k log "Normalization in progress" "INFO" -sox "${METEOR_OUTPUT}/audio/${3}.wav" "${METEOR_OUTPUT}/${3}.wav" gain -n +sox "${RAMFS_AUDIO}/audio/${3}.wav" "${METEOR_OUTPUT}/${3}.wav" gain -n log "Demodulation in progress (QPSK)" "INFO" meteor_demod -B -o "${METEOR_OUTPUT}/${3}.qpsk" "${METEOR_OUTPUT}/${3}.wav" @@ -42,7 +42,7 @@ meteor_demod -B -o "${METEOR_OUTPUT}/${3}.qpsk" "${METEOR_OUTPUT}/${3}.wav" if [ "$DELETE_AUDIO" = true ]; then log "Deleting audio files" "INFO" rm "${METEOR_OUTPUT}/audio/${3}.wav" - rm "${METEOR_OUTPUT}/${3}.wav" + rm "${RAMFS_AUDIO}/${3}.wav" fi log "Decoding in progress (QPSK to BMP)" "INFO"