mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-22 04:13:39 +08:00
[modules] flight_time: move settings into module xml file
This commit is contained in:
@@ -3,16 +3,23 @@
|
||||
<module name="flight_time" dir="time">
|
||||
<doc>
|
||||
<description>
|
||||
Flight time calculator
|
||||
Flight time calculator.
|
||||
Allows to check how much time is left before the end of the competition.
|
||||
</description>
|
||||
</doc>
|
||||
<settings>
|
||||
<dl_settings>
|
||||
<dl_settings name="flight time">
|
||||
<dl_setting var="time_until_land" module="modules/time/flight_time" min="0" step="1" max="1800" param="FLIGHT_TIME_LEFT"/>
|
||||
</dl_settings>
|
||||
</dl_settings>
|
||||
</settings>
|
||||
<header>
|
||||
<file name="flight_time.h"/>
|
||||
</header>
|
||||
<init fun="flight_time_init()"/>
|
||||
<periodic fun="flight_time_periodic()" freq="1"/> <!--(0.1171875) 1Hz only valid in case: the modules run a 512Hz but the module generator thinks it runs at 60Hz therefore the scaling factor should be 60/512-->
|
||||
<periodic fun="flight_time_periodic()" freq="1"/>
|
||||
<makefile>
|
||||
<file name="flight_time.c"/>
|
||||
</makefile>
|
||||
</module>
|
||||
</module>
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<!DOCTYPE settings SYSTEM "../settings.dtd">
|
||||
|
||||
<settings>
|
||||
<dl_settings>
|
||||
<dl_settings name="IMAV 2013">
|
||||
<dl_setting var="time_until_land" module="modules/time/flight_time" min="0" step="1" max="1800" param="FLIGHT_TIME_LEFT"/>
|
||||
</dl_settings>
|
||||
</dl_settings>
|
||||
</settings>
|
||||
Reference in New Issue
Block a user