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-01-07 16:56:35 -04:00
|
|
|
if hw_ver compare 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-02-04 11:52:47 -04:00
|
|
|
sdlog2 start -r 50 -a -b 8 -t
|
2013-08-25 14:27:11 -03:00
|
|
|
else
|
2014-01-07 16:56:35 -04:00
|
|
|
echo "Start sdlog2 at 200Hz"
|
2014-01-19 17:56:24 -04:00
|
|
|
sdlog2 start -r 200 -a -b 16 -t
|
2013-08-25 14:27:11 -03:00
|
|
|
fi
|
2013-04-17 15:54:24 -03:00
|
|
|
fi
|