mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 02:33:58 -04:00
PX4: start mtd driver on FMUv2
This commit is contained in:
parent
db8b262939
commit
db19c8b410
@ -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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user