Module XML file: logger_uart.xml
Example for airframe file
This example contains all possible configuration options, not all of them are mandatory!
2 <load name="logger_uart.xml">
3 <configure name="LOGGER_PORT" value="UART1|UART2|UART3|UART4|UART5|UART6" />
Module configuration options
Configure Options
- name:
LOGGER_PORT
value: UART1|UART2|UART3|UART4|UART5|UART6
Description: Port to stream the realtime log
Module functions
Periodic Functions
These functions are called periodically at the specified frequency from the module periodic loop.
- logger_uart_periodic()
- Running at maximum module frequency.
- Autorun: TRUE
Periodic function automatically starts after init.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw logger_uart.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="logger_uart" dir="loggers">
<doc>
<description>Stream IMU raw data over UART for off-board logging.</description>
<configure name="LOGGER_PORT" value="UART1|UART2|UART3|UART4|UART5|UART6" description="Port to stream the realtime log"/>
</doc>
<header>
<file name="logger_uart.h"/>
</header>
<periodic fun="logger_uart_periodic()" autorun="TRUE"/>
<makefile>
<file name="logger_uart.c"/>
<define name="USE_UART1" />
<configure name="UART1_BAUD" value="B230400"/>
<define name="USE_LED_1" />
</makefile>
</module>