diff --git a/conf/airframes/logger_sd.xml b/conf/airframes/logger_sd.xml index 68ed0a2db5..7042581ce5 100644 --- a/conf/airframes/logger_sd.xml +++ b/conf/airframes/logger_sd.xml @@ -37,6 +37,7 @@ + diff --git a/conf/autopilot/logger.makefile b/conf/autopilot/logger.makefile index 680131df66..f6e87ecea4 100644 --- a/conf/autopilot/logger.makefile +++ b/conf/autopilot/logger.makefile @@ -34,10 +34,10 @@ ifeq ($(ARCH), lpc21) ap.CFLAGS += -DUSE_LED ap.srcs = sys_time.c $(SRC_ARCH)/sys_time_hw.c $(SRC_ARCH)/armVIC.c $(SRC_FIRMWARE)/main_logger.c -#choose one -ap.CFLAGS += -DLOG_XBEE -#ap.CFLAGS += -DLOG_PPRZ - +# PPRZ message format is default +ifndef LOG_MSG_FMT +LOG_MSG_FMT = LOG_PPRZ +endif #set the speed ap.CFLAGS += -DUSE_UART0 -DUART0_BAUD=$(UART0_BAUD) -DUSE_UART0_RX_ONLY @@ -50,6 +50,9 @@ ap.srcs += mcu.c #set SPI interface for SD card (0 or 1) ap.CFLAGS += -DHW_ENDPOINT_LPC2000_SPINUM=$(SPI_CHANNEL) +#message format pprz/xbee +ap.CFLAGS += -D$(LOG_MSG_FMT) + #LPC2148 USB hw module needs at least 18MHz PCLK ap.CFLAGS += -DUSE_USB_HIGH_PCLK