Skip to content
Snippets Groups Projects
Commit 18f36767 authored by GroundStation's avatar GroundStation
Browse files

groundStation: itegrate scripts

parent 5f65df69
No related branches found
No related tags found
1 merge request!4Batch setpid
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
......@@ -2,7 +2,7 @@
# Use default filename if it wasn't given at the command line
if [ $# -eq 0 ]; then
filename="parameters.txt"
filename="scripts/parameters.txt"
else
filename=$1
fi
......@@ -14,4 +14,4 @@ regex='(lat|long|height|pitch|roll|yaw|pitchv|rollv|yawv) (p|i|d) ([-+]?[0-9]*\.
awk_prog='{print "./Cli setpid" " " "--" $1 " " "-" $2 " " $3}'
# Search, parse, and execute ./Cli commands
grep -E "$regex" $filename | awk "$awk_prog" | bash
grep -E "$regex" $filename | awk "$awk_prog" | bash
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment