mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
HAL_QURT: added install script
copies so and frontend elf to vehicle
This commit is contained in:
parent
ebba4ac287
commit
0fa3086a93
21
libraries/AP_HAL_QURT/install.sh
Executable file
21
libraries/AP_HAL_QURT/install.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user