You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
610 B
34 lines
610 B
#!/bin/sh |
|
# |
|
# PX4 FMUv3 specific board defaults |
|
#------------------------------------------------------------------------------ |
|
|
|
|
|
# |
|
# Bootloader upgrade |
|
# |
|
set BL_FILE /etc/extras/px4fmuv3_bl.bin |
|
if [ -f $BL_FILE ] |
|
then |
|
if param compare SYS_BL_UPDATE 1 |
|
then |
|
param set SYS_BL_UPDATE 0 |
|
param save |
|
echo "BL update..." >> $LOG_FILE |
|
bl_update $BL_FILE |
|
echo "BL update done" >> $LOG_FILE |
|
reboot |
|
fi |
|
fi |
|
unset BL_FILE |
|
|
|
# to minimize cpu usage on older boards limit inner loop to 400 Hz by default |
|
if param compare IMU_GYRO_RATEMAX 0 |
|
then |
|
param set IMU_GYRO_RATEMAX 400 |
|
fi |
|
|
|
if [ $AUTOCNF = yes ] |
|
then |
|
|
|
fi
|
|
|