-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
digital_cam_uart.xml
46 lines (45 loc) · 1.98 KB
/
digital_cam_uart.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE module SYSTEM "module.dtd">
<module name="uart_cam_ctrl" dir="digital_cam">
<doc>
<description>
Digital Camera Triggering over UART link.
Send attitude and other relevant data to a computer based photocamera after a shootphoto command is given. And in return get certain value back from the computerbased photocamera to be able to intercat with the flightplan.</description>
<define name="DC_AUTOSHOOT_QUARTERSEC_PERIOD" value="6" description="quarter_second"/>
<define name="DC_AUTOSHOOT_DISTANCE_INTERVAL" value="50" description="grid in meters"/>
<define name="DC_SHOT_SYNC_SEND" value="TRUE|FALSE" description="send DC_SHOT message when photo was taken (default: TRUE)"/>
</doc>
<settings>
<dl_settings name="control">
<dl_settings name="tb">
<dl_setting max="2" min="0" step="1" var="ticket_thumbnails" shortname="thumbs">
<strip_button name="DL Thumbs High" icon="on.png" value="2" group="ticket"/>
<strip_button name="DL Thumbs Low" icon="on.png" value="1" group="ticket"/>
<strip_button name="DL Thumbs STOP" icon="off.png" value="0" group="ticket"/>
</dl_setting>
<dl_setting max="2" min="0" step="1" var="ticket_status" shortname="status" />
</dl_settings>
</dl_settings>
</settings>
<conflicts>digital_cam,digital_cam_servo,digital_cam_i2c</conflicts>
<header>
<file name="uart_cam_ctrl.h"/>
<file name="dc.h"/>
</header>
<init fun="digital_cam_uart_init()"/>
<periodic fun="digital_cam_uart_periodic()" freq="4" autorun="TRUE"/>
<event fun="digital_cam_uart_event()"/>
<makefile target="sim">
<file name="catia/serial.c"/>
</makefile>
<makefile>
<define name="DIGITAL_CAM" />
<file name="uart_cam_ctrl.c"/>
<file name="catia/protocol.c"/>
<file name="dc.c"/>
<raw>
$(TARGET).CFLAGS += -DCAMERA_LINK=$(CAMERA_PORT)
$(TARGET).CFLAGS += -DUSE_$(CAMERA_PORT)
$(TARGET).CFLAGS += -D$(CAMERA_PORT)_BAUD=B115200
</raw>
</makefile>
</module>