mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-09 13:24:25 +08:00
a061b8665b
hardcoding the default warning and respecting boards without SD card with a define.
39 lines
967 B
Bash
39 lines
967 B
Bash
#!/bin/sh
|
|
#
|
|
# board specific defaults
|
|
#------------------------------------------------------------------------------
|
|
|
|
# transision from params file to flash-based params (2022-08)
|
|
if [ -f $PARAM_FILE ]
|
|
then
|
|
param load $PARAM_FILE
|
|
param save
|
|
# create a backup
|
|
mv $PARAM_FILE ${PARAM_FILE}.bak
|
|
reboot
|
|
fi
|
|
|
|
param set-default BAT1_V_DIV 11.2
|
|
param set-default BAT1_A_PER_V 59.5
|
|
|
|
# system_power unavailable
|
|
param set-default CBRK_SUPPLY_CHK 894281
|
|
|
|
# use EKF2 without mag
|
|
param set-default SYS_HAS_MAG 0
|
|
# and enable gravity fusion
|
|
param set-default EKF2_IMU_CTRL 7
|
|
|
|
# the startup tune is not great on a binary output buzzer, so disable it
|
|
param set-default CBRK_BUZZER 782090
|
|
|
|
param set-default IMU_GYRO_RATEMAX 2000
|
|
|
|
# W25N NAND flash with littlefs (128 MB): small log file size so we can keep
|
|
# a few recent logs, and fill up to 95%.
|
|
param set-default SDLOG_ROTATE 95
|
|
param set-default SDLOG_MAX_SIZE 40
|
|
|
|
# Store missions in RAM
|
|
param set-default SYS_DM_BACKEND 1
|