logger_sd_spi_direct

Direct SPI SD Logger that saves pprzlog messages to SD Card. Supported SD cards: - SDv2 cards. Old SDv1 cards are not supported. - Both SDSC and SDHC/SDXC are supported. Some SD cards need to be zeroed out before use: https://askubuntu.com/a/511476 This module logs data directly to an SD Card which is connected on a SPI port. Logging can be started/stopped by setting sdlogger_spi.do_log from the GCS or by defining SDLOGGER_ON_ARM to TRUE. The values to be logged are defined in the telemetry config file. An example is available in rotorcraft_with_logger.xml. The logmessage is defined as the default message in the process “Logger”. A LOGGER_LED can be enabled which indicates if the logger is writing or reading data. Downloading of the data occurs over the configured serial device using sw/logalizer/sdlogger_download. There is no check to verify that all data is transfered. For UART it is recommended to use an FTDI cable.

Configures

Name

Value

Description

SDLOGGER_DIRECT_SPI

SPI1|SPI2|SPI3|SPI4|SPI5|SPI6

Port to which the SD Card is connected.

SDLOGGER_DIRECT_SPI_SLAVE

SPI_SLAVE1|SPI_SLAVE2|SPI_SLAVE3|SPI_SLAVE4|SPI_SLAVE5|SPI_SLAVE6

Port to which the SD Card is connected.

SDLOGGER_DIRECT_CONTROL_SWITCH

RADIO_AUX2

SDLOGGER_DOWNLOAD_DEVICE

DOWNLINK_DEVICE|uartX|usb_serial|…

Note: case sensitive!

LOGGER_LED

none

Defines

Name

Value

Description

SDLOGGER_ON_ARM

TRUE

Start/stop SD logger with motor arming

Depends

  • pprzlog
  • spi_master