Skip to content

Commit

Permalink
HAL_QURT: added install script
Browse files Browse the repository at this point in the history
copies so and frontend elf to vehicle
  • Loading branch information
tridge committed Oct 22, 2024
1 parent 8347a86 commit 2a7e8ff
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions libraries/AP_HAL_QURT/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
# script to install ArduPilot on a voxl2 board
# this assumes you have already installed the voxl-ardupilot.service file
# and /usr/bin/voxl-ardupilot script

[ $# -eq 1 ] || {
echo "install.sh IPADDRESS"
exit 1
}

DEST="$1"

set -e

echo "Installing ArduPilot on $DEST"

rsync -a build/QURT/bin/arducopter $DEST:/usr/lib/rfsa/adsp/ArduPilot.so
rsync -a build/QURT/ardupilot $DEST:/usr/bin/

echo "Restarting ArduPilot"
ssh $DEST systemctl restart voxl-ardupilot

0 comments on commit 2a7e8ff

Please sign in to comment.