logger_sd_chibios

Log on a SD card, either text or binary data. Based on ChibiOS HAL and Threads. If board allows it (ex: Apogee), the log file is automatically closed on power down. Files are written on a FAT file system using the FatFS library and can be accessed by using the autopilot as a mass storage (plug USB while the board is running).

Configures

Name

Value

Description

SDLOG_LED

none|num

LED number or ‘none’ to disable. Default: none

Defines

Name

Value

Description

SDLOG_START_DELAY

30

Set the delay in seconds before starting the logger. This delay can be used to get plug USB cable and get data without starting a new log. Default: 30s

SDLOG_AUTO_FLUSH_PERIOD

10

Data flush period. Shorter period may decrease performances. Default: 10s

SDLOG_CONTIGUOUS_STORAGE_MEM

50

Try to reserve a given contiguous mass storage memory. Default: 50Mo

SDLOG_PREFLIGHT_ERROR

FALSE

If set to TRUE, the autopilot will not arm if the SDLogger is not running. Default: FALSE

Depends

  • tlsf