Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
jevois module

Decoder for standardized messages from the JEVOIS smart camera (http://jevois.org)

Data are extracted from a serial link and produce a JEVOIS_MSG ABI message

Example for airframe file

Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!

1 <module name="jevois">
2  <configure name="JEVOIS_UART" value="UARTX" />
3  <configure name="JEVOIS_BAUD" value="B115200" />
4 </module>

Module configuration options

Configure Options

  • name: JEVOIS_UART value: UARTX
    Description: UART on which Jevois camera is connected
  • name: JEVOIS_BAUD value: B115200
    Description: UART Baudrate, default to 115200

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.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw jevois.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="jevois" dir="sensors/cameras">
<doc>
<description>
Decoder for standardized messages from the JEVOIS smart camera (http://jevois.org)
Data are extracted from a serial link and produce a JEVOIS_MSG ABI message
</description>
<configure name="JEVOIS_UART" value="UARTX" description="UART on which Jevois camera is connected"/>
<configure name="JEVOIS_BAUD" value="B115200" description="UART Baudrate, default to 115200"/>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="JeVois">
<dl_setting MAX="20" MIN="0" STEP="1" VAR="jevois_mapping_setting" shortname="mapping" module="modules/sensors/cameras/jevois" handler="setmapping"/>
<dl_setting MAX="1" MIN="0" STEP="1" VAR="jevois_stream_setting" shortname="stream" module="modules/sensors/cameras/jevois" handler="stream" values="FALSE|TRUE"/>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="jevois.h"/>
</header>
<init fun="jevois_init()"/>
<event fun="jevois_event()"/>
<makefile>
<configure name="JEVOIS_UART" case="upper|lower"/>
<configure name="JEVOIS_BAUD" default="B115200"/>
<file name="jevois.c"/>
<define name="USE_$(JEVOIS_UART_UPPER)"/>
<define name="JEVOIS_DEV" value="$(JEVOIS_UART_LOWER)"/>
<define name="$(JEVOIS_UART_UPPER)_BAUD" value="$(JEVOIS_BAUD)"/>
</makefile>
</module>