Skip to content
Snippets Groups Projects
Commit a3aa01fc authored by Zach Eisele's avatar Zach Eisele
Browse files

add script for starting entire ground station

parent 2852316a
No related branches found
No related tags found
3 merge requests!76lots of gui updates,!75Lost of gui updates,!74lots of gui updates among others
#!/bin/bash
function handler()
{
kill -s SIGINT $CFPID
kill -s SIGINT $APID
kill -s SIGINT $BPID
}
cd ./crazyflie_groundstation
#xterm -hold -e './crazyflieGroundStation' &
./crazyflieGroundStation &
CFPID=$!
echo "Waiting for crazyflie groundstation to be created..."
cf_gs=crazyflie_groundstation.socket
while [ ! -S "$cf_gs" ]
do
sleep 1
done
cd ../groundStation/adapters/crazyflie
sleep 1
./bin/cf_adapter &
APID=$!
sleep 1
cd ../..
./BackEnd &
BPID=$!
trap handler INT
wait
\ 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