Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Bebop Sonar driver

Module XML file: sonar_bebop.xml

Reads an anlog sonar sensor and outputs sonar distance in [m]

Example for airframe file

This example contains all possible configuration options, not all of them are mandatory!

1 <modules>
2  <load name="sonar_bebop.xml">
3  <define name="USE_SONAR" value="" />
4  </load>
5 </modules>

Module configuration options

Define Options

  • name: USE_SONAR value:
    Description: activate use of sonar in INS extended filter (only rotorcraft)

Module functions

Init Functions

These initialization functions are called once on startup.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw sonar_bebop.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="sonar">
<doc>
<description>
Bebop Sonar driver.
Reads an anlog sonar sensor and outputs sonar distance in [m]
</description>
<define name="USE_SONAR" value="" description="activate use of sonar in INS extended filter (only rotorcraft)"/>
</doc>
<header>
<file name="sonar_bebop.h"/>
</header>
<init fun="sonar_bebop_init()"/>
<makefile target="ap|sim">
<file name="sonar_bebop.c"/>
</makefile>
<makefile target="ap">
<define name="USE_SPI0" value="1"/>
<define name="USE_ADC0" value="1"/>
<define name="USE_SONAR" value="1"/>
<raw>
include $(CFG_SHARED)/spi_master.makefile
</raw>
</makefile>
</module>