Files
PX4-Autopilot/ROMFS/px4fmu_common/init.d/rc.logging
T
ufoncz bd5a0cef1a ver command ready including hwcmp which replaces hw_ver, removed hw_ver
updated all scripts to use new ver hwcmp command
q
2014-04-27 17:42:45 +02:00

17 lines
239 B
Plaintext

#!nsh
#
# Initialize logging services.
#
if [ -d /fs/microsd ]
then
if ver hwcmp PX4FMU_V1
then
echo "Start sdlog2 at 50Hz"
sdlog2 start -r 50 -a -b 8 -t
else
echo "Start sdlog2 at 200Hz"
sdlog2 start -r 200 -a -b 16 -t
fi
fi