Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/vagrant/shellinit.sh
9488 views
1
# Init that is run every time a new session starts up
2
3
# This allows the PX4NuttX build to proceed when the underlying fs is on windows
4
# It is only marginally less efficient on Linux
5
export PX4_WINTOOL=y
6
export PATH=$PATH:$HOME/jsbsim/build/src
7
export BUILDLOGS=/tmp/buildlogs
8
9
export APMROOT=/vagrant
10
new=$HOME/.local/bin
11
case ":${PATH:=$new}:" in
12
*:"$new":*) ;;
13
*) if [ -d "$HOME/.local/bin" ] ; then
14
export PATH="$new:$PATH"
15
fi ;;
16
esac
17
18
export PATH=$APMROOT/Tools/autotest:$PATH
19
export PATH=/usr/lib/ccache:$PATH
20
21
cd $APMROOT/ArduCopter
22
23
echo "Ardupilot environment ready. Run 'sim_vehicle.py' to start simulating an arducopter instance."
24
echo "To build for fmuv2:"
25
echo " cd /vagrant"
26
echo " ./waf configure --board=Pixhawk1"
27
echo " ./waf build --target=bin/arducopter"
28
29