Only start PX4FLOW driver on FMUv2

This commit is contained in:
Lorenz Meier
2015-08-10 22:26:09 +02:00
parent 7052ddf3db
commit 825880ab55

View File

@@ -705,12 +705,17 @@ then
# End of autostart
fi
# There is no further script processing, so we can free some RAM
# XXX potentially unset all script variables.
unset TUNE_ERR
# Boot is complete, inform MAVLink app(s) that the system is now fully up and running
mavlink boot_complete
# Check for flow sensor - as it is a background task, launch it last
if px4flow start &
if ver hwcmp PX4FMU_V2
then
# Check for flow sensor - as it is a background task, launch it last
px4flow start &
fi
if [ $EXIT_ON_END == yes ]
@@ -719,7 +724,3 @@ then
exit
fi
unset EXIT_ON_END
# There is no further processing, so we can free some RAM
# XXX potentially unset all script variables.
unset TUNE_ERR