Skip to content

Commit

Permalink
[viewvideo] Move netcat image send inside viewvideo module
Browse files Browse the repository at this point in the history
  • Loading branch information
fvantienen committed Feb 26, 2015
1 parent bc7feb5 commit 20c0c66
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 324 deletions.
4 changes: 3 additions & 1 deletion conf/airframes/ENAC/quadrotor/ard2_base_digit.xml
Expand Up @@ -36,7 +36,9 @@
<load name="agl_dist.xml">
<define name="USE_SONAR"/>
</load>
<load name="image_nc_send.xml"/>
<load name="video_rtp_stream.xml">
<configure name="VIEWVIDEO_USE_NC" value="TRUE"/>
</load>
<load name="rotorcraft_cam.xml"/>
</modules>

Expand Down
34 changes: 0 additions & 34 deletions conf/modules/image_nc_send.xml

This file was deleted.

15 changes: 9 additions & 6 deletions conf/modules/video_rtp_stream.xml
Expand Up @@ -49,16 +49,19 @@
VIEWVIDEO_BROADCAST ?= $(MODEM_BROADCAST)
VIEWVIDEO_DEV_LOWER = $(shell echo $(VIEWVIDEO_DEV) | tr A-Z a-z)

STREAM_CFLAGS = -DUSE_$(VIEWVIDEO_DEV) -DVIEWVIDEO_DEV=$(VIEWVIDEO_DEV_LOWER) -DVIEWVIDEO_PORT_OUT=$(VIEWVIDEO_PORT_OUT)
STREAM_CFLAGS += -D$(VIEWVIDEO_DEV)_PORT_OUT=$(VIEWVIDEO_PORT_OUT) -D$(VIEWVIDEO_DEV)_PORT_IN=$(VIEWVIDEO_PORT_IN)
STREAM_CFLAGS += -D$(VIEWVIDEO_DEV)_BROADCAST=$(VIEWVIDEO_BROADCAST) -D$(VIEWVIDEO_DEV)_HOST=\"$(VIEWVIDEO_HOST)\"
ap.CFLAGS += $(STREAM_CFLAGS)
VIEWVID_G_CFLAGS = -DVIEWVIDEO_HOST=\"$(VIEWVIDEO_HOST)\" -DVIEWVIDEO_PORT_OUT=$(VIEWVIDEO_PORT_OUT)
VIEWVID_CFLAGS = -DUSE_$(VIEWVIDEO_DEV) -DVIEWVIDEO_DEV=$(VIEWVIDEO_DEV_LOWER)
VIEWVID_CFLAGS += -D$(VIEWVIDEO_DEV)_PORT_OUT=$(VIEWVIDEO_PORT_OUT) -D$(VIEWVIDEO_DEV)_PORT_IN=$(VIEWVIDEO_PORT_IN)
VIEWVID_CFLAGS += -D$(VIEWVIDEO_DEV)_BROADCAST=$(VIEWVIDEO_BROADCAST) -D$(VIEWVIDEO_DEV)_HOST=\"$(VIEWVIDEO_HOST)\"
ifeq ($(VIEWVIDEO_USE_NC),)
ap.CFLAGS += $(VIEWVID_G_CFLAGS) $(VIEWVID_CFLAGS)
else
ap.CFLAGS += $(VIEWVID_G_CFLAGS) -DVIEWVIDEO_USE_NC
endif
</raw>

<!-- Random flags -->
<define name="pthread" type="raw"/>
<define name="__USE_GNU"/>
<flag name="LDFLAGS" value="pthread"/>
<flag name="LDFLAGS" value="lrt"/>
<flag name="LDFLAGS" value="static-libgcc"/>
</makefile>
Expand Down
214 changes: 0 additions & 214 deletions sw/airborne/modules/computer_vision/image_nc_send.c

This file was deleted.

37 changes: 0 additions & 37 deletions sw/airborne/modules/computer_vision/image_nc_send.h

This file was deleted.

31 changes: 0 additions & 31 deletions sw/airborne/modules/computer_vision/image_nc_send_nps.c

This file was deleted.

0 comments on commit 20c0c66

Please sign in to comment.