2013-04-17 11:54:24 -07:00
|
|
|
#!nsh
|
|
|
|
|
#
|
2014-01-20 13:19:49 +01:00
|
|
|
# Initialize logging services.
|
2013-04-17 11:54:24 -07:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
if [ -d /fs/microsd ]
|
|
|
|
|
then
|
2014-04-27 17:42:45 +02:00
|
|
|
if ver hwcmp PX4FMU_V1
|
2013-08-25 19:27:11 +02:00
|
|
|
then
|
2015-04-13 18:45:18 +02:00
|
|
|
if sdlog2 start -r 40 -a -b 3 -t
|
|
|
|
|
then
|
|
|
|
|
fi
|
2013-08-25 19:27:11 +02:00
|
|
|
else
|
2016-02-17 15:09:23 +01:00
|
|
|
# check if we should increase logging rate for ekf2 replay message logging
|
|
|
|
|
if param greater EKF2_REC_RPL 0
|
2015-04-13 18:45:18 +02:00
|
|
|
then
|
2016-02-17 15:09:23 +01:00
|
|
|
if sdlog2 start -r 500 -e -b 20 -t
|
|
|
|
|
then
|
|
|
|
|
fi
|
|
|
|
|
else
|
2016-02-29 09:51:55 +01:00
|
|
|
if sdlog2 start -r 100 -a -b 12 -t
|
2016-02-17 15:09:23 +01:00
|
|
|
then
|
|
|
|
|
fi
|
2015-04-13 18:45:18 +02:00
|
|
|
fi
|
2013-08-25 19:27:11 +02:00
|
|
|
fi
|
2013-04-17 11:54:24 -07:00
|
|
|
fi
|