Skip to content

Commit

Permalink
[module] fix pprzlog module names (#1896)
Browse files Browse the repository at this point in the history
sdlogger_spi_direct is still using the old subsystem makefile for not
breaking configs. This should be fixed later with module dependency.
  • Loading branch information
gautierhattenberger committed Oct 11, 2016
1 parent 5a43be6 commit e72bb6c
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion conf/airframes/ENAC/fixed-wing/apogee.xml
Expand Up @@ -26,7 +26,7 @@
<!-- Communication -->
<module name="telemetry" type="xbee_api"/>
<module name="tlsf"/>
<module name="sdlog"/>
<module name="pprzlog"/>
<module name="logger" type="sd_chibios"/>
<module name="flight_recorder"/>

Expand Down
2 changes: 1 addition & 1 deletion conf/airframes/ENAC/fixed-wing/jp.xml
Expand Up @@ -63,7 +63,7 @@
<module name="gps" type="ubx_ucenter"/>
<!-- logging -->
<!--module name="tlsf"/>
<module name="sdlog"/>
<module name="pprzlog"/>
<module name="logger" type="sd_chibios"/-->

<module name="current_sensor">
Expand Down
2 changes: 1 addition & 1 deletion conf/airframes/MTO/test_enac_ptu.xml
Expand Up @@ -39,7 +39,7 @@

<!-- Communication -->
<module name="telemetry" type="xbee_api"/>
<module name="sdlog"/>
<module name="pprzlog"/>

<!-- Actuators are automatically chosen according to board-->
<module name="imu" type="apogee"/>
Expand Down
4 changes: 2 additions & 2 deletions conf/firmwares/subsystems/shared/sdlog.makefile
@@ -1,7 +1,7 @@
# Hey Emacs, this is a -*- makefile -*-

sdlog_CFLAGS = -DDOWNLINK -DUSE_PPRZLOG
sdlog_srcs = subsystems/datalink/downlink.c pprzlink/src/pprzlog_transport.c
sdlog_CFLAGS = -DDOWNLINK
sdlog_srcs = subsystems/datalink/downlink.c modules/loggers/pprzlog_tp.c pprzlink/src/pprzlog_transport.c

ap.CFLAGS += $(sdlog_CFLAGS)
ap.srcs += $(sdlog_srcs)
Expand Down
4 changes: 2 additions & 2 deletions conf/modules/sdlog.xml → conf/modules/pprzlog.xml
@@ -1,6 +1,6 @@
<!DOCTYPE module SYSTEM "module.dtd">

<module name="sdlog" dir="loggers">
<module name="pprzlog" dir="loggers">
<doc>
<description>
Enable pprzlog binary prototol with downlink message system
Expand All @@ -9,7 +9,7 @@
<header/>
<makefile>
<define name="DOWNLINK"/>
<file name="sdlog_tp.c"/>
<file name="pprzlog_tp.c"/>
<file name="pprzlog_transport.c" dir="pprzlink/src"/>
</makefile>
</module>
Expand Down
2 changes: 1 addition & 1 deletion sw/airborne/modules/loggers/flight_recorder.c
Expand Up @@ -29,7 +29,7 @@

#include "subsystems/datalink/telemetry.h"
#include "subsystems/datalink/downlink.h"
#include "modules/loggers/sdlog_tp.h"
#include "modules/loggers/pprzlog_tp.h"

#if FLIGHTRECORDER_SDLOG
#include "modules/loggers/sdlog_chibios.h"
Expand Down
Expand Up @@ -19,11 +19,11 @@
*
*/

/** \file modules/loggers/sdlog_tp.h
/** \file modules/loggers/pprzlog_tp.c
* \brief Initialize pprzlog transport
*/

#include "modules/loggers/sdlog_tp.h"
#include "modules/loggers/pprzlog_tp.h"
#include "mcu_periph/sys_time.h"

struct pprzlog_transport pprzlog_tp;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion sw/airborne/modules/loggers/sdlogger_spi_direct.c
Expand Up @@ -31,7 +31,7 @@

#include "modules/loggers/sdlogger_spi_direct.h"
#include "subsystems/datalink/downlink.h"
#include "modules/loggers/sdlog_tp.h"
#include "modules/loggers/pprzlog_tp.h"
#include "subsystems/datalink/telemetry.h"
#include "led.h"

Expand Down
2 changes: 1 addition & 1 deletion sw/airborne/modules/meteo/meteo_france_DAQ.c
Expand Up @@ -38,7 +38,7 @@
#include "subsystems/datalink/datalink.h"
#include "subsystems/datalink/downlink.h"
#include "modules/loggers/sdlog_chibios.h"
#include "modules/loggers/sdlog_tp.h"
#include "modules/loggers/pprzlog_tp.h"

#include "subsystems/gps.h"
#include "modules/datalink/extra_pprz_dl.h"
Expand Down
2 changes: 1 addition & 1 deletion sw/airborne/modules/sensors/airspeed_uADC.c
Expand Up @@ -37,7 +37,7 @@

#if FLIGHTRECORDER_SDLOG
#include "subsystems/datalink/telemetry.h"
#include "modules/loggers/sdlog_tp.h"
#include "modules/loggers/pprzlog_tp.h"
#include "modules/loggers/sdlog_chibios.h"
#endif

Expand Down

0 comments on commit e72bb6c

Please sign in to comment.