mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 09:58:23 +08:00
Major Bugfixes in sw/logalizier/openlog2tlm, new helperscript for openlog2tlm
This commit is contained in:
Executable
+23
@@ -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
|
||||
Reference in New Issue
Block a user