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!
2 <define name="JEVOIS_SEND_MSG" value="FALSE|TRUE" />
3 <configure name="JEVOIS_UART" value="UARTX" />
4 <configure name="JEVOIS_BAUD" value="B115200" />
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
Define Options
- name:
JEVOIS_SEND_MSG
value: FALSE|TRUE
Description: Send synchronized jevois message over telemetry link, use periodic report function otherwise
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.
- jevois_report()
- Frequency in Hz: 5
- Autorun: FALSE
Periodic function is started by user command.
- jevois_send_state()
- Frequency in Hz: 4
- Autorun: TRUE
Periodic function automatically starts after init.
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"/>
<define name="JEVOIS_SEND_MSG" value="FALSE|TRUE" description="Send synchronized jevois message over telemetry link, use periodic report function otherwise"/>
</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()"/>
<periodic fun="jevois_report()" freq="5" autorun="FALSE"/>
<periodic fun="jevois_send_state()" freq="4" autorun="TRUE"/>
<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>