|
|
|
@ -37,7 +37,10 @@ else
@@ -37,7 +37,10 @@ else
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
set sketch NONE |
|
|
|
|
rm /fs/microsd/APM/boot.log |
|
|
|
|
if rm /fs/microsd/APM/boot.log |
|
|
|
|
then |
|
|
|
|
echo "removed old boot.log" |
|
|
|
|
fi |
|
|
|
|
set logfile /fs/microsd/APM/BOOT.LOG |
|
|
|
|
|
|
|
|
|
if [ ! -f /bin/ArduPilot ] |
|
|
|
@ -258,6 +261,17 @@ else
@@ -258,6 +261,17 @@ else
|
|
|
|
|
echo "Failed to start rgbled driver" >> $logfile |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ $BOARD == FMUv2 ] |
|
|
|
|
then |
|
|
|
|
if mtd start |
|
|
|
|
then |
|
|
|
|
echo "started mtd driver OK" |
|
|
|
|
else |
|
|
|
|
echo "failed to start mtd driver" |
|
|
|
|
sh /etc/init.d/rc.error |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
echo Starting ArduPilot |
|
|
|
|
echo Starting ArduPilot $deviceA $deviceC $deviceD >> $logfile |
|
|
|
|
if ArduPilot -d $deviceA -d2 $deviceC -d3 $deviceD start |
|
|
|
|