Pārlūkot izejas kodu

disable ramfs for meteor passes on <2Gi ram systems

tags/v.1.4
Nico Rey pirms 4 gadiem
vecāks
revīzija
79d7a09757
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +3
    -3
      receive_meteor.sh

+ 3
- 3
receive_meteor.sh Parādīt failu

@@ -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"


Notiek ielāde…
Atcelt
Saglabāt