Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
alt_srf08 module

SRF08 ultrasonic range meter

No detailed description...

Example for airframe file

Add to your firmware section:

<module name="alt_srf08"/>

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
    • Delay: 0.
      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.
  • srf08_receive()
    • Frequency in Hz: 1
    • Delay: 0.07
      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" delay="0."/>
ã¡Ì6ôU
(the spec ask for 65ms) -->
<periodic fun="srf08_receive()" freq="1" delay="0.07"/>
<event fun="srf08_event()"/>
<makefile>
<file name="alt_srf08.c"/>
<define name="TELEMETER"/>
</makefile>
</module>