From c644e5c67ddfb27e98ad1e7f3148bacfacabb88d Mon Sep 17 00:00:00 2001 From: Bart Slinger Date: Fri, 20 Nov 2015 13:39:48 +0100 Subject: [PATCH] [sdlogger] conf added description, target to ap, consistent naming --- conf/modules/logger_sd_spi_direct.xml | 29 ++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/conf/modules/logger_sd_spi_direct.xml b/conf/modules/logger_sd_spi_direct.xml index 732929b8ab..47d640e870 100644 --- a/conf/modules/logger_sd_spi_direct.xml +++ b/conf/modules/logger_sd_spi_direct.xml @@ -2,10 +2,22 @@ - Direct SPI SD Logger that saves pprzlog messages to SD Card. + +Direct SPI SD Logger that saves pprzlog messages to SD Card. + +This module logs data directly to an SD Card which is connected on a SPI port. For now, it is only possible to use a radio switch to start and stop logging. + +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 an UART datalink. There is no check to verify that all data is transfered, so it is recommended to use an FTDI cable to the UART port. + +Do not use start/stop functionality of the module, the module is not intended to be used like this. + - + @@ -24,7 +36,7 @@ - + SDLOGGER_DIRECT_SPI ?= spi2 @@ -35,7 +47,7 @@ SDLOGGER_DIRECT_SPI_SLAVE_LOWER=$(shell echo $(SDLOGGER_DIRECT_SPI_SLAVE) | tr A-Z a-z) SDLOGGER_DIRECT_SPI_SLAVE_UPPER=$(shell echo $(SDLOGGER_DIRECT_SPI_SLAVE) | tr a-z A-Z) - LOGGER_CONTROL_SWITCH ?= RADIO_AUX2 + SDLOGGER_DIRECT_CONTROL_SWITCH ?= RADIO_AUX2 LOGGER_LED ?= none ifneq ($(LOGGER_LED),none) @@ -43,19 +55,18 @@ endif ap.srcs += subsystems/datalink/downlink.c subsystems/datalink/pprzlog_transport.c + + include $(CFG_SHARED)/spi_master.makefile - - - - + - +