mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
17 lines
244 B
Plaintext
17 lines
244 B
Plaintext
#!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 8 -t
|
|
else
|
|
echo "Start sdlog2 at 200Hz"
|
|
sdlog2 start -r 200 -a -b 16 -t
|
|
fi
|
|
fi
|