Graupner HOTT telemetry control module.
Electric and General Air modules simulation supported. The module configured by default to use UART1 port and to simulate Electric Air module. The port number can be changed from modules section in airframe setup file.
Example for airframe file
Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!
<module name="hott_telemetry">
b'<configure name="HOTT_SIM_EAM_SENSOR" value="0|1" />\n '
b'<configure name="HOTT_SIM_GAM_SENSOR" value="0|1" />\n '
b'<configure name="HOTT_SIM_GPS_SENSOR" value="0|1" />\n '
b'<configure name="HOTT_SIM_VARIO_SENSOR" value="0|1" />\n '
b'<configure name="HOTT_UART" value="UART1|UART2|UART3|UART4|UART5|UART6" />\n '
</module>
Module configuration options
Configure Options
- name:
HOTT_SIM_EAM_SENSOR
value: 0|1
Description: Electric Air module simulation switch
- name:
HOTT_SIM_GAM_SENSOR
value: 0|1
Description: General Air module simulation switch
- name:
HOTT_SIM_GPS_SENSOR
value: 0|1
Description: GPS module simulation switch
- name:
HOTT_SIM_VARIO_SENSOR
value: 0|1
Description: Vario module simulation switch
- name:
HOTT_UART
value: UART1|UART2|UART3|UART4|UART5|UART6
Description: HOTT telemetry port name
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.
- hott_periodic()
- Frequency in Hz: 5.
- 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 hott_telemetry.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="hott_telemetry" dir="hott">
<doc>
<description>
Graupner HOTT telemetry control module.
Electric and General Air modules simulation supported.
The module configured by default to use UART1 port and to simulate Electric Air module.
The port number can be changed from modules section in airframe setup file.
</description>
<configure name="HOTT_SIM_EAM_SENSOR" value="0|1" description="Electric Air module simulation switch"/>
<configure name="HOTT_SIM_GAM_SENSOR" value="0|1" description="General Air module simulation switch"/>
<configure name="HOTT_SIM_GPS_SENSOR" value="0|1" description="GPS module simulation switch"/>
<configure name="HOTT_SIM_VARIO_SENSOR" value="0|1" description="Vario module simulation switch"/>
<configure name="HOTT_UART" value="UART1|UART2|UART3|UART4|UART5|UART6" description="HOTT telemetry port name"/>
</doc>
<header>
<file name="hott.h"/>
</header>
<init fun="hott_init()"/>
<periodic fun="hott_periodic()" freq="5."/>
<event fun="hott_event()"/>
<makefile target="ap">
<file name="hott.c"/>
<configure name="HOTT_PORT" default="uart1" case="upper|lower"/>
<configure name="HOTT_SIM_EAM_SENSOR" default="1"/>
<configure name="HOTT_SIM_GAM_SENSOR" default="0"/>
<configure name="HOTT_SIM_GPS_SENSOR" default="0"/>
<configure name="HOTT_SIM_VARIO_SENSOR" default="0"/>
<define name="HOTT_PORT" value="$(HOTT_PORT_LOWER)"/>
<define name="USE_$(HOTT_PORT_UPPER)"/>
<define name="$(HOTT_PORT_UPPER)_BAUD" value="B19200"/>
<define name="HOTT_SIM_EAM_SENSOR" value="$(HOTT_SIM_EAM_SENSOR)"/>
<define name="HOTT_SIM_GAM_SENSOR" value="$(HOTT_SIM_GAM_SENSOR)"/>
<define name="HOTT_SIM_GPS_SENSOR" value="$(HOTT_SIM_GPS_SENSOR)"/>
<define name="HOTT_SIM_VARIO_SENSOR" value="$(HOTT_SIM_VARIO_SENSOR)"/>
<test firmware="fixedwing">
<define name="HOTT_PORT" value="uart1"/>
<define name="USE_UART1"/>
<define name="HOTT_SIM_EAM_SENSOR" value="1"/>
</test>
</makefile>
</module>