Skip to content

Commit

Permalink
Updated with Navio Installation
Browse files Browse the repository at this point in the history
  • Loading branch information
UAVmatrix committed Feb 18, 2016
1 parent 7a4722a commit edb69d7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
20 changes: 18 additions & 2 deletions Install/Install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# Create a log file of the build as well as displaying the build on the tty as it runs
exec > >(tee build_UAV.log)
exec 2>&1

Navio=$1
echo Installing UAVcast including $Navio
################# COMPILE UAV software ############


Expand All @@ -16,7 +17,22 @@ sudo apt-get install -y --force-yes build-essential dnsutils inadyn usb-modeswit
cmake dh-autoreconf wvdial gstreamer1.0

cd /home/pi
git clone https://github.com/UAVmatrix/UAVcast.git
Lower=$(echo "$Navio" | tr '[:upper:]' '[:lower:]')
echo $Lower
case $Lower in
"navio2")
echo Installing Navio2
wget 'http://files.emlid.com/apm/apm-navio2_3.3.2-rc2-beta-1.2_armhf.deb' -O apm-navio2.deb
sudo dpkg -i apm-navio2.deb
;;
"navio")
Installing Navio
wget 'http://files.emlid.com/apm/apm.deb' -O apm.deb
sudo dpkg -i apm.deb
;;
esac

git clone https://github.com/UAVmatrix/UAVcast.git
mkdir packages
cd packages

Expand Down
11 changes: 9 additions & 2 deletions Install/build_UAV.log
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
Get:1 http://mirror.ox.ac.uk jessie InRelease [15.0 kB]
Get:2 http://mirror.ox.ac.uk jessie/main armhf Packages [8,964 kB]
Installing UAVcast including navio2
Ign http://files.emlid.com armhf/ InRelease
Ign http://files.emlid.com armhf/ Release.gpg
Ign http://files.emlid.com armhf/ Release
Err http://files.emlid.com armhf/ Packages
404 Not Found
Ign http://files.emlid.com armhf/ Translation-en_GB
Ign http://files.emlid.com armhf/ Translation-en
Ign http://files.emlid.com armhf/ Translation-en_GB.UTF-8
2 changes: 1 addition & 1 deletion etc/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ if [ "$_IP" ]; then
fi
#sudo inadyn &
sleep 3
sudo /home/pi/autoBoot/script/./runCode.sh > /home/pi/autoBoot/log/runCode.log 2>&1 &
sudo /home/pi/UAVcast/script/./DroneCode.sh > /home/pi/UAVcast/log/DroneCode.log 2>&1 &
exit 0

0 comments on commit edb69d7

Please sign in to comment.