Install Scripts Update
This commit is contained in:
@@ -67,6 +67,14 @@ cd "$ARDUPILOT_HOME"
|
||||
Tools/environment_install/install-prereqs-ubuntu.sh -y
|
||||
. ~/.profile || true
|
||||
|
||||
# Source ArduPilot environment (includes venv with empy)
|
||||
if [ -f "$HOME/.ardupilot_env" ]; then
|
||||
source "$HOME/.ardupilot_env"
|
||||
fi
|
||||
if [ -f "$HOME/venv-ardupilot/bin/activate" ]; then
|
||||
source "$HOME/venv-ardupilot/bin/activate"
|
||||
fi
|
||||
|
||||
# Build ArduCopter SITL (without DDS to avoid complexity)
|
||||
./waf configure --board sitl
|
||||
./waf copter
|
||||
@@ -120,6 +128,10 @@ if ! grep -q "$BASHRC_MARKER" ~/.bashrc; then
|
||||
cat >> ~/.bashrc << EOF
|
||||
|
||||
$BASHRC_MARKER
|
||||
# Source ArduPilot environment (venv + tools)
|
||||
if [ -f ~/.ardupilot_env ]; then
|
||||
source ~/.ardupilot_env
|
||||
fi
|
||||
export ARDUPILOT_HOME=$ARDUPILOT_HOME
|
||||
export PATH=\$PATH:$ARDUPILOT_HOME/Tools/autotest
|
||||
export PATH=\$PATH:\$HOME/.local/bin
|
||||
|
||||
Reference in New Issue
Block a user