Frame_params: added more Disco info

This commit is contained in:
Andrew Tridgell 2016-09-15 18:13:59 +10:00
parent 94460949e1
commit dd3d5152f6
4 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,2 @@
Please see http://ardupilot.org/plane/docs/airframe-disco.html for
more information on setting up a Parrot Disco

View File

@ -0,0 +1,14 @@
#!/bin/sh
# default rcS running mode script
echo $((1024*1024)) > /proc/sys/net/core/wmem_max # inscrease the max socket size
if test -x /data/ftp/internal_000/APM/start_ardupilot.sh; then
ulogger -t "rcS_mode_default" -p I "Launching ArduPilot"
/data/ftp/internal_000/APM/start_ardupilot.sh
else
ulogger -t "rcS_mode_default" -p I "Launching Dragon"
DragonStarter.sh -out2null &
fi
sleep 1

View File

@ -0,0 +1,17 @@
#!/bin/sh
cd /data/ftp/internal_000/APM
(
date
# 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 &