Install Scripts Update

This commit is contained in:
2026-01-07 19:46:54 +00:00
parent 27a70c4983
commit 232ee2d8d5
2 changed files with 22 additions and 0 deletions

View File

@@ -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