Wonderfull !
My shortpress_3.sh looks like that :
#!/bin/sh
ulog_tag="APM:Plane Disco"
source /usr/share/ulog/ulog_api.sh
/usr/bin/apm-plane-disco.sh prepare
if [ $? -eq 0 ] ; then
ulogi "Stopping stock autopilot"
kk
else
ulogi "Keep Dragon alive"
exit 0
fi
ulogi "Starting APM:Plane"
media-ctl -l '"mt9f002 0-0010":0->"avicam.0":0[1]'
media-ctl -l '"avicam_dummy_dev.0":0->"avicam.0":0[0]'
pstop ledd
prestart apm-plane-disco
prestart dxowrapperd
prestart pimp
I don’t have arduplane in boxinit but apm
cat /etc/boxinit.d/50-apm-plane-disco.rc
service apm-plane-disco /usr/bin/apm-plane-disco.sh -A udp:192.168.42.255:14550:bcast -B /dev/ttyPA1 -C udp:192.168.43.255:14550:bcast -l /data/ftp/internal_000/ardupilot/logs -t /data/ftp/internal_000/ardupilot/terrain
class main
user root
disabled
I think we should need to update start_ardupilot.sh in official repo to update -A option. I can modify it or if someone want to do it let me know
If you have time please share content of :