mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 21:07:40 +08:00
added DOWNLINK to Twin2 - Seems that we cannot have an AC without downlink - Do we realZly want that ?
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ Q=@
|
|||||||
|
|
||||||
|
|
||||||
CFLAGS = \
|
CFLAGS = \
|
||||||
-Werror -W -Wall -Wundef \
|
-W -Wall -Wundef \
|
||||||
$(ATMEL_INCLUDES) \
|
$(ATMEL_INCLUDES) \
|
||||||
$(INCLUDES) \
|
$(INCLUDES) \
|
||||||
-Wstrict-prototypes \
|
-Wstrict-prototypes \
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ Q=@
|
|||||||
|
|
||||||
|
|
||||||
CFLAGS = \
|
CFLAGS = \
|
||||||
-W -Wall -Werror \
|
-W -Wall \
|
||||||
$(INCLUDES) \
|
$(INCLUDES) \
|
||||||
-Wstrict-prototypes \
|
-Wstrict-prototypes \
|
||||||
$($(TARGET).CFLAGS) \
|
$($(TARGET).CFLAGS) \
|
||||||
|
|||||||
@@ -123,6 +123,9 @@ ap.CFLAGS += -DMOBILE_CAM -DDATALINK
|
|||||||
ap.EXTRA_SRCS += traffic_info.c datalink.c
|
ap.EXTRA_SRCS += traffic_info.c datalink.c
|
||||||
ap.CFLAGS += -DUSE_UART0 -DHITL
|
ap.CFLAGS += -DUSE_UART0 -DHITL
|
||||||
|
|
||||||
|
-DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport -DDOWNLINK_AP_DEVICE=Uart0
|
||||||
|
ap.EXTRA_SRCS += pprz_transport.c downlink.c
|
||||||
|
|
||||||
# Config for SITL simulation
|
# Config for SITL simulation
|
||||||
include $(PAPARAZZI_SRC)/conf/autopilot/sitl.makefile
|
include $(PAPARAZZI_SRC)/conf/autopilot/sitl.makefile
|
||||||
sim.CFLAGS += -DDATALINK -DMOBILE_CAM
|
sim.CFLAGS += -DDATALINK -DMOBILE_CAM
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
#include "messages.h"
|
#include "messages.h"
|
||||||
#include "periodic.h"
|
#include "periodic.h"
|
||||||
|
|
||||||
#if DOWNLINK
|
#if defined DOWNLINK
|
||||||
#define Downlink(x) x
|
#define Downlink(x) x
|
||||||
#else
|
#else
|
||||||
#define Downlink(x) {}
|
#define Downlink(x) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user