mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-10 06:39:25 +08:00
feat(boards): airbrainh743 tune logger for 128 MB W25N flash
Replace the old SDLOG_DIRS_MAX=3 + larger-buffer override with the new rotation-based tuning: SDLOG_MAX_SIZE=40 caps each log file at 40 MB so a handful of recent logs fit, and SDLOG_ROTATE=95 lets logs fill up to 95% of the 128 MB volume. Also set COM_ARM_SDCARD=0 (no SD on this board) and SYS_DM_BACKEND=1 so missions are stored in RAM.
This commit is contained in:
@@ -12,6 +12,13 @@ param set-default CBRK_SUPPLY_CHK 894281
|
||||
|
||||
param set-default IMU_GYRO_RATEMAX 2000
|
||||
|
||||
# W25N NAND flash with littlefs (128 MB): larger buffer, auto-rotate
|
||||
set LOGGER_BUF 32
|
||||
param set-default SDLOG_DIRS_MAX 3
|
||||
# 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
|
||||
|
||||
# Ignore that there is no SD card
|
||||
param set-default COM_ARM_SDCARD 0
|
||||
|
||||
Reference in New Issue
Block a user