2013-04-17 15:54:24 -03:00
|
|
|
#!nsh
|
|
|
|
#
|
2014-01-20 08:19:49 -04:00
|
|
|
# Initialize logging services.
|
2013-04-17 15:54:24 -03:00
|
|
|
#
|
|
|
|
|
|
|
|
if [ -d /fs/microsd ]
|
|
|
|
then
|
2014-04-27 12:42:45 -03:00
|
|
|
if ver hwcmp PX4FMU_V1
|
2013-08-25 14:27:11 -03:00
|
|
|
then
|
2014-01-07 16:56:35 -04:00
|
|
|
echo "Start sdlog2 at 50Hz"
|
2014-05-16 05:45:00 -03:00
|
|
|
sdlog2 start -r 50 -a -b 4 -t
|
2013-08-25 14:27:11 -03:00
|
|
|
else
|
2014-01-07 16:56:35 -04:00
|
|
|
echo "Start sdlog2 at 200Hz"
|
2014-05-23 08:14:02 -03:00
|
|
|
sdlog2 start -r 200 -a -b 22 -t
|
2013-08-25 14:27:11 -03:00
|
|
|
fi
|
2013-04-17 15:54:24 -03:00
|
|
|
fi
|