Major Bugfixes in sw/logalizier/openlog2tlm, new helperscript for openlog2tlm

This commit is contained in:
Christoph Niemann
2012-06-23 00:40:20 +02:00
parent 197737ed36
commit f01a6f4ff9
+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
# Argument soll die zu lesende Datei sein, raus wenn es sie nicht gibt.
if [ -z $1 ]
then
echo "usage: sw/logalizer/getopenlog <textfile from openlog>"
elif [ $# -gt 1 ]
then
echo "you have given to much arguments"
echo "usage: sw/logalizer/getopenlog <textfile from openlog>"
elif [ -z $PAPARAZZI_HOME ]
then
echo "\$PAPARAZZI_HOME isn't set in this shell. Please verify your environment variables!"
else
$PAPARAZZI_HOME/sw/logalizer/openlog2tlm $1 $1.tlm
if [ $? -eq 0 ]
then
$PAPARAZZI_HOME/sw/logalizer/sd2log $1.tlm
else
echo "openlog2tlm was not succesful. Please check for errors"
fi
rm $1.tlm
fi