mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
683037ad95
When using a different datalink buffer than dl_buffer, the callback functions from the modules must use the buffer address passed as a parameter, otherwise there is no guarentee that the correct buffer will be parsed. Co-authored-by: pprz <xp31@free.fr>
28 lines
837 B
XML
28 lines
837 B
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="collective_tracking_control_target" dir="ctc">
|
|
<doc>
|
|
<description>Distributed algorithm for tracking a velocity/position reference signal. Module only for the target to broadcast its position and velocity to the pursuers.
|
|
</description>
|
|
<section name="Parameters" prefix="CTC_">
|
|
<define name="MAX_AC" value="4" description="Maximum number of expected aircraft"/>
|
|
</section>
|
|
</doc>
|
|
|
|
<header>
|
|
<file name="ctc_target.h"/>
|
|
</header>
|
|
|
|
<init fun="ctc_target_init()"/>
|
|
|
|
<periodic fun="ctc_target_send_info_to_nei()" freq="10"/>
|
|
|
|
<datalink message="CTC_REG_TABLE" fun="parse_ctc_target_RegTable(buf)"/>
|
|
<datalink message="CTC_CLEAN_TABLE" fun="parse_ctc_target_CleanTable(buf)"/>
|
|
|
|
<makefile>
|
|
<file name="ctc_target.c"/>
|
|
</makefile>
|
|
|
|
</module>
|