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
SRF08 ultrasonic range meter

Module XML file: alt_srf08.xml

No detailed description...

Example for airframe file

1 <modules>
2  <load name="alt_srf08.xml"/>
3 </modules>

Module functions

Init Functions

These initialization functions are called once on startup.

Event Functions

These event functions are called in each cycle of the module event loop.

Periodic Functions

These functions are called periodically at the specified frequency from the module periodic loop.

  • srf08_initiate_ranging()
    • Frequency in Hz: 1
    • Autorun: LOCK
      Periodic function automatically starts after init and can't be stopped.
  • srf08_receive()
    • Frequency in Hz: 1
    • Delay: 4
      Integer to impose a sequence (between 0 and main_freq/function_freq)
    • Autorun: LOCK
      Periodic function automatically starts after init and can't be stopped.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw alt_srf08.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="alt_srf08" dir="sensors">
<doc>
<description>SRF08 ultrasonic range meter</description>
</doc>
<header>
<file name="alt_srf08.h"/>
</header>
<init fun="srf08_init()"/>
<periodic fun="srf08_initiate_ranging()" freq="1"/>
<!-- 65ms since initiate_ranging() (the spec ask for 65ms),
delay="4", 60Hz, 4x 16.7ms = 66.7ms -->
<periodic fun="srf08_receive()" freq="1" delay="4"/>
<event fun="srf08_event()"/>
<makefile>
<file name="alt_srf08.c"/>
<define name="TELEMETER"/>
</makefile>
</module>