From 2a7e8ffe556aa56ee120772bf8b8c2db7c929cd9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 22 Oct 2024 16:45:42 +0900 Subject: [PATCH] HAL_QURT: added install script copies so and frontend elf to vehicle --- libraries/AP_HAL_QURT/install.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 libraries/AP_HAL_QURT/install.sh diff --git a/libraries/AP_HAL_QURT/install.sh b/libraries/AP_HAL_QURT/install.sh new file mode 100755 index 0000000000000..b9bcc19bd0201 --- /dev/null +++ b/libraries/AP_HAL_QURT/install.sh @@ -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