aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common/init.d/rc.logging
blob: dcf5bbced81c2a94bf70e80ba6ba104a0a5c4531 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!nsh
#
# Initialize logging services.
#

if [ -d /fs/microsd ]
then
	if hw_ver compare PX4FMU_V1
	then
		echo "Start sdlog2 at 50Hz"
		sdlog2 start -r 50 -a -b 16 -t
	else
		echo "Start sdlog2 at 200Hz"
		sdlog2 start -r 200 -a -b 16 -t
	fi
fi