mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-10 15:09:25 +08:00
[video_thread] simulation
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
<target name="nps" board="pc">
|
||||
<subsystem name="fdm" type="jsbsim"/>
|
||||
<subsystem name="udp"/>
|
||||
</target>
|
||||
|
||||
<!--define name="USE_SONAR" value="TRUE"/-->
|
||||
|
||||
@@ -12,3 +12,5 @@ BOARD_CFG = \"boards/pc_sim.h\"
|
||||
|
||||
$(TARGET).ARCHDIR = $(ARCH)
|
||||
|
||||
MODEM_HOST ?= 127.0.0.1
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</header>
|
||||
|
||||
<init fun="viewvideo_init()"/>
|
||||
<makefile target="ap">
|
||||
<makefile target="ap|nps">
|
||||
|
||||
<file name="viewvideo.c"/>
|
||||
|
||||
@@ -44,13 +44,11 @@
|
||||
VIEWVID_CFLAGS = -DVIEWVIDEO_HOST=$(VIEWVIDEO_HOST) -DVIEWVIDEO_PORT_OUT=$(VIEWVIDEO_PORT_OUT)
|
||||
ifeq ($(VIEWVIDEO_USE_NC),)
|
||||
ap.CFLAGS += $(VIEWVID_CFLAGS) -DVIEWVIDEO_BROADCAST=$(VIEWVIDEO_BROADCAST)
|
||||
nps.CFLAGS += $(VIEWVID_CFLAGS) -DVIEWVIDEO_BROADCAST=FALSE
|
||||
else
|
||||
ap.CFLAGS += $(VIEWVID_CFLAGS) -DVIEWVIDEO_USE_NC
|
||||
$(TARGET).CFLAGS += $(VIEWVID_CFLAGS) -DVIEWVIDEO_USE_NC
|
||||
endif
|
||||
</raw>
|
||||
|
||||
</makefile>
|
||||
<makefile target="nps">
|
||||
<file name="viewvideo_nps.c"/>
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
@@ -48,5 +48,9 @@
|
||||
</makefile>
|
||||
<makefile target="nps">
|
||||
<file name="video_thread_nps.c"/>
|
||||
<file name="cv.c"/>
|
||||
<file name="image.c" dir="modules/computer_vision/lib/vision"/>
|
||||
<file name="jpeg.c" dir="modules/computer_vision/lib/encoding"/>
|
||||
<flag name="LDFLAGS" value="lpthread"/>
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
Reference in New Issue
Block a user