PX4: changes to startup after stacksize fix

we can redirect to FAT fs again, and remove the sleep lines
This commit is contained in:
Andrew Tridgell 2013-08-08 11:09:10 +10:00
parent e5ad9dbd15
commit f88bb5638b
2 changed files with 1 additions and 6 deletions

View File

@ -86,12 +86,11 @@ then
else else
echo Loading /etc/px4io/px4io.bin echo Loading /etc/px4io/px4io.bin
tone_alarm MBABGP tone_alarm MBABGP
if px4io update /etc/px4io/px4io.bin if px4io update /etc/px4io/px4io.bin > /fs/microsd/APM/px4io_update.log
then then
cp /etc/px4io/px4io.bin /fs/microsd/px4io.loaded cp /etc/px4io/px4io.bin /fs/microsd/px4io.loaded
echo Loaded /etc/px4io/px4io.bin OK >> /fs/microsd/APM/px4io_update.log echo Loaded /etc/px4io/px4io.bin OK >> /fs/microsd/APM/px4io_update.log
tone_alarm MSPAA tone_alarm MSPAA
sleep 1
else else
echo Failed loading /etc/px4io/px4io.bin >> /fs/microsd/APM/px4io_update.log echo Failed loading /etc/px4io/px4io.bin >> /fs/microsd/APM/px4io_update.log
echo "check Safety Button" >> /fs/microsd/APM/px4io_update.log echo "check Safety Button" >> /fs/microsd/APM/px4io_update.log
@ -140,9 +139,6 @@ else
fi fi
fi fi
# why is this sleep needed?
sleep 1
# optional ETS airspeed sensor # optional ETS airspeed sensor
if ets_airspeed start if ets_airspeed start
then then

View File

@ -82,5 +82,4 @@ then
echo Running rc.APM echo Running rc.APM
# if APM startup is successful then nsh will exit # if APM startup is successful then nsh will exit
sh /etc/init.d/rc.APM sh /etc/init.d/rc.APM
sleep 1
fi fi