ardupilot/Tools/Frame_params/Parrot_Disco/start_ardupilot.sh

21 lines
374 B
Bash
Raw Normal View History

2016-09-15 05:13:59 -03:00
#!/bin/sh
cd /data/ftp/internal_000/APM
(
date
# stop stock led daemon
pstop ledd
2016-09-15 05:13:59 -03:00
# startup fan
echo 1 > /sys/devices/platform/user_gpio/FAN/value
while :; do
echo "$(date) Starting arduplane"
./arduplane -A udp:192.168.42.255:14550:bcast -B /dev/ttyPA1 -C udp:192.168.43.255:14550:bcast --module-directory modules
done
) >> start_ardupilot.log 2>&1 &